diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:09:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:09:31 +0000 |
commit | 945553e635f10784600cd8b7ef343c22d35d9890 (patch) | |
tree | e589c41711c97f9db81d4e1b437d2287f4fe0cf0 /debian/tests/common | |
parent | Adding upstream version 2.5.5. (diff) | |
download | libseccomp-4f02583384ba96316a2e1758f64cf302b3af9dd0.tar.xz libseccomp-4f02583384ba96316a2e1758f64cf302b3af9dd0.zip |
Adding debian version 2.5.5-1.debian/2.5.5-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/common')
-rw-r--r-- | debian/tests/common | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/common b/debian/tests/common new file mode 100644 index 0000000..f9562b3 --- /dev/null +++ b/debian/tests/common @@ -0,0 +1,17 @@ +if ! grep -q -E '^Seccomp:[[:blank:]]+0$' /proc/self/status; then + echo "Skipping autpkgptest as the test environment already applies a seccomp filter" + exit 77 +fi + +SRCDIR="$(pwd)" + +mkdir "$AUTOPKGTEST_TMP/tests" "$AUTOPKGTEST_TMP/tools" +cp -a tests/. "$AUTOPKGTEST_TMP/tests/" + +cd "$AUTOPKGTEST_TMP/tests" + +# build tools needed for tests +for tool in scmp_api_level scmp_arch_detect scmp_sys_resolver; do + echo "Building $tool ..." + gcc -O2 -g "$SRCDIR/tools/$tool.c" "$SRCDIR/tools/util.c" -lseccomp -o ../tools/$tool +done |