about summary refs log tree commit diff
path: root/src/testsuite/getpid.sh
AgeCommit message (Collapse)Author
2024-04-13Test suite: Correctly test for LOGNAME and USERAlexander Barton
2024-04-13Test suite: Don't use "pgrep -u" when LOGNAME and USER are not setAlexander Barton
Thanks for reporting this on IRC, luca!
2024-04-13Test suite: Use $USER in getpid.sh when $LOGNAME is not setAlexander Barton
The LOGNAME environment variable is not set in GitHub "actions", for example ...
2024-04-05Test suite: simplify and enhance getpid.shAlexander Barton
- Try to only search for processes of the current user. - Prefer using pgrep (in addition to pidof) when available. - Streamline system overrides. - Get rid of HEAD_FLAGS: all systems so far support "-1". - Use "ps -o pid,comm" as the default, which is POSIX.1. - Use "sort -r" to hopefully get the newest (=highest) PID, which is the case on older systems not using randomized PIDs at least.
2024-04-05Test suite: clean up scriptsAlexander Barton
- Reformat code. - Cleanup some glitches, streamline scripts ... - Enable "set -u": Error on unset variables. - Detect "$srcdir" in prep-server3 script, too.
2019-11-03Make test suite compatible with HaikuAlexander Barton
2013-09-03getpid.sh: use /bin/pidof when availableAlexander Barton
2012-09-27Fix getpid.sh to work on Apple A/UX againAlexander Barton
2012-03-03getpid.sh: Fix testcase error for Debian using sbuildChristoph Biedl
When * building the ngircd Debian package (on Linux at least) and * using the sbuild build system, the command "ps -af" does not include the commands running inside the sbuild system. Therefore, start-server.sh will report a fail as getpid.sh cannot not find the ./T-ngircd1 just started although it's actually running. This results in a funny build log ... starting server 1 ... failure! FAIL: start-server1 running connect-test ... ok. PASS: connect-test The self-test of getpid.sh however will likely succeed as it's happy if it sees any process with "sh" somewhere in the name. Things go downhill from there. The confusing things are: * The alternative cowbuilder/pbuilder does not have this problem. * The alternative usage "ps ax" does fine. So, as a quick hack, the patch attached adds another switch to getpid.sh.
2011-07-30Testsuite: make getpid.sh work even when run as rootAlexander Barton
Use ps(1) flag "-a" (as well as "-f"): "Select all processes except both session leaders (see getsid(2)) and processes not associated with a terminal." Thanks to Götz Hoffart for reporting this problem!
2008-12-03Make testsuite (getpid.sh) work on OpenSolaris (i386/pc/solaris2.11).Alexander Barton
2006-08-05Added support for Solaris 11.Alexander Barton
2003-08-22Enhanced testsuite, should run under GNU/Hurd now.Alexander Barton
2003-04-22Made scripts mor portable (run on SunOS 5.6 now).Alexander Barton
2002-11-10- Test-Suite an A/UX angepasst.Alexander Barton
2002-09-20- Die PID des Test-Servers wird nun mit dem Script "getpid.sh" ermittelt.Alexander Barton