1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 00:06:39 +02:00
Files
unrealircd/extras/tests/tls/tls-tests.bbwrapper
T

16 lines
484 B
Bash
Executable File

#!/bin/bash
#
# This is a simple wrapper script that will boot the ircd
# and 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
#
~/unrealircd/bin/unrealircd -f irc1.conf
set +ex
timeout --kill-after=5 300 extras/tests/tls/tls-tests
EX="$?"
killall -9 valgrind valgrind.bin memcheck memcheck-amd64-linux memcheck-x86-linux ircd unrealircd val 1>/dev/null 2>&1
exit $EX