Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test/overlay-dirs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ first:
[ -x /executable ]
EOF
stacker build

umoci unpack --image oci:first dest
[ -f dest/rootfs/file1 ]
[ -f dest/rootfs/file2 ]
[ -x dest/rootfs/executable ]
}

@test "import from overlay_dir works" {
Expand All @@ -51,6 +56,9 @@ second:
[ -f /stacker/file ]
EOF
stacker build

umoci unpack --image oci:first dest
[ -f dest/rootfs/file ]
}

@test "overlay_dirs dest works" {
Expand All @@ -68,6 +76,9 @@ first:
[ -f /usr/local/file ]
EOF
stacker build

umoci unpack --image oci:first dest
[ -f dest/rootfs/usr/local/file ]
}

@test "overlay_dirs cache works" {
Expand Down Expand Up @@ -114,4 +125,8 @@ first:
[ "\$(stat --format=%U /usr/local/file )" == "root" ]
EOF
stacker build

umoci unpack --image oci:first dest
[ -f dest/rootfs/usr/local/file ]
[ -f dest/rootfs/usr/local/file2 ]
}