diff options
author | Mathias Krause <minipli@grsecurity.net> | 2024-01-23 12:17:18 +0100 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-07-22 17:06:05 -0400 |
commit | 66417851bbfc2266513774e59aa32b36469a756b (patch) | |
tree | 33ccfb713cec128f1987cc07e12bb34e9ffe1b04 /tests | |
parent | seccomp: make socket() fail with -ENOSYS (diff) | |
download | pax-utils-66417851bbfc2266513774e59aa32b36469a756b.tar.gz pax-utils-66417851bbfc2266513774e59aa32b36469a756b.tar.bz2 pax-utils-66417851bbfc2266513774e59aa32b36469a756b.zip |
tests: add basic pspax test
Add a basic test that simply makes sure pspax executes just fine, i.e.
doesn't get killed by the seccomp policy.
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/pspax/dotest | 12 | ||||
-rw-r--r-- | tests/pspax/meson.build | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/pspax/dotest b/tests/pspax/dotest new file mode 100755 index 0000000..f2ccc98 --- /dev/null +++ b/tests/pspax/dotest @@ -0,0 +1,12 @@ +#!/bin/bash + +. "${0%/*}"/../lib.sh + +# +# simple pspax execution check +# +${MESON_EXE_WRAPPER} sh -c "${builddir}/pspax" >/dev/null \ + 2> "${builddir}"/pspax.err +testit pspax.err + +exit ${ret} diff --git a/tests/pspax/meson.build b/tests/pspax/meson.build new file mode 100644 index 0000000..a00a96d --- /dev/null +++ b/tests/pspax/meson.build @@ -0,0 +1,8 @@ +test('pspax-test', files('dotest'), + workdir : meson.current_source_dir(), + env : { + 'builddir' : meson.project_build_root(), + 'srcdir' : meson.project_source_root(), + 'current_srcdir' : meson.current_source_dir(), + } +) |