diff options
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh/run-ptest')
-rwxr-xr-x | meta/recipes-connectivity/openssh/openssh/run-ptest | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/run-ptest b/meta/recipes-connectivity/openssh/openssh/run-ptest index ae03e929b2..c9100f9f37 100755 --- a/meta/recipes-connectivity/openssh/openssh/run-ptest +++ b/meta/recipes-connectivity/openssh/openssh/run-ptest | |||
@@ -1,11 +1,26 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | export TEST_SSH_SSH=ssh | ||
3 | export TEST_SHELL=sh | 4 | export TEST_SHELL=sh |
4 | export SKIP_UNIT=1 | 5 | export SKIP_UNIT=1 |
5 | 6 | ||
6 | cd regress | 7 | cd regress |
8 | |||
9 | # copied from openssh-portable/.github/run_test.sh | ||
10 | output_failed_logs() { | ||
11 | for i in failed*.log; do | ||
12 | if [ -f "$i" ]; then | ||
13 | echo ------------------------------------------------------------------------- | ||
14 | echo LOGFILE $i | ||
15 | cat $i | ||
16 | echo ------------------------------------------------------------------------- | ||
17 | fi | ||
18 | done | ||
19 | } | ||
20 | trap output_failed_logs 0 | ||
21 | |||
7 | sed -i "/\t\tagent-ptrace /d" Makefile | 22 | sed -i "/\t\tagent-ptrace /d" Makefile |
8 | make -k .OBJDIR=`pwd` .CURDIR=`pwd` SUDO="sudo" tests \ | 23 | make -k BUILDDIR=`pwd`/.. .OBJDIR=`pwd` .CURDIR=`pwd` SUDO="" tests \ |
9 | | sed -u -e 's/^skipped/SKIP: /g' -e 's/^ok /PASS: /g' -e 's/^failed/FAIL: /g' | 24 | | sed -u -e 's/^skipped/SKIP: /g' -e 's/^ok /PASS: /g' -e 's/^failed/FAIL: /g' |
10 | 25 | ||
11 | SSHAGENT=`which ssh-agent` | 26 | SSHAGENT=`which ssh-agent` |