From 8ed72d33aabd7b123f8faeda07b07b816f7b696a Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Thu, 9 Nov 2023 21:54:16 +0000 Subject: [PATCH] test: add a squashfs and tar interop test Signed-off-by: Ramkumar Chinchani --- test/squashfs.bats | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/test/squashfs.bats b/test/squashfs.bats index 3210e3ef..a1d3173b 100644 --- a/test/squashfs.bats +++ b/test/squashfs.bats @@ -225,3 +225,45 @@ EOF cat layer1/message [ "$(cat layer1/message)" == "foo bar" ] } + +@test "build squashfs then tar" { + cat > stacker.yaml <&2 + cat >"$1" + } + + writefile /etc/systemd/network/20-wire-enp0s-dhcp.network <<"END" + [Match] + Name=enp0s* + [Network] + DHCP=yes + END + +demo-zot: + from: + type: built + tag: install-rootfs-pkg + import: + - x + run: | + #!/bin/sh -ex + cp /stacker/imports/x /usr/bin/x +EOF + stacker build --layer-type=squashfs + stacker build --layer-type=tar +}