Signed-off-by: Paul Moore <[email protected]>
---
tests/regression | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/regression b/tests/regression
index 38f681b..b2e75a1 100755
--- a/tests/regression
+++ b/tests/regression
@@ -781,6 +781,7 @@ function run_tests() {
# verify general script dependencies
verify_deps head
verify_deps sed
+verify_deps awk
verify_deps seq
verify_deps tr
@@ -850,9 +851,18 @@ while getopts "ab:gl:m:s:t:T:vh" opt; do
esac
done
-# default to running the C tests
+# determine the mode test automatically
if [[ -z $mode_list ]]; then
+ # always perform the native c tests
mode_list="c"
+
+ # query the build configuration
+ if [[ -r "../configure.h" ]]; then
+ # python tests
+ [[ "$(grep "ENABLE_PYTHON" ../configure.h | \
+ awk '{ print $3 }')" = "1" ]] && \
+ mode_list="$mode_list python"
+ fi
fi
# default to all tests if batch or single tests not requested
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss