summaryrefslogtreecommitdiff
path: root/debian/tests/regress
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-12-31 01:30:58 +0000
committerColin Watson <cjwatson@debian.org>2016-12-31 01:30:58 +0000
commit7a2c3e36d11fcd6f97953c636e2ddf14dd73fc5d (patch)
tree51be2b0f9579bf910e4e92e1fbeb4c4a7857e403 /debian/tests/regress
parent139c116c0a8052ca025c132766c0c080aa7f408b (diff)
Dump some useful log files if regression tests fail.
Diffstat (limited to 'debian/tests/regress')
-rwxr-xr-xdebian/tests/regress11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/tests/regress b/debian/tests/regress
index 37f9fe6a2..f3352e3d2 100755
--- a/debian/tests/regress
+++ b/debian/tests/regress
@@ -45,6 +45,7 @@ make regress-binaries
45 45
46SRCDIR="$(pwd)" 46SRCDIR="$(pwd)"
47BUILDDIR="$SRCDIR" 47BUILDDIR="$SRCDIR"
48ret=0
48make -C regress \ 49make -C regress \
49 .OBJDIR="$BUILDDIR/regress" \ 50 .OBJDIR="$BUILDDIR/regress" \
50 .CURDIR="$SRCDIR/regress" \ 51 .CURDIR="$SRCDIR/regress" \
@@ -58,4 +59,12 @@ make -C regress \
58 TEST_SSH_CONCH=conch \ 59 TEST_SSH_CONCH=conch \
59 TEST_SSH_IPV6=yes \ 60 TEST_SSH_IPV6=yes \
60 TEST_SSH_ECC=yes \ 61 TEST_SSH_ECC=yes \
61 tests interop-tests </dev/zero 62 tests interop-tests </dev/zero || ret="$?"
63if [ "$ret" -ne 0 ]; then
64 for log in failed-regress.log failed-ssh.log failed-sshd.log; do
65 if [ -e "$BUILDDIR/regress/$log" ]; then
66 tail -v -n+0 "$BUILDDIR/regress/$log"
67 fi
68 done
69fi
70exit "$ret"