<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ngircd/src/testsuite/getpid.sh, branch rel-27-rc1</title>
<subtitle>ngircd with make
</subtitle>
<id>http://git.nakidai.ru/ngircd/atom?h=rel-27-rc1</id>
<link rel='self' href='http://git.nakidai.ru/ngircd/atom?h=rel-27-rc1'/>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/'/>
<updated>2024-04-13T10:22:35+00:00</updated>
<entry>
<title>Test suite: Use $USER in getpid.sh when $LOGNAME is not set</title>
<updated>2024-04-13T10:22:35+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2024-04-13T10:00:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=e3f96d446dd88241a94de51b676fd118d47ab7d7'/>
<id>urn:sha1:e3f96d446dd88241a94de51b676fd118d47ab7d7</id>
<content type='text'>
The LOGNAME environment variable is not set in GitHub "actions", for
example ...
</content>
</entry>
<entry>
<title>Test suite: simplify and enhance getpid.sh</title>
<updated>2024-04-05T21:16:07+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2024-04-01T19:38:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=22a8744476dff7763cd94954bd8f96fbdfc0d251'/>
<id>urn:sha1:22a8744476dff7763cd94954bd8f96fbdfc0d251</id>
<content type='text'>
- 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.
</content>
</entry>
<entry>
<title>Test suite: clean up scripts</title>
<updated>2024-04-05T21:16:07+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2024-03-31T17:53:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=7e78c293a97239f895b862836c65c4b755abdc52'/>
<id>urn:sha1:7e78c293a97239f895b862836c65c4b755abdc52</id>
<content type='text'>
- Reformat code.
- Cleanup some glitches, streamline scripts ...
- Enable "set -u": Error on unset variables.
- Detect "$srcdir" in prep-server3 script, too.
</content>
</entry>
<entry>
<title>Make test suite compatible with Haiku</title>
<updated>2019-11-03T14:15:59+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2019-11-03T14:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=4169cb25e620cbd8a54cd19b509a8f88d7c295f9'/>
<id>urn:sha1:4169cb25e620cbd8a54cd19b509a8f88d7c295f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>getpid.sh: use /bin/pidof when available</title>
<updated>2013-09-03T19:33:22+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2013-09-03T19:33:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=e3a2a6c44d30a68f3afeab17ba19a5559e09f3a5'/>
<id>urn:sha1:e3a2a6c44d30a68f3afeab17ba19a5559e09f3a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix getpid.sh to work on Apple A/UX again</title>
<updated>2012-09-26T22:19:31+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2012-09-26T22:19:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=eba53f652ce8e0e7600b337628883d17fc3af2f2'/>
<id>urn:sha1:eba53f652ce8e0e7600b337628883d17fc3af2f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>getpid.sh: Fix testcase error for Debian using sbuild</title>
<updated>2012-03-03T17:53:03+00:00</updated>
<author>
<name>Christoph Biedl</name>
<email>ngircd.anoy@manchmal.in-ulm.de</email>
</author>
<published>2012-03-03T17:53:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=257fe922d2c2ee822c372bc5b979075271915553'/>
<id>urn:sha1:257fe922d2c2ee822c372bc5b979075271915553</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Testsuite: make getpid.sh work even when run as root</title>
<updated>2011-07-30T16:47:58+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2011-07-30T16:47:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=9f3690c39c2bd7cefbed8e3ea1f9519dd25d35c8'/>
<id>urn:sha1:9f3690c39c2bd7cefbed8e3ea1f9519dd25d35c8</id>
<content type='text'>
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!
</content>
</entry>
<entry>
<title>Make testsuite (getpid.sh) work on OpenSolaris (i386/pc/solaris2.11).</title>
<updated>2008-12-03T15:49:17+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2008-12-03T15:49:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=83c699d5a559acecc9b62767e4ffcf8fb50dfbb5'/>
<id>urn:sha1:83c699d5a559acecc9b62767e4ffcf8fb50dfbb5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added support for Solaris 11.</title>
<updated>2006-08-05T00:15:28+00:00</updated>
<author>
<name>Alexander Barton</name>
<email>alex@barton.de</email>
</author>
<published>2006-08-05T00:15:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/ngircd/commit/?id=6eb3f3055d41dab4a395fcea2301034993977722'/>
<id>urn:sha1:6eb3f3055d41dab4a395fcea2301034993977722</id>
<content type='text'>
</content>
</entry>
</feed>
