mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 19:24:24 +00:00
add a SIF systemtest
To make sure that the basic functionality is exercised in Skopeo and c/image CI. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
parent
1391aae0a5
commit
a4476c358c
@ -61,6 +61,9 @@ _run_setup() {
|
|||||||
# VM's come with the distro. skopeo package pre-installed
|
# VM's come with the distro. skopeo package pre-installed
|
||||||
dnf erase -y skopeo
|
dnf erase -y skopeo
|
||||||
|
|
||||||
|
# Required for testing the SIF transport
|
||||||
|
dnf install -y fakeroot squashfs-tools
|
||||||
|
|
||||||
# A slew of compiled binaries are pre-built and distributed
|
# A slew of compiled binaries are pre-built and distributed
|
||||||
# within the CI/Dev container image, but we want to run
|
# within the CI/Dev container image, but we want to run
|
||||||
# things directly on the host VM. Fortunately they're all
|
# things directly on the host VM. Fortunately they're all
|
||||||
|
@ -144,6 +144,14 @@ function setup() {
|
|||||||
diff -urN $shareddir $dir2/blobs
|
diff -urN $shareddir $dir2/blobs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "copy: sif image" {
|
||||||
|
local localimg=dir:$TESTDIR/dir
|
||||||
|
|
||||||
|
run_skopeo copy sif:${TEST_SOURCE_DIR}/testdata/busybox_latest.sif $localimg
|
||||||
|
run_skopeo inspect $localimg --format "{{.Architecture}}"
|
||||||
|
expect_output "amd64"
|
||||||
|
}
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
podman rm -f reg
|
podman rm -f reg
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SKOPEO_BINARY=${SKOPEO_BINARY:-$(dirname ${BASH_SOURCE})/../skopeo}
|
# Directory containing system test sources
|
||||||
|
TEST_SOURCE_DIR=${TEST_SOURCE_DIR:-$(dirname ${BASH_SOURCE})}
|
||||||
|
|
||||||
|
# Skopeo executable
|
||||||
|
SKOPEO_BINARY=${SKOPEO_BINARY:-${TEST_SOURCE_DIR}/../bin/skopeo}
|
||||||
|
|
||||||
# Default timeout for a skopeo command.
|
# Default timeout for a skopeo command.
|
||||||
SKOPEO_TIMEOUT=${SKOPEO_TIMEOUT:-300}
|
SKOPEO_TIMEOUT=${SKOPEO_TIMEOUT:-300}
|
||||||
|
BIN
systemtest/testdata/busybox_latest.sif
vendored
Executable file
BIN
systemtest/testdata/busybox_latest.sif
vendored
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user