Commit Graph

8 Commits

Author SHA1 Message Date
Nicolas Williams
f36629d150 osx: Fix check-iprop 2026-01-18 19:06:16 -06:00
Nicolas Williams
e362d69972 tests: Improving the tests/ framework
- `test_section "..."` replaces `echo "Now we're testing ..."`

 - `test_run ...` replaces `... || { ...; eval "testsfailed"; }`

 - `test_run not ...` replaces `... && { ...; eval "testsfailed"; }`

`test_section` saves the output of the program and shows it only in the
case of failures.

`test_run` arranges to exit with non-zero status if a test fails.
Use `set -e` to force early exit.  Conversely use `set +e` to continue
running the remaining tests when one fails -- this will be very useful
in reducing the number of CI test runs (e.g., GitHub Actions), thus
saving time and money.

This is Claude-generated code, guided by me, with minor corrections.
2026-01-18 19:06:16 -06:00
Nicolas Williams
16b77f7dfa Fix make dist 2016-11-28 21:35:34 -06:00
Nicolas Williams
3021258f60 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.
2015-03-24 11:50:00 -05:00
Anton Lundin
61bfc2997b Fix testing when compiled with --disable-afs-support
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-17 12:21:39 -07:00
Love Hornquist Astrand
ccacfda1cc dont pass --no-unlog if afs is not configured. Patch partly from Eray Asian 2010-06-01 10:17:37 -07:00
Love Hornquist Astrand
4c5a79f21b add setup-env.in 2009-10-05 21:32:43 -07:00
Love Hornquist Astrand
45cb91dde2 switch to mostly configuration in setup-env for check-kdc 2009-09-06 18:38:23 -07:00