aboutgitcodebugslistschat
path: root/test/pasta_podman
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-08-23 15:51:49 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-09-07 11:25:41 +0200
commitee58f37db060535bee298bc98f61497eac37f152 (patch)
tree93794459f031b6bef3c88c29385e3077dade3ced /test/pasta_podman
parent1f24d3efb4996b6bbc9a2ea4c040b230aac986a0 (diff)
downloadpasst-ee58f37db060535bee298bc98f61497eac37f152.tar
passt-ee58f37db060535bee298bc98f61497eac37f152.tar.gz
passt-ee58f37db060535bee298bc98f61497eac37f152.tar.bz2
passt-ee58f37db060535bee298bc98f61497eac37f152.tar.lz
passt-ee58f37db060535bee298bc98f61497eac37f152.tar.xz
passt-ee58f37db060535bee298bc98f61497eac37f152.tar.zst
passt-ee58f37db060535bee298bc98f61497eac37f152.zip
test: Add Podman system test with bats for pasta2023_09_07.ee58f37
Ugly as hell, but we keep breaking things otherwise, and I keep forgetting to run this manually (as long as it's based on my local Podman setup, that's the only alternative). We need to clone the Podman repository as distribution packages don't contain test scripts, typically. While at it, build the latest version which is what really matters. As we're planning anyway to revamp the test framework, I'd be inclined to just add this without too many thoughts, and have it as a nice-to-have requirement reminder for the new framework. Link: https://github.com/containers/podman/pull/19699 Suggested-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/pasta_podman')
-rw-r--r--test/pasta_podman/bats21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pasta_podman/bats b/test/pasta_podman/bats
new file mode 100644
index 0000000..21446f0
--- /dev/null
+++ b/test/pasta_podman/bats
@@ -0,0 +1,21 @@
+# 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_podman/bats - Build Podman, run pasta system test with bats
+#
+# Copyright (c) 2022 Red Hat GmbH
+# Author: Stefano Brivio <sbrivio@redhat.com>
+
+htools git make go bats catatonit ip jq socat
+
+test Podman system test with bats
+
+host git -C __STATEDIR__ clone https://github.com/containers/podman.git
+host make -C __STATEDIR__/podman
+hout WD pwd
+host PODMAN="__STATEDIR__/podman/bin/podman" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats __STATEDIR__/podman/test/system/505-networking-pasta.bats