aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/warning/5 fallback consistency
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/warning/5 fallback consistency')
-rw-r--r--meson/test cases/warning/5 fallback consistency/meson.build4
-rw-r--r--meson/test cases/warning/5 fallback consistency/subprojects/foo.wrap6
-rw-r--r--meson/test cases/warning/5 fallback consistency/subprojects/foo/meson.build6
-rw-r--r--meson/test cases/warning/5 fallback consistency/test.json7
4 files changed, 23 insertions, 0 deletions
diff --git a/meson/test cases/warning/5 fallback consistency/meson.build b/meson/test cases/warning/5 fallback consistency/meson.build
new file mode 100644
index 000000000..3af6ce888
--- /dev/null
+++ b/meson/test cases/warning/5 fallback consistency/meson.build
@@ -0,0 +1,4 @@
+project('fallback consistency')
+
+# Subproject overrides foo with foo_dep but wrap file says it's bar_dep. This should warn.
+dependency('foo')
diff --git a/meson/test cases/warning/5 fallback consistency/subprojects/foo.wrap b/meson/test cases/warning/5 fallback consistency/subprojects/foo.wrap
new file mode 100644
index 000000000..28055d958
--- /dev/null
+++ b/meson/test cases/warning/5 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/meson/test cases/warning/5 fallback consistency/subprojects/foo/meson.build b/meson/test cases/warning/5 fallback consistency/subprojects/foo/meson.build
new file mode 100644
index 000000000..fb58a4ab3
--- /dev/null
+++ b/meson/test cases/warning/5 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/meson/test cases/warning/5 fallback consistency/test.json b/meson/test cases/warning/5 fallback consistency/test.json
new file mode 100644
index 000000000..c254aaf08
--- /dev/null
+++ b/meson/test cases/warning/5 fallback consistency/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "WARNING: Inconsistency: Subproject has overridden the dependency with another variable than 'bar_dep'"
+ }
+ ]
+}