2020-03-29 02:16:53 -07:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This is a simple wrapper script that will run the tests
|
|
|
|
# When finished, either due to succes or failure,
|
|
|
|
# it will kill the ircd
|
|
|
|
#
|
|
|
|
# Also, it makes sure the job times out (is killed)
|
|
|
|
# in case it misbehaves
|
|
|
|
#
|
|
|
|
set +ex
|
2022-04-03 08:09:29 -07:00
|
|
|
timeout --kill-after=5 900 extras/build-tests/nix/run-tests
|
2020-03-29 02:16:53 -07:00
|
|
|
EX="$?"
|
|
|
|
killall -9 valgrind valgrind.bin memcheck memcheck-amd64-linux memcheck-x86-linux ircd unrealircd val 1>/dev/null 2>&1
|
|
|
|
exit $EX
|