Skip to content

Commit 94d4ce8

Browse files
mvo5allisonkarlitskaya
authored andcommitted
tests: use test_with and skip tests that need mkcomposefs
This commit adds the `test_with` crate and skips the tests that require `mkcomposefs`. It uses use the minimal configuration of `tests_with` and with that we now pull in 229 `cargo tree` lines vs the pervious 217 (fwiw, the default configuration of tests_with incrases the crates from 217 to 497). Even the extra 12 might be too much for this tiny feature, feel free to close again if you feel this is not worth it. Signed-off-by: Michael Vogt <[email protected]>
1 parent 55ae2e9 commit 94d4ce8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ zstd = "0.13.2"
3131

3232
[dev-dependencies]
3333
similar-asserts = "1.6.0"
34+
test-with = { version = "0.14", default-features = false, features = ["executable"] }
3435

3536
[profile.dev.package.sha2]
3637
# this is *really* slow otherwise

src/dumpfile_parse.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ mod tests {
864864
}
865865
}
866866

867+
#[test_with::executable(mkcomposefs)]
867868
#[test]
868869
fn test_load_cfs() -> Result<()> {
869870
let mut tmpf = tempfile::tempfile()?;
@@ -879,6 +880,7 @@ mod tests {
879880
Ok(())
880881
}
881882

883+
#[test_with::executable(mkcomposefs)]
882884
#[test]
883885
fn test_load_cfs_filtered() -> Result<()> {
884886
const FILTERED: &str =

0 commit comments

Comments
 (0)