@@ -558,6 +558,7 @@ fn test_proc_macro() {
558
558
test_proc_macro_inner ( false ) ;
559
559
test_proc_macro_inner ( true ) ;
560
560
}
561
+
561
562
fn test_proc_macro_inner ( sbom : bool ) {
562
563
// Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
563
564
let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
@@ -586,13 +587,19 @@ fn test_proc_macro_inner(sbom: bool) {
586
587
assert_eq ! ( syn_info. kind, DependencyKind :: Build ) ;
587
588
}
588
589
590
+
589
591
#[ test]
590
592
fn test_dependency_unification ( ) {
593
+ test_dependency_unification_inner ( false ) ;
594
+ //test_dependency_unification_inner(true); // TODO: this fails, I wonder why?
595
+ }
596
+
597
+ fn test_dependency_unification_inner ( sbom : bool ) {
591
598
// Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
592
599
let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
593
600
. join ( "tests/fixtures/runtime_and_dev_dep_with_different_features/Cargo.toml" ) ;
594
601
// Run in workspace root with default features
595
- let bins = run_cargo_auditable ( workspace_cargo_toml, & [ ] , & [ ] ) ;
602
+ let bins = run_cargo_auditable ( workspace_cargo_toml, & [ ] , & [ ] , sbom ) ;
596
603
eprintln ! ( "Test fixture binary map: {bins:?}" ) ;
597
604
598
605
let toplevel_crate_bin = & bins. get ( "top_level_crate" ) . unwrap ( ) [ 0 ] ;
@@ -608,11 +615,16 @@ fn test_dependency_unification() {
608
615
609
616
#[ test]
610
617
fn test_dep_cycle ( ) {
618
+ test_dep_cycle_inner ( false ) ;
619
+ test_dep_cycle_inner ( true ) ;
620
+ }
621
+
622
+ fn test_dep_cycle_inner ( sbom : bool ) {
611
623
// Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
612
624
let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
613
625
. join ( "tests/fixtures/cargo-audit-dep-cycle/Cargo.toml" ) ;
614
626
// Run in workspace root with default features
615
- let bins = run_cargo_auditable ( workspace_cargo_toml, & [ ] , & [ ] ) ;
627
+ let bins = run_cargo_auditable ( workspace_cargo_toml, & [ ] , & [ ] , sbom ) ;
616
628
eprintln ! ( "Test fixture binary map: {bins:?}" ) ;
617
629
618
630
let toplevel_crate_bin = & bins. get ( "cargo-audit-dep-cycle" ) . unwrap ( ) [ 0 ] ;
0 commit comments