summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/test
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/test')
-rwxr-xr-xextras/hs-test/test13
1 files changed, 13 insertions, 0 deletions
diff --git a/extras/hs-test/test b/extras/hs-test/test
index f02c1596681..a8866524b58 100755
--- a/extras/hs-test/test
+++ b/extras/hs-test/test
@@ -6,6 +6,7 @@ args=
single_test=0
persist_set=0
unconfigure_set=0
+debug_set=0
for i in "$@"
do
@@ -17,6 +18,13 @@ case "${i}" in
persist_set=1
fi
;;
+ --debug=*)
+ debug="${i#*=}"
+ if [ $debug = "true" ]; then
+ args="$args -debug"
+ debug_set=1
+ fi
+ ;;
--verbose=*)
verbose="${i#*=}"
if [ $verbose = "true" ]; then
@@ -54,4 +62,9 @@ if [ $persist_set -eq 1 ] && [ $unconfigure_set -eq 1 ]; then
exit 1
fi
+if [ $single_test -eq 0 ] && [ $debug_set -eq 1 ]; then
+ echo "VPP debug flag is not supperted while running all tests!"
+ exit 1
+fi
+
sudo -E go test -buildvcs=false -v $args