Commit Graph

3 Commits

Author SHA1 Message Date
Eli Schwartz b7245d3f27 tests: remove compiler requirement in various unneeded cases
Compiled languages are Meson's bread and butter, but hardly required.
This is convenient, because many test caases specifically, do not care
about testing the compiler interactions.

In such cases, we can skip doing compiler lookups which aren't used, as
they only slow down test setup.
2022-08-23 12:26:13 -04:00
Jon Turney 3cff11a75b
Add expected stdout for failing-meson and warning-meson tests
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-04-30 20:41:35 +01:00
Jussi Pakkanen 17bfbb99e5 Condense test dirs. 2018-07-31 19:22:24 +03:00