@@ -558,6 +558,7 @@ fn test_proc_macro() {
558558 test_proc_macro_inner ( false ) ;
559559 test_proc_macro_inner ( true ) ;
560560}
561+
561562fn test_proc_macro_inner ( sbom : bool ) {
562563 // Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
563564 let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
@@ -586,13 +587,19 @@ fn test_proc_macro_inner(sbom: bool) {
586587 assert_eq ! ( syn_info. kind, DependencyKind :: Build ) ;
587588}
588589
590+
589591#[ test]
590592fn 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 ) {
591598 // Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
592599 let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
593600 . join ( "tests/fixtures/runtime_and_dev_dep_with_different_features/Cargo.toml" ) ;
594601 // 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 ) ;
596603 eprintln ! ( "Test fixture binary map: {bins:?}" ) ;
597604
598605 let toplevel_crate_bin = & bins. get ( "top_level_crate" ) . unwrap ( ) [ 0 ] ;
@@ -608,11 +615,16 @@ fn test_dependency_unification() {
608615
609616#[ test]
610617fn 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 ) {
611623 // Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
612624 let workspace_cargo_toml = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
613625 . join ( "tests/fixtures/cargo-audit-dep-cycle/Cargo.toml" ) ;
614626 // 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 ) ;
616628 eprintln ! ( "Test fixture binary map: {bins:?}" ) ;
617629
618630 let toplevel_crate_bin = & bins. get ( "cargo-audit-dep-cycle" ) . unwrap ( ) [ 0 ] ;
0 commit comments