diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/warning/5 fallback consistency | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/warning/5 fallback consistency')
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'" + } + ] +} |