mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-16 02:47:41 +00:00
Add system test
Signed-off-by: Aleksei Kosyrev <albnnc@gmail.com>
This commit is contained in:
parent
3fdb6ee2df
commit
732cec794e
1 changed files with 19 additions and 0 deletions
|
|
@ -668,6 +668,25 @@ EOF
|
|||
run_podman rmi -f build_test
|
||||
}
|
||||
|
||||
# Regression test for #20259
|
||||
@test "podman build with ignore '*' and containerfile outside of build context" {
|
||||
local tmpdir=$PODMAN_TMPDIR/build-test-$(random_string 10)
|
||||
mkdir -p $tmpdir
|
||||
mkdir -p $tmpdir/context
|
||||
|
||||
cat >$tmpdir/Containerfile <<EOF
|
||||
FROM scratch
|
||||
EOF
|
||||
|
||||
cat >$tmpdir/context/.containerignore <<EOF
|
||||
*
|
||||
EOF
|
||||
run_podman build -t build_test -f $tmpdir/Containerfile $tmpdir/context
|
||||
|
||||
# Clean up
|
||||
run_podman rmi -f build_test
|
||||
}
|
||||
|
||||
@test "podman build - stdin test" {
|
||||
# Random workdir, and random string to verify build output
|
||||
workdir=/$(random_string 10)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue