aboutsummaryrefslogtreecommitdiff
path: root/test cases/failing
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-06-29 15:18:14 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-07-01 09:51:57 -0400
commit576493982da325a739f04e5455ef0643b49d94f1 (patch)
treef401e1f44616919224594d5dfda1560e6f28f983 /test cases/failing
parent7c90639078650d9457db21a024d437cbb90452c1 (diff)
downloadmeson-576493982da325a739f04e5455ef0643b49d94f1.zip
meson-576493982da325a739f04e5455ef0643b49d94f1.tar.gz
meson-576493982da325a739f04e5455ef0643b49d94f1.tar.bz2
wrap: Add failing unit test for fallback consistency
Dependency 'foo' is overriden with 'foo_dep' so using fallback variable name 'bar_dep' should abort.
Diffstat (limited to 'test cases/failing')
-rw-r--r--test cases/failing/106 fallback consistency/meson.build3
-rw-r--r--test cases/failing/106 fallback consistency/subprojects/foo.wrap6
-rw-r--r--test cases/failing/106 fallback consistency/subprojects/foo/meson.build6
-rw-r--r--test cases/failing/106 fallback consistency/test.json7
4 files changed, 22 insertions, 0 deletions
diff --git a/test cases/failing/106 fallback consistency/meson.build b/test cases/failing/106 fallback consistency/meson.build
new file mode 100644
index 0000000..1b007f5
--- /dev/null
+++ b/test cases/failing/106 fallback consistency/meson.build
@@ -0,0 +1,3 @@
+project('fallback consistency')
+
+dependency('foo')
diff --git a/test cases/failing/106 fallback consistency/subprojects/foo.wrap b/test cases/failing/106 fallback consistency/subprojects/foo.wrap
new file mode 100644
index 0000000..28055d9
--- /dev/null
+++ b/test cases/failing/106 fallback consistency/subprojects/foo.wrap
@@ -0,0 +1,6 @@
+[wrap-file]
+source_url = http://host.invalid/foo.tar.gz
+source_filename = foo.tar.gz
+
+[provide]
+foo = bar_dep
diff --git a/test cases/failing/106 fallback consistency/subprojects/foo/meson.build b/test cases/failing/106 fallback consistency/subprojects/foo/meson.build
new file mode 100644
index 0000000..fb58a4a
--- /dev/null
+++ b/test cases/failing/106 fallback consistency/subprojects/foo/meson.build
@@ -0,0 +1,6 @@
+project('sub')
+
+foo_dep = declare_dependency()
+meson.override_dependency('foo', foo_dep)
+
+bar_dep = declare_dependency()
diff --git a/test cases/failing/106 fallback consistency/test.json b/test cases/failing/106 fallback consistency/test.json
new file mode 100644
index 0000000..af1a429
--- /dev/null
+++ b/test cases/failing/106 fallback consistency/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "test cases/failing/106 fallback consistency/meson.build:3:0: ERROR: Inconsistency: Subproject has overridden the dependency with another variable than 'bar_dep'"
+ }
+ ]
+}