aboutgitcodebugslistschat
path: root/test/run
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-08-18 16:13:55 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-08-20 19:07:12 +0200
commit9224af149483e448546db7a63b66992c6003ab3e (patch)
tree4af78615ca9c52d20d06ced6a7b4d427fff73a4e /test/run
parent5beef085978e7ab8edc0f8a2b2a4d91a44ba2a3c (diff)
downloadpasst-9224af149483e448546db7a63b66992c6003ab3e.tar
passt-9224af149483e448546db7a63b66992c6003ab3e.tar.gz
passt-9224af149483e448546db7a63b66992c6003ab3e.tar.bz2
passt-9224af149483e448546db7a63b66992c6003ab3e.tar.lz
passt-9224af149483e448546db7a63b66992c6003ab3e.tar.xz
passt-9224af149483e448546db7a63b66992c6003ab3e.tar.zst
passt-9224af149483e448546db7a63b66992c6003ab3e.zip
test: Rename slightly misleading "valgrind" tests
The "valgrind" test cases are designed to pick up errors reported when passt is running under valgrind. But what it actually does is just kill the passt process, then see if it had a non-zero exit code. That means it will equally well pick up any other problems which caused passt to exit with an error status: either something detected within passt or as a result of passt being killed by an unexpected signal. The fact that the "valgrind" test is actually responsible for shutting down the passt process is non-obvious and can lead to problems when selectively running tests during debugging. Rename the "valgrind" tests to "shutdown" tests and run it regardless of whether we're using valgrind or not. This allows us to remove an ugly speacial case in the passt_in_ns teardown code. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run b/test/run
index efec955..f9792bd 100755
--- a/test/run
+++ b/test/run
@@ -84,7 +84,7 @@ run() {
test dhcp/passt
test tcp/passt
test udp/passt
- test valgrind/passt
+ test shutdown/passt
teardown passt
VALGRIND=1
@@ -94,7 +94,7 @@ run() {
test icmp/passt_in_ns
test tcp/passt_in_ns
test udp/passt_in_ns
- test valgrind/passt_in_ns
+ test shutdown/passt_in_ns
teardown passt_in_ns
VALGRIND=0
@@ -105,6 +105,7 @@ run() {
test perf/passt_udp
test perf/pasta_tcp
test perf/pasta_udp
+ test shutdown/passt_in_ns
teardown passt_in_ns
setup two_guests