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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
This patch adds in test data which is included in the upstream git repository
but not in the crates.io release. It is based on the v6.0.2 tag in
the upstream git repository.
src/tests/lib/libteststatic.a is an empty file upstream, but this does not
play well with patches, so I added some dummy content.
Index: system-deps/src/tests/toml-feature-not-string/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-feature-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = "1", feature = 2 }
Index: system-deps/src/tests/toml-feature-versions/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-feature-versions/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testdata = { version = "4", v5 = { version = "5" }, v6 = { version = "6" }}
Index: system-deps/src/tests/toml-good/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-good/Cargo.toml
@@ -0,0 +1,4 @@
+[package.metadata.system-deps]
+testdata = "4"
+testlib = { version = "1", feature = "test-feature" }
+testmore = { version = "2", feature = "another-test-feature" }
Index: system-deps/src/tests/toml-missing-key/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-missing-key/Cargo.toml
@@ -0,0 +1 @@
+no-pkg-config-here = true
Index: system-deps/src/tests/toml-not-table/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-not-table/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata]
+system-deps = "not a table"
Index: system-deps/src/tests/toml-optional/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-optional/Cargo.toml
@@ -0,0 +1,4 @@
+[package.metadata.system-deps]
+testlib = { version = "1.0", optional = true, v5 = { version = "5.0", name = "testlib-5.0", optional = false }}
+testmore = { version = "2", v3 = { version = "3.0", optional = true }}
+testbadger = { version = "1", optional = true }
\ No newline at end of file
Index: system-deps/src/tests/toml-override-name/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-override-name/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+test_lib = { name = "testlib", version = "1.0", v1_2 = { version = "1.2" } }
Index: system-deps/src/tests/toml-two-libs/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-two-libs/Cargo.toml
@@ -0,0 +1,3 @@
+[package.metadata.system-deps]
+testlib = { version = "1" }
+testanotherlib = { version = "1" }
Index: system-deps/src/tests/toml-unexpected-key/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-unexpected-key/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = "1", color = "blue" }
Index: system-deps/src/tests/toml-version-in-table-not-string/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-version-in-table-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = 1 }
Index: system-deps/src/tests/toml-version-missing/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-version-missing/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { feature = "test-feature" }
Index: system-deps/src/tests/toml-version-names/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-version-names/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = "1.2", v2 = { version = "2.0", name = "testlib-2.0" }, v3 = { version = "3.0", name = "testlib-3.0" }}
\ No newline at end of file
Index: system-deps/src/tests/toml-version-not-string/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-version-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = 1
Index: system-deps/src/tests/toml-invalid-cfg/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-invalid-cfg/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps.'cfg(badger)']
+testanotherlib = { version = "1", optional = true }
\ No newline at end of file
Index: system-deps/src/tests/toml-os-specific/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-os-specific/Cargo.toml
@@ -0,0 +1,6 @@
+[package.metadata.system-deps.'cfg(target_os = "linux")']
+testdata = "1"
+[package.metadata.system-deps.'cfg(not(target_os = "macos"))']
+testlib = "1"
+[package.metadata.system-deps.'cfg(unix)']
+testanotherlib = { version = "1", optional = true }
\ No newline at end of file
Index: system-deps/src/tests/toml-static/Cargo.toml
===================================================================
--- /dev/null
+++ system-deps/src/tests/toml-static/Cargo.toml
@@ -0,0 +1,4 @@
+[package.metadata.system-deps]
+testdata = "4"
+teststaticlib = { version = "1", feature = "test-feature" }
+testmore = { version = "2", feature = "another-test-feature" }
Index: system-deps/src/tests/lib/libteststatic.a
===================================================================
--- /dev/null
+++ system-deps/src/tests/lib/libteststatic.a
@@ -0,0 +1 @@
+foo
|