mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 17:14:46 +02:00
Add extras/tests/tls/tls-tests.bbwrapper which i use for BuildBot
This commit is contained in:
@@ -25,9 +25,8 @@ cd unrealircd-tests
|
||||
|
||||
# FreeBSD has various issues with the tests from us and others,
|
||||
# better set a flag to keep it simple:
|
||||
FREEBSD=0
|
||||
if uname -a|grep -q FreeBSD; then
|
||||
FREEBSD=1
|
||||
NOSERVICES=1
|
||||
fi
|
||||
|
||||
# Run the test framework, testing both services:
|
||||
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user