diff options
author | Colin Watson <cjwatson@debian.org> | 2020-10-20 14:12:31 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-10-20 14:12:31 +0100 |
commit | e371906fbbbbc11b0dced8fd4e0d258eb489d7c1 (patch) | |
tree | 4d0d8d2afd52572deb7910e29ff5a334b2bcf702 /.github/run_test.sh | |
parent | e429009cde648a41479cd1b60ce972760a2bdabc (diff) | |
parent | 3728919292c05983372954d27426f7d966813139 (diff) |
New upstream release (8.4p1)
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 000000000..93c3a5e9e --- /dev/null +++ b/.github/run_test.sh | |||
@@ -0,0 +1,34 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | TARGETS=$@ | ||
4 | |||
5 | TEST_TARGET="tests" | ||
6 | LTESTS="" # all tests by default | ||
7 | |||
8 | set -ex | ||
9 | |||
10 | for TARGET in $TARGETS; do | ||
11 | case $TARGET in | ||
12 | --without-openssl) | ||
13 | # When built without OpenSSL we can't do the file-based RSA key tests. | ||
14 | TEST_TARGET=t-exec | ||
15 | ;; | ||
16 | esac | ||
17 | done | ||
18 | |||
19 | if [ -z "$LTESTS" ]; then | ||
20 | make $TEST_TARGET | ||
21 | result=$? | ||
22 | else | ||
23 | make $TEST_TARGET LTESTS="$LTESTS" | ||
24 | result=$? | ||
25 | fi | ||
26 | |||
27 | if [ "$result" -ne "0" ]; then | ||
28 | for i in regress/failed*; do | ||
29 | echo ------------------------------------------------------------------------- | ||
30 | echo LOGFILE $i | ||
31 | cat $i | ||
32 | echo ------------------------------------------------------------------------- | ||
33 | done | ||
34 | fi | ||