aboutsummaryrefslogtreecommitdiff
path: root/test cases/warning
AgeCommit message (Collapse)AuthorFilesLines
2020-07-28Only emit warning about "native:" on projects with minimum required versionZbigniew Jędrzejewski-Szmek2-2/+3
'native:' keyword was only added in 0.54. For projects declaring meson_version >= 0.54, warn, because those projects can and should set the keyword. For older projects declaring support for older versions, don't warn and use the default implicitly. Fixes https://github.com/mesonbuild/meson/issues/6849.
2020-05-14interpreterbase: Allow passing an extra message in feature/deprecation warningsDylan Baker1-1/+1
The intended use it to tell people the new thing to do.
2020-04-30Add expected stdout for failing-meson and warning-meson testsJon Turney2-0/+15
Initially produced using: for d in "test cases/failing/"* ; do rm -r _build ; ./meson.py setup "$d" _build | grep ERROR >"$d"/expected_stdout.txt; done then converted to json with jq using: jq --raw-input --slurp 'split("\n") | {stdout: map({line: select(. != "")})}' expected_stdout.txt >test.json or merged with existing json using: jq --slurp '.[0] + .[1]' test.json expected.json >test.json.new v2: Add some comments to explain the match when it isn't totally obvious v3: Add or adjust existing re: in expected output to handle '/' or '\' path separators appearing in message, not location. v4: Put expected stdout in test.json, rather than a separate expected_stdout.txt file Park comments in an unused 'comments' key, as JSON doesn't have a syntax for comments
2020-02-12Add a test of new warning of omitted native: keywordJon Turney1-0/+2
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D1-1/+1
2019-03-18interpreterbase: protect string division with FeatureNewPaolo Bonzini2-0/+6
Meson is not warning if you join paths with / but you are requesting a version older than 0.49.0; fix this before adding more features to the division operator. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>