aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-21 15:57:42 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-04-05 16:59:24 +0200
commit954589b64ba55e0d85be39dc8d7b1260f0ea6f1a (patch)
treefd6962b853fe2a26255b32f9c00209e5c638fdac /test
parent489b28e2165416675f8c64b212734bb7af5f2b4e (diff)
downloadpasst-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar.gz
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar.bz2
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar.lz
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar.xz
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.tar.zst
passt-954589b64ba55e0d85be39dc8d7b1260f0ea6f1a.zip
test: Verify that podman tests are using the pasta binary we expect2024_04_05.954589b
Paul Holzinger pointed out that when we invoke the podman tests inside the passt testsuite, the way we point podman at the newly built pasta binary is kind of indirect. It's therefore prudent to check that podman is actually using the binary we expect it to - in particular that it is using the binary built in this tree, not some system installed pasta binary. Suggested-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/pasta_podman/bats11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/pasta_podman/bats b/test/pasta_podman/bats
index 46a958a..6b1c575 100644
--- a/test/pasta_podman/bats
+++ b/test/pasta_podman/bats
@@ -13,7 +13,14 @@
htools git make go bats ip jq socat ./test/podman/bin/podman
+set PODMAN test/podman/bin/podman
+hout WD pwd
+
+test Podman pasta path
+
+hout PASTA_BIN CONTAINERS_HELPER_BINARY_DIR="__WD__" __PODMAN__ info --format "{{.Host.Pasta.Executable}}"
+check [ "__PASTA_BIN__" = "__WD__/pasta" ]
+
test Podman system test with bats
-hout WD pwd
-host PODMAN="test/podman/bin/podman" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats test/podman/test/system/505-networking-pasta.bats
+host PODMAN="__PODMAN__" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats test/podman/test/system/505-networking-pasta.bats