ostree/buildutil
Simon McVittie c733e21a84 Terminate individual tests after (10 * $TEST_TIMEOUT_FACTOR) minutes
While using the Automake parallel test harness, if a test hangs for
long enough for an external watchdog to kill the entire build process
(as happens in Debian sbuild after 150 minutes with no activity on
stdout/stderr), the logs will not be shown. If we make an individual
test time out sooner, logs are more likely to be shown.

We use SIGABRT so that the process(es) under test will dump core,
allowing the point at which ostree is blocking to be analyzed.
After 1 minute, if any have not died, we kill them again with SIGKILL.

To support slow platforms and slow debugging tools, if
TEST_TIMEOUT_FACTOR is set, multiply the 10 minute timeout by that.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #607
Approved by: cgwalters
2016-12-01 18:22:51 +00:00
..
attributes.m4 build: Import attributes.m4, detect CFLAGS at build time 2016-08-08 11:13:06 +00:00
glib-tap.mk tests: Port to glib-tap.mk, make make check run all of the tests 2016-03-03 08:50:19 -05:00
glibtests.m4 tests: Port to glib-tap.mk, make make check run all of the tests 2016-03-03 08:50:19 -05:00
tap-driver.sh tests: Port to glib-tap.mk, make make check run all of the tests 2016-03-03 08:50:19 -05:00
tap-test Terminate individual tests after (10 * $TEST_TIMEOUT_FACTOR) minutes 2016-12-01 18:22:51 +00:00