X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftest%2Frun.sh;h=a7cfc299028f9ee192c72ce9b01f831fb19b319e;hb=ce2864a2a8c6c146fc605f8093a6246108dddb1a;hp=b17d2de7875ee9d6207679ba3fd85191100cc1bf;hpb=76ec2548d0a3e2f1ea92da025549e2abce2bf502;p=tinc diff --git a/.ci/test/run.sh b/.ci/test/run.sh index b17d2de7..a7cfc299 100644 --- a/.ci/test/run.sh +++ b/.ci/test/run.sh @@ -32,12 +32,23 @@ run_tests() { header "Running test flavor $flavor" autoreconf -fsi - # shellcheck disable=SC2046 - ./configure $(sh .ci/conf.sh "$@") + + DISTCHECK_CONFIGURE_FLAGS=$(sh .ci/conf.sh "$@") + export DISTCHECK_CONFIGURE_FLAGS + + # shellcheck disable=SC2086 + ./configure $DISTCHECK_CONFIGURE_FLAGS + make -j"$(nproc)" all extra + if [ "$(uname -s)" = Linux ]; then + cmd=distcheck + else + cmd=check + fi + code=0 - make check -j2 VERBOSE=1 || code=$? + make $cmd -j2 VERBOSE=1 || code=$? sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" test/ sanitizer/