]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add ability to specify exact test target.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 7 Aug 2020 05:11:42 +0000 (15:11 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 7 Aug 2020 05:24:55 +0000 (15:24 +1000)
.github/run_test.sh [new file with mode: 0755]
.github/workflows/c-cpp.yml

diff --git a/.github/run_test.sh b/.github/run_test.sh
new file mode 100755 (executable)
index 0000000..f8a97f5
--- /dev/null
@@ -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
index 6ea16196b26489d9825abdde7c6175ef296f584e..2189756bbf8f2245b4f874c14c58dc61ecbb2f5b 100644 (file)
@@ -34,6 +34,6 @@ jobs:
     - name: make
       run: make
     - name: make tests
-      run: make tests
+      run: ./.github/run_test.sh ${{ matrix.configs }}
       env:
         TEST_SSH_UNSAFE_PERMISSIONS: 1