File: upstream-nonroot

package info (click to toggle)
libcap2 1%3A2.75-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,068 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 812; cpp: 45; asm: 16
file content (31 lines) | stat: -rwxr-xr-x 735 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e
# NB: -e is required.


# These tests are taken from the "test" targets from the various Makefiles.
# Unfortunately, it seems to be easier to just copy them here, rather than
# patching up the Makefiles to work with binaries built for autopkgtest.


TESTARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
TESTDIR="/usr/lib/${TESTARCH}/libcap2/tests"

echo "@@@ Running upstream tests (root not required) @@@"

echo "## Preparation ##"
cp -f "${TESTDIR}"/* "$AUTOPKGTEST_TMP"/
cd "$AUTOPKGTEST_TMP"

echo "## libcap2 tests ##"
# From <src>/libcap/Makefile
./cap_test

echo "## libpsx tests ##"
# From <src>/tests/Makefile
./psx_test
./libcap_psx_test

echo "## pam_cap tests ##"
# From <src>/pam_cap/Makefile
./test_pam_cap