Debian Codegraph @

debian/tests/upstream-nonroot

raw
1 #!/bin/sh
2 set -e
3 # NB: -e is required.
4
5
6 # These tests are taken from the "test" targets from the various Makefiles.
7 # Unfortunately, it seems to be easier to just copy them here, rather than
8 # patching up the Makefiles to work with binaries built for autopkgtest.
9
10
11 TESTARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
12 TESTDIR="/usr/lib/${TESTARCH}/libcap2/tests"
13
14 echo "@@@ Running upstream tests (root not required) @@@"
15
16 echo "## Preparation ##"
17 cp -f "${TESTDIR}"/* "$AUTOPKGTEST_TMP"/
18 cd "$AUTOPKGTEST_TMP"
19
20 echo "## libcap2 tests ##"
21 # From <src>/libcap/Makefile
22 ./cap_test
23
24 echo "## libpsx tests ##"
25 # From <src>/tests/Makefile
26 ./psx_test
27 ./libcap_psx_test
28
29 echo "## pam_cap tests ##"
30 # From <src>/pam_cap/Makefile
31 ./test_pam_cap