2023-08-23 13:51:49 +00:00
|
|
|
# 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>
|
|
|
|
|
2024-03-21 04:57:41 +00:00
|
|
|
htools git make go bats ip jq socat ./test/podman/bin/podman
|
2023-08-23 13:51:49 +00:00
|
|
|
|
2024-03-21 04:57:42 +00:00
|
|
|
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" ]
|
|
|
|
|
2023-08-23 13:51:49 +00:00
|
|
|
test Podman system test with bats
|
|
|
|
|
2024-03-21 04:57:42 +00:00
|
|
|
host PODMAN="__PODMAN__" CONTAINERS_HELPER_BINARY_DIR="__WD__" bats test/podman/test/system/505-networking-pasta.bats
|