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
28 sudo chown -R build:build .
30 header "Running test flavor $flavor"
32 # CentOS 7 has OpenSSL 1.1 installed in a non-default location.
33 if test -d /usr/include/openssl11; then
34 set -- "$@" --with-openssl-include=/usr/include/openssl11
37 if test -d /usr/lib64/openssl11; then
38 set -- "$@" --with-openssl-lib=/usr/lib64/openssl11
46 make check -j2 VERBOSE=1 || code=$?
48 sudo tar -c -z -f "/tmp/tests.$flavor.tar.gz" test/
53 # GitHub Checkout action supports git 2.18+.
54 # If we're running in a container with an older version,
55 # create our own local repository to make `git clean` work.
56 if ! [ -e .git ]; then
66 run_tests nolegacy --disable-legacy-protocol
69 bail "unknown test flavor $1"