Skip to content

Commit 20aa08c

Browse files
committed
tests: Add test dependencies and integration binary disambiguation
Add podman, skopeo, and xfsprogs to test dependencies for the containers-storage integration tests coming next. Disambiguate the integration test binary name in Justfile cargo commands since the integration-tests crate will have multiple binaries (the main test runner and a cleanup helper). Assisted-by: OpenCode (Claude Opus 4) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent e5596a4 commit 20aa08c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ _test_image := if base_image =~ "debian" { "localhost/composefs-rs-test-debian:l
5959

6060
# Run unprivileged integration tests against the cfsctl binary (no root, no VM)
6161
test-integration: build
62-
CFSCTL_PATH=$(pwd)/target/debug/cfsctl cargo run -p integration-tests -- --skip privileged_
62+
CFSCTL_PATH=$(pwd)/target/debug/cfsctl cargo run -p integration-tests --bin cfsctl-integration-tests -- --skip privileged_
6363

6464
# Build the test container image for VM-based integration tests
6565
_integration-container-build:
@@ -69,7 +69,7 @@ _integration-container-build:
6969
test-integration-vm: build _integration-container-build
7070
COMPOSEFS_TEST_IMAGE={{_test_image}} \
7171
CFSCTL_PATH=$(pwd)/target/debug/cfsctl \
72-
cargo run -p integration-tests
72+
cargo run -p integration-tests --bin cfsctl-integration-tests
7373

7474
# Run everything: checks + full integration tests including VM
7575
ci: check test-integration-vm

contrib/packaging/install-test-deps.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ set -euo pipefail
1111

1212
case "${ID}" in
1313
centos|fedora|rhel)
14-
pkg_install composefs openssl
14+
pkg_install composefs openssl podman skopeo xfsprogs
1515
;;
1616
debian|ubuntu)
1717
pkg_install \
18-
openssl e2fsprogs bubblewrap openssh-server
18+
openssl e2fsprogs bubblewrap openssh-server \
19+
podman skopeo
1920

2021
# OSTree symlink targets — /root, /home, /srv, etc. are symlinks
2122
# into /var on OSTree systems, so the target directories must exist.

0 commit comments

Comments
 (0)