Mailing List Archive

[openssh] 03/04: Add ability to specify exact test target.
This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit eb122b1eebe58b29a83a507ee814cbcf8aeded1b
Author: Darren Tucker <dtucker@dtucker.net>
Date: Fri Aug 7 15:11:42 2020 +1000

Add ability to specify exact test target.
---
.github/run_test.sh | 23 +++++++++++++++++++++++
.github/workflows/c-cpp.yml | 2 +-
2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/.github/run_test.sh b/.github/run_test.sh
new file mode 100755
index 00000000..f8a97f51
--- /dev/null
+++ b/.github/run_test.sh
@@ -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
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 6ea16196..2189756b 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -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

--
To stop receiving notification emails like this one, please contact
djm@mindrot.org.
_______________________________________________
openssh-commits mailing list
openssh-commits@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-commits