Add tests/bin/intr
commit3021258f6064a7bdb46bb2e039a093230650b408
authorNicolas Williams <nico@cryptonector.com>
Wed, 18 Mar 2015 20:21:55 +0000 (18 15:21 -0500)
committerNicolas Williams <nico@cryptonector.com>
Tue, 24 Mar 2015 16:50:00 +0000 (24 11:50 -0500)
treeee1724e2c2cf3587530a9fdba0094e0837580cf1
parente75f790fe6d600e72ada211a7afdac16d9a24084
Add tests/bin/intr

This utility, inspired by the old SunOS 4.x intr(8) utility, will be
used to start daemons with --detach and a timeout, like this:

    intr -t 5 kdc --detach || { echo failed to start kdc; exit 1 }

This will allow tests to stop having to sleep poll for "started" output
from the daemons they start, allowing them to run faster and to impose a
reasonable timeout on daemon startup.

The default timeout is 3 seconds.
tests/bin/Makefile.am
tests/bin/intr.c [new file with mode: 0644]