Skip to content

Commit 7d58ca1

Browse files
committed
itest: Add reusable integration test library crate
A great thing about LLMs I can can just say "go make the integration tests in this repo A work like tests in repo B" but this has led to some duplication. Factor out a helper crate that wraps libtest-mimic and includes the test macros, support for privileged tests using bcvk etc. This follows the direction outlined in bootc-dev/infra repository-structure.md to reduce code duplication for integration testing. Assisted-by: OpenCode (Claude Opus 4.6) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 5c42e91 commit 7d58ca1

23 files changed

+893
-261
lines changed

Cargo.lock

Lines changed: 109 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/integration-tests/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ name = "test-cleanup"
1717
path = "src/bin/cleanup.rs"
1818

1919
[dependencies]
20+
itest = { path = "../itest" }
2021
bcvk = { path = "../kit" }
21-
color-eyre = { workspace = true }
22+
anyhow = "1"
23+
linkme = "0.3"
2224
dirs = "5.0"
2325
tracing = { workspace = true }
2426
tracing-subscriber = { workspace = true }
@@ -29,13 +31,10 @@ serde = { version = "1.0.199", features = ["derive"] }
2931
serde_json = "1.0.116"
3032
zlink = "0.4"
3133
tokio = { version = "1", features = ["rt", "net", "macros"] }
32-
libtest-mimic = "0.7.3"
3334
tempfile = "3"
3435
uuid = { version = "1.18.1", features = ["v4"] }
3536
camino = "1.1.12"
3637
regex = "1"
37-
linkme = "0.3.30"
38-
paste = "1.0"
3938
rand = { workspace = true }
4039
scopeguard = "1"
4140
cap-std-ext = { workspace = true }

0 commit comments

Comments
 (0)