summaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control3
-rw-r--r--debian/tests/regress43
2 files changed, 46 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 000000000..ab5122f46
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
1Tests: regress
2Restrictions: needs-root allow-stderr
3Depends: @builddeps@, openssh-client, openssh-server, openssh-sftp-server, sudo, python-twisted-conch (>= 1:15.5.0-1)
diff --git a/debian/tests/regress b/debian/tests/regress
new file mode 100644
index 000000000..a3ffd66ba
--- /dev/null
+++ b/debian/tests/regress
@@ -0,0 +1,43 @@
1#! /bin/sh
2set -e
3
4# Don't use "make tests"; we want to test the installed version.
5
6cp -a . "$ADTTMP/tree"
7cd "$ADTTMP/tree"
8
9# We aren't actually going to use most of this build, but we need a basic
10# build tree in place in order to be able to build the regression tests.
11autoreconf -f -i
12cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub ./
13./configure
14make
15
16# The defaults for TEST_SSH_* in regress/test-exec.sh use the system
17# versions, but the top-level Makefile sets things up to test the just-built
18# versions, so we must bypass the latter in order to work correctly under
19# autopkgtest.
20make regress-prep
21make regress/modpipe \
22 regress/setuid-allowed \
23 regress/netcat \
24 regress/unittests/sshbuf/test_sshbuf \
25 regress/unittests/sshkey/test_sshkey \
26 regress/unittests/bitmap/test_bitmap \
27 regress/unittests/hostkeys/test_hostkeys \
28 regress/unittests/kex/test_kex
29
30SRCDIR="$(pwd)"
31BUILDDIR="$SRCDIR"
32make -C regress \
33 .OBJDIR="$BUILDDIR/regress" \
34 .CURDIR="$SRCDIR/regress" \
35 BUILDDIR="$BUILDDIR" \
36 OBJ="$BUILDDIR/regress" \
37 SUDO=sudo \
38 TEST_SHELL=sh \
39 TEST_SSH_SFTPSERVER=/usr/lib/openssh/sftp-server \
40 TEST_SSH_CONCH=conch \
41 TEST_SSH_IPV6=yes \
42 TEST_SSH_ECC=yes \
43 tests interop-tests </dev/zero