1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 04:33:13 +02:00
Files
unrealircd/extras/build-tests/nix/run-tests
T
2019-08-18 11:18:52 +02:00

38 lines
669 B
Bash
Executable File

#!/bin/bash
#
# This script fires up a two-server IRC network and runs the test framework
#
# Exit on error:
set -e
# Verbose:
set -x
# Kill old instances
killall -9 unrealircd || true
# Remove old junk
rm -rf cipherscan/ unrealircd-tests/
if [ ! -d ~/cipherscan ]; then
# Install 'cipherscan'
git clone -q https://github.com/mozilla/cipherscan
fi
# Install 'unrealircd-tests'
git clone -q https://github.com/unrealircd/unrealircd-tests.git
cd unrealircd-tests
# Run the test framework
./run || exit 1
# Do cipherscan test at the end
if [[ "$OSTYPE" != "freebsd"* ]]; then
sleep 2
cd ../extras/tests/tls
./tls-tests
cd -
fi
killall -15 unrealircd || true