aboutgitcodebugslistschat
path: root/test/passt_in_ns/shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'test/passt_in_ns/shutdown')
-rw-r--r--test/passt_in_ns/shutdown20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/passt_in_ns/shutdown b/test/passt_in_ns/shutdown
new file mode 100644
index 0000000..abe9d6c
--- /dev/null
+++ b/test/passt_in_ns/shutdown
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
+#
+# PASST - Plug A Simple Socket Transport
+# for qemu/UNIX domain socket mode
+#
+# PASTA - Pack A Subtle Tap Abstraction
+# for network namespace/tap device mode
+#
+# test/passt_in_ns/shutdown - Shut down passt and check exit code (will detect
+# valgrind errors amongst others)
+#
+# Copyright (c) 2022 Red Hat GmbH
+# Author: Stefano Brivio <sbrivio@redhat.com>
+
+test shutdown: exit code
+
+nsout PASST_PID cat passt.pid
+ns kill __PASST_PID__
+sleep 1
+passtw