summaryrefslogtreecommitdiff
path: root/tests/regression
diff options
context:
space:
mode:
authorChris Waldon <chris.waldon@ibm.com>2020-01-15 08:57:45 -0500
committerPaul Moore <paul@paul-moore.com>2020-01-20 08:50:32 -0500
commitb9dddcc74ddabf6c281c9be44a9b0f8891ed7b45 (patch)
treea1cc717e96d448d65d63be15e75ff106904d51b5 /tests/regression
parent05452332281d60e4116198f1209d74a90c8a3076 (diff)
downloadlibseccomp-b9dddcc74ddabf6c281c9be44a9b0f8891ed7b45.tar.gz
travis: avoid running live python tests in TravisCI
Signed-off-by: Chris Waldon <chris.waldon@ibm.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/regression')
-rwxr-xr-xtests/regression4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regression b/tests/regression
index ec487d1..56822fb 100755
--- a/tests/regression
+++ b/tests/regression
@@ -94,6 +94,7 @@ libseccomp regression test automation script
optional arguments:
-h show this help message and exit
-m MODE specified the test mode [c (default), python]
+ can also be set via LIBSECCOMP_TSTCFG_MODE_LIST env variable
-a specifies all tests are to be run
-b BATCH_NAME specifies batch of tests to be run
-l [LOG] specifies log file to write test results to
@@ -1025,6 +1026,9 @@ while getopts "ab:gl:m:s:t:T:vh" opt; do
esac
done
+# use mode list from environment if provided
+[[ -z $mode_list && -n $LIBSECCOMP_TSTCFG_MODE_LIST ]] && mode_list=$LIBSECCOMP_TSTCFG_MODE_LIST
+
# determine the mode test automatically
if [[ -z $mode_list ]]; then
# always perform the native c tests