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