Skip to content

Commit 2e5c176

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 ad69de1 commit 2e5c176

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
@@ -55,7 +55,7 @@ _test_image := if base_image =~ "debian" { "localhost/composefs-rs-test-debian:l
5555

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

6060
# Build the test container image for VM-based integration tests
6161
_integration-container-build:
@@ -65,7 +65,7 @@ _integration-container-build:
6565
test-integration-vm: build _integration-container-build
6666
COMPOSEFS_TEST_IMAGE={{_test_image}} \
6767
CFSCTL_PATH=$(pwd)/target/debug/cfsctl \
68-
cargo run -p integration-tests
68+
cargo run -p integration-tests --bin cfsctl-integration-tests
6969

7070
# Run everything: checks + full integration tests including VM
7171
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)