summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/test
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-02-28 18:59:15 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-03-02 17:34:24 +0000
commitec5c40b83acae400a8cc1a18ad897b6365774559 (patch)
treec5278180af04a1e866c3dbe95a3fed46d93a4aa0 /extras/hs-test/test
parent2da99e50722f258618fa5fe53f93e603c97d4fe3 (diff)
hs-test: add support for running vpp in gdb
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I6e03b88ca013cafd73f424ea63f706f105bebe6b
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