X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftest%2Frun.sh;h=3d0d671664fd0639a3aa95813ec58e405b652299;hb=6049b67f1e1cf00da8e0e913b8adc81a7b16bb87;hp=fa23e241eb026927525365fcbfec82ca4adb0a7a;hpb=b9a7444b9fa216d16d91f34d2e12f51fc4d60e46;p=tinc diff --git a/.ci/test/run.sh b/.ci/test/run.sh index fa23e241..3d0d6716 100644 --- a/.ci/test/run.sh +++ b/.ci/test/run.sh @@ -24,24 +24,30 @@ run_tests() { sudo pkill -KILL -x "$name" || true done - sudo git clean -dfx sudo chown -R "${USER:-$(whoami)}" . mkdir -p sanitizer /tmp/logs header "Running test flavor $flavor" - ./.ci/build.sh "$@" + ./.ci/build.sh "$flavor" "$@" if [ "${HOST:-}" = mingw ]; then echo >&2 "Integration tests cannot run under wine, skipping" return 0 fi + if [ -n "${HOST:-}" ]; then + echo >&2 "Using higher test timeout for cross-compilation job $HOST" + timeout=10 + else + timeout=1 + fi + code=0 - meson test -C build --verbose || code=$? + meson test -C "$flavor" --timeout-multiplier $timeout --verbose || code=$? - sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" build/ sanitizer/ + sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" "$flavor" sanitizer/ || true return $code }