2020-08-07 05:11:42 +00:00
|
|
|
#!/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
|
2020-08-07 05:37:37 +00:00
|
|
|
result=$?
|
2020-08-07 05:11:42 +00:00
|
|
|
else
|
|
|
|
make $TEST_TARGET LTESTS="$LTESTS"
|
2020-08-07 05:37:37 +00:00
|
|
|
result=$?
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$result" -ne "0" ]; then
|
|
|
|
for i in regress/failed*; do
|
|
|
|
echo -------------------------------------------------------------------------
|
|
|
|
echo LOGFILE $i
|
|
|
|
cat $i
|
|
|
|
echo -------------------------------------------------------------------------
|
|
|
|
done
|
2020-08-07 05:11:42 +00:00
|
|
|
fi
|