From 594c2f93716380feb29aeb774ba77704684aa125 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 13 Sep 2022 14:35:16 +1000 Subject: test: Group tests by mode then protocol, rather than the reverse For example, passt/dhcp rather than dhcp/passt. This is more consistent with the two_guests and other test groups, and makes some other cleanups simpler. Signed-off-by: David Gibson --- test/passt_in_ns/shutdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/passt_in_ns/shutdown (limited to 'test/passt_in_ns/shutdown') 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 + +test shutdown: exit code + +nsout PASST_PID cat passt.pid +ns kill __PASST_PID__ +sleep 1 +passtw -- cgit v1.2.3