11 echo '################################################################################'
13 echo '################################################################################'
20 header "Cleaning up leftovers from previous runs"
22 for name in tinc tincd; do
23 sudo pkill -TERM -x "$name" || true
24 sudo pkill -KILL -x "$name" || true
27 sudo chown -R "${USER:-$(whoami)}" .
29 mkdir -p sanitizer /tmp/logs
31 header "Running test flavor $flavor"
33 ./.ci/build.sh "$flavor" "$@"
35 if [ "${HOST:-}" = mingw ]; then
36 echo >&2 "Integration tests cannot run under wine, skipping"
40 if [ -n "${HOST:-}" ]; then
41 echo >&2 "Using higher test timeout for cross-compilation job $HOST"
48 meson test -C "$flavor" --timeout-multiplier $timeout --verbose || code=$?
50 sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" "$flavor" sanitizer/ || true
56 MINGW* | Darwin) sudo() { "$@"; } ;;
64 run_tests default "$@"
67 run_tests nolegacy -Dcrypto=nolegacy "$@"
70 run_tests gcrypt -Dcrypto=gcrypt "$@"
73 if [ -d /opt/ssl3 ]; then
74 run_tests openssl3 -Dpkg_config_path=/opt/ssl3/lib64/pkgconfig "$@"
76 echo >&2 "OpenSSL 3 not installed, skipping test"
80 bail "unknown test flavor $1"