Improve parameter passing to hack/test-system.sh

Allow passing SKOPEO_LDFLAGS and BUILDTAGS.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2025-07-09 23:33:33 +02:00
parent 319d18c0f9
commit 203a4cf741
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ test-system:
# Intended for CI, assumed to already be running in quay.io/libpod/skopeo_cidev container. # Intended for CI, assumed to already be running in quay.io/libpod/skopeo_cidev container.
test-system-local: bin/skopeo test-system-local: bin/skopeo
hack/warn-destructive-tests.sh hack/warn-destructive-tests.sh
hack/test-system.sh hack/test-system.sh SKOPEO_LDFLAGS="$(SKOPEO_LDFLAGS)" BUILDTAGS="$(BUILDTAGS)"
test-unit: test-unit:
# Just call (make test unit-local) here instead of worrying about environment differences # Just call (make test unit-local) here instead of worrying about environment differences

View File

@@ -38,7 +38,7 @@ EOF
fi fi
# Build skopeo, install into /usr/bin # Build skopeo, install into /usr/bin
make PREFIX=/usr install make PREFIX=/usr install "$@"
# Run tests # Run tests
SKOPEO_BINARY=/usr/bin/skopeo bats --tap systemtest SKOPEO_BINARY=/usr/bin/skopeo bats --tap systemtest