aboutsummaryrefslogtreecommitdiff
path: root/test cases/failing/72 override used
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-02-12 00:31:57 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2020-04-30 20:41:35 +0100
commit3cff11a75b4af8824281b473bda1f8c45a4add7d (patch)
tree75ebbde2fb039f97b021e9a7c8c4cd607a81ccd0 /test cases/failing/72 override used
parentf867bfbce07aae6ed7a5b38c583490af3ea13af9 (diff)
downloadmeson-3cff11a75b4af8824281b473bda1f8c45a4add7d.zip
meson-3cff11a75b4af8824281b473bda1f8c45a4add7d.tar.gz
meson-3cff11a75b4af8824281b473bda1f8c45a4add7d.tar.bz2
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
Diffstat (limited to 'test cases/failing/72 override used')
-rw-r--r--test cases/failing/72 override used/test.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/failing/72 override used/test.json b/test cases/failing/72 override used/test.json
new file mode 100644
index 0000000..29a58f1
--- /dev/null
+++ b/test cases/failing/72 override used/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "test cases/failing/72 override used/meson.build:5:6: ERROR: Tried to override finding of executable \"something.py\" which has already been found."
+ }
+ ]
+}