-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Mike Gilbert <[email protected]>
- Loading branch information
1 parent
a9440d0
commit 6641785
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(), | ||
} | ||
) |