diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-08-07 15:11:42 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-08-07 15:24:55 +1000 |
commit | eb122b1eebe58b29a83a507ee814cbcf8aeded1b (patch) | |
tree | 26a202e2bd0eecd3afa1b91264c26a74ec4a6bf6 /.github/run_test.sh | |
parent | c2ec7a07f8caabb4d8e00c66e7cd46bf2cd1e922 (diff) |
Add ability to specify exact test target.
Diffstat (limited to '.github/run_test.sh')
-rwxr-xr-x | .github/run_test.sh | 23 |
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 | |||
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 | else | ||
22 | make $TEST_TARGET LTESTS="$LTESTS" | ||
23 | fi | ||