mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-22 18:02:20 +00:00
Add ability to specify exact test target.
This commit is contained in:
parent
c2ec7a07f8
commit
eb122b1eeb
23
.github/run_test.sh
vendored
Executable file
23
.github/run_test.sh
vendored
Executable 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
|
2
.github/workflows/c-cpp.yml
vendored
2
.github/workflows/c-cpp.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user