diff options
Diffstat (limited to 'debian/tests/regress')
-rw-r--r-- | debian/tests/regress | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/tests/regress b/debian/tests/regress new file mode 100644 index 000000000..0e3fbc4ae --- /dev/null +++ b/debian/tests/regress | |||
@@ -0,0 +1,38 @@ | |||
1 | #! /bin/sh | ||
2 | set -e | ||
3 | |||
4 | # Don't use "make tests"; we want to test the installed version. | ||
5 | |||
6 | cp -a . "$ADTTMP/tree" | ||
7 | cd "$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. | ||
11 | autoreconf -f -i | ||
12 | cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub ./ | ||
13 | ./configure | ||
14 | make | ||
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. | ||
20 | make regress-prep | ||
21 | make regress/modpipe \ | ||
22 | regress/setuid-allowed \ | ||
23 | regress/unittests/sshbuf/test_sshbuf \ | ||
24 | regress/unittests/sshkey/test_sshkey | ||
25 | |||
26 | SRCDIR="$(pwd)" | ||
27 | BUILDDIR="$SRCDIR" | ||
28 | make -C regress \ | ||
29 | .OBJDIR="$BUILDDIR/regress" \ | ||
30 | .CURDIR="$SRCDIR/regress" \ | ||
31 | BUILDDIR="$BUILDDIR" \ | ||
32 | OBJ="$BUILDDIR/regress" \ | ||
33 | SUDO=sudo \ | ||
34 | TEST_SHELL=sh \ | ||
35 | TEST_SSH_SFTPSERVER=/usr/lib/openssh/sftp-server \ | ||
36 | TEST_SSH_IPV6=yes \ | ||
37 | TEST_SSH_ECC=yes \ | ||
38 | tests interop-tests | ||