summaryrefslogtreecommitdiff
path: root/.github/run_test.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-08-07 15:11:42 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-08-07 15:24:55 +1000
commiteb122b1eebe58b29a83a507ee814cbcf8aeded1b (patch)
tree26a202e2bd0eecd3afa1b91264c26a74ec4a6bf6 /.github/run_test.sh
parentc2ec7a07f8caabb4d8e00c66e7cd46bf2cd1e922 (diff)
Add ability to specify exact test target.
Diffstat (limited to '.github/run_test.sh')
-rwxr-xr-x.github/run_test.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/run_test.sh b/.github/run_test.sh
new file mode 100755
index 000000000..f8a97f51f
--- /dev/null
+++ b/.github/run_test.sh
@@ -0,0 +1,23 @@
1#!/usr/bin/env bash
2
3TARGETS=$@
4
5TEST_TARGET="tests"
6LTESTS="" # all tests by default
7
8set -ex
9
10for 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
17done
18
19if [ -z "$LTESTS" ]; then
20 make $TEST_TARGET
21else
22 make $TEST_TARGET LTESTS="$LTESTS"
23fi