mirror of git://anongit.mindrot.org/openssh.git
Add ability to specify exact test target.
This commit is contained in:
parent
c2ec7a07f8
commit
eb122b1eeb
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue