2022-03-15 19:16:13 +00:00
|
|
|
# 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
|
|
|
|
#
|
2022-08-18 06:13:55 +00:00
|
|
|
# test/shutdown/passt_in_ns - Shut down passt and check exit code (will detect
|
|
|
|
# valgrind errors amongst others)
|
2022-03-15 19:16:13 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2022 Red Hat GmbH
|
|
|
|
# Author: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
2022-08-18 06:13:55 +00:00
|
|
|
test shutdown: exit code
|
2022-03-15 19:16:13 +00:00
|
|
|
|
|
|
|
nsout PASST_PID cat passt.pid
|
|
|
|
ns kill __PASST_PID__
|
|
|
|
sleep 1
|
|
|
|
|
2022-08-18 06:13:55 +00:00
|
|
|
pout EXIT echo $?
|
|
|
|
check [ "__EXIT__" = "0" ]
|