diff options
Diffstat (limited to '.github/run_test.sh')
-rwxr-xr-x | .github/run_test.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/run_test.sh b/.github/run_test.sh new file mode 100755 index 0000000..93c3a5e --- /dev/null +++ b/.github/run_test.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +TARGETS=$@ + +TEST_TARGET="tests" +LTESTS="" # all tests by default + +set -ex + +for TARGET in $TARGETS; do + case $TARGET in + --without-openssl) + # When built without OpenSSL we can't do the file-based RSA key tests. + TEST_TARGET=t-exec + ;; + esac +done + +if [ -z "$LTESTS" ]; then + make $TEST_TARGET + result=$? +else + make $TEST_TARGET LTESTS="$LTESTS" + result=$? +fi + +if [ "$result" -ne "0" ]; then + for i in regress/failed*; do + echo ------------------------------------------------------------------------- + echo LOGFILE $i + cat $i + echo ------------------------------------------------------------------------- + done +fi |