Add ability to specify exact test target.

This commit is contained in:
Darren Tucker 2020-08-07 15:11:42 +10:00
parent c2ec7a07f8
commit eb122b1eeb
2 changed files with 24 additions and 1 deletions

23
.github/run_test.sh vendored Executable file
View File

@ -0,0 +1,23 @@
#!/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
else
make $TEST_TARGET LTESTS="$LTESTS"
fi

View File

@ -34,6 +34,6 @@ jobs:
- name: make - name: make
run: make run: make
- name: make tests - name: make tests
run: make tests run: ./.github/run_test.sh ${{ matrix.configs }}
env: env:
TEST_SSH_UNSAFE_PERMISSIONS: 1 TEST_SSH_UNSAFE_PERMISSIONS: 1