File: disable-tests-missing-testdata.patch

package info (click to toggle)
rust-cargo-auditable 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 388 kB
  • sloc: makefile: 2
file content (56 lines) | stat: -rw-r--r-- 1,950 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Index: cargo-auditable/src/auditable_from_metadata.rs
===================================================================
--- cargo-auditable.orig/src/auditable_from_metadata.rs
+++ cargo-auditable/src/auditable_from_metadata.rs
@@ -267,7 +267,7 @@ mod tests {
         cmd.exec().unwrap()
     }
 
-    #[test]
+    /*#[test]
     fn dependency_cycle() {
         let cargo_toml_path = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap())
             .join("tests/fixtures/cargo-audit-dep-cycle/Cargo.toml");
@@ -275,5 +275,5 @@ mod tests {
         let version_info_struct: VersionInfo = encode_audit_data(&metadata).unwrap();
         let json = serde_json::to_string(&version_info_struct).unwrap();
         VersionInfo::from_str(&json).unwrap(); // <- the part we care about succeeding
-    }
+    }*/
 }
Index: cargo-auditable/tests/it.rs
===================================================================
--- cargo-auditable.orig/tests/it.rs
+++ cargo-auditable/tests/it.rs
@@ -161,7 +161,7 @@ fn get_dependency_info(binary: &Utf8Path
     auditable_info::audit_info_from_file(binary.as_std_path(), Default::default()).unwrap()
 }
 
-#[test]
+/*#[test]
 fn test_cargo_auditable_workspaces() {
     test_cargo_auditable_workspaces_inner(false);
     test_cargo_auditable_workspaces_inner(true);
@@ -484,7 +484,7 @@ fn test_custom_rustc_path_inner(sbom: bo
         .packages
         .iter()
         .any(|p| p.name == "build_dep_of_runtime_dep" && p.kind == DependencyKind::Build));
-}
+}*/
 
 #[test]
 fn test_workspace_member_version_info() {
@@ -502,7 +502,7 @@ fn test_workspace_member_version_info()
     assert!(status.success());
 }
 
-#[test]
+/*#[test]
 fn test_wasm() {
     test_wasm_inner(false);
     test_wasm_inner(true);
@@ -585,3 +585,4 @@ fn test_proc_macro_inner(sbom: bool) {
         .expect("Could not find 'syn' in the embedded dependency list!");
     assert_eq!(syn_info.kind, DependencyKind::Build);
 }
+*/