1
0
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:
Bram Matthys
2025-10-06 10:06:23 +02:00
parent 85ce779f93
commit 573f65efb5
2 changed files with 16 additions and 2 deletions
+1 -2
View File
@@ -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:
+15
View File
@@ -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