diff options
author | Paul Moore <paul@paul-moore.com> | 2018-05-10 19:25:34 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-05-10 19:25:34 -0400 |
commit | 8ad3638ea9023c3948976dfadebd1554380a31c9 (patch) | |
tree | 7c7cf1feee88e14413ac4b6173ab67da9bb5a1f3 /tests | |
parent | a9745ef2c36eba7828ef466aaa9eaafea281d6f6 (diff) | |
download | libseccomp-8ad3638ea9023c3948976dfadebd1554380a31c9.tar.gz |
build: enable distcheck'ing for the python code
I'm not particularly proud of the seccomp.pyx hack, but it works, and
enabling the python bindings during the distcheck is definitely the
"Greater Good".
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rwxr-xr-x | tests/regression | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6cd8130..e3762ff 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -125,6 +125,7 @@ EXTRA_DIST_TESTPYTHON = \ 35-sim-negative_one.py \ 36-sim-ipc_syscalls.py \ 37-sim-ipc_syscalls_be.py \ + 39-basic-api_level.py \ 40-sim-log.py \ 41-sim-syscall_priority_arch.py \ 42-sim-adv_chains.py \ diff --git a/tests/regression b/tests/regression index 2a7a502..3c8ab51 100755 --- a/tests/regression +++ b/tests/regression @@ -215,7 +215,12 @@ function run_test_command() { if [[ $mode == "python" ]]; then cmd="PYTHONPATH=$PYTHONPATH" cmd="$cmd:$(cd $(pwd)/../src/python/build/lib.*; pwd)" - cmd="$cmd /usr/bin/env python $2.py $3" + # check and adjust if we are doing a VPATH build + if [[ -e "./$2.py" ]]; then + cmd="$cmd /usr/bin/env python $2.py $3" + else + cmd="$cmd /usr/bin/env python ${srcdir}/$2.py $3" + fi else cmd="$2 $3" fi |