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/shutdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/passt/shutdown (limited to 'test/passt/shutdown') diff --git a/test/passt/shutdown b/test/passt/shutdown new file mode 100644 index 0000000..ce90ea9 --- /dev/null +++ b/test/passt/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/shutdown - Shut down passt (or pasta) and check exit code (will +# detect valgrind errors amongst others) +# +# Copyright (c) 2022 Red Hat GmbH +# Author: Stefano Brivio + +test shutdown: exit code + +hout PASST_PID cat passt.pid +host kill __PASST_PID__ +sleep 1 +passtw -- cgit v1.2.3