File: testdata.patch

package info (click to toggle)
rust-system-deps 7.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 456 kB
  • sloc: ansic: 63; makefile: 2
file content (134 lines) | stat: -rw-r--r-- 4,515 bytes parent folder | download | duplicates (2)
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
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.

--- /dev/null
+++ b/src/tests/toml-fallback-names/Cargo.toml
@@ -0,0 +1,4 @@
+[package.metadata.system-deps.test_lib]
+version = "1.0"
+name = "nosuchlib"
+fallback-names = ["also-no-such-lib", "testlib", "should-not-get-here"]
--- /dev/null
+++ b/src/tests/toml-feature-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = "1", feature = 2 }
--- /dev/null
+++ b/src/tests/toml-feature-versions/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testdata = { version = "4", v5 = { version = "5" }, v6 = { version = "6" }}
--- /dev/null
+++ b/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" }
--- /dev/null
+++ b/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
--- /dev/null
+++ b/src/tests/toml-missing-key/Cargo.toml
@@ -0,0 +1 @@
+no-pkg-config-here = true
--- /dev/null
+++ b/src/tests/toml-not-table/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata]
+system-deps = "not a table"
--- /dev/null
+++ b/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
--- /dev/null
+++ b/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
--- /dev/null
+++ b/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" } }
--- /dev/null
+++ b/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" }
--- /dev/null
+++ b/src/tests/toml-two-libs/Cargo.toml
@@ -0,0 +1,3 @@
+[package.metadata.system-deps]
+testlib = { version = "1" }
+testanotherlib = { version = "1" }
--- /dev/null
+++ b/src/tests/toml-unexpected-key/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = "1", color = "blue" }
--- /dev/null
+++ b/src/tests/toml-version-fallback-names/Cargo.toml
@@ -0,0 +1,7 @@
+[package.metadata.system-deps.test_lib]
+version = "0.1"
+name = "nosuchlib"
+fallback-names = ["also-no-such-lib", "testlib", "should-not-get-here"]
+v1 = { version = "1.0" }
+v2 = { version = "2.0", fallback-names = ["testlib-2.0"] }
+v99 = { version = "99.0", fallback-names = [] }
--- /dev/null
+++ b/src/tests/toml-version-in-table-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { version = 1 }
--- /dev/null
+++ b/src/tests/toml-version-missing/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = { feature = "test-feature" }
--- /dev/null
+++ b/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
--- /dev/null
+++ b/src/tests/toml-version-not-string/Cargo.toml
@@ -0,0 +1,2 @@
+[package.metadata.system-deps]
+testlib = 1
--- /dev/null
+++ b/src/tests/toml-version-range-unsatisfied/Cargo.toml
@@ -0,0 +1,3 @@
+[package.metadata.system-deps]
+testdata = "4"
+testlib = { version = ">= 1, < 1.2", feature = "test-feature" }
--- /dev/null
+++ b/src/tests/toml-version-range/Cargo.toml
@@ -0,0 +1,3 @@
+[package.metadata.system-deps]
+testdata = "4"
+testlib = { version = ">= 1, < 2", feature = "test-feature" }
--- /dev/null
+++ b/src/tests/lib/libteststatic.a
@@ -0,0 +1 @@
+foo