diff options
| author | Dwayne B. Bent <dbb@dbb.dev> | 2026-07-22 11:32:42 -0400 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-07-23 11:47:08 +0200 |
| commit | 37a73a24512f967665d1d018d340f999ed888127 (patch) | |
| tree | 576a5e6fcff247c558829ec8bc056f493afdee11 | |
| parent | ffa5cee6bb781d7ced19a69659c3d443ea734163 (diff) | |
| download | passt-37a73a24512f967665d1d018d340f999ed888127.tar passt-37a73a24512f967665d1d018d340f999ed888127.tar.gz passt-37a73a24512f967665d1d018d340f999ed888127.tar.bz2 passt-37a73a24512f967665d1d018d340f999ed888127.tar.lz passt-37a73a24512f967665d1d018d340f999ed888127.tar.xz passt-37a73a24512f967665d1d018d340f999ed888127.tar.zst passt-37a73a24512f967665d1d018d340f999ed888127.zip | |
Adds a test that asserts that when pasta is invoked via `unshare -r` in
standalone mode with `--netns-only` it does not print any warnings, and
the command executes successfully.
Link: https://bugs.passt.top/show_bug.cgi?id=216
Assisted-by: Codex:gpt-5.6-sol
Signed-off-by: Dwayne B. Bent <dbb@dbb.dev>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
| -rw-r--r-- | test/pasta_options/netns_only | 19 | ||||
| -rwxr-xr-x | test/run | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/pasta_options/netns_only b/test/pasta_options/netns_only new file mode 100644 index 0000000..197ed44 --- /dev/null +++ b/test/pasta_options/netns_only @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.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/pasta_options/netns_only - Check --netns-only handling + +htools unshare grep + +test --netns-only skips id mapping configuration +set OUT __STATEDIR__/netns-only.out +set ERR __STATEDIR__/netns-only.err + +passt unshare -r -- ./pasta -q --netns-only -- echo TEST > __OUT__ 2> __ERR__ +check grep -qx TEST __OUT__ +check [ ! -s __ERR__ ] @@ -85,6 +85,7 @@ run() { setup pasta_options test pasta_options/log_to_file + test pasta_options/netns_only teardown pasta_options setup build |
