aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-05-13 11:32:28 -0700
committerGitHub <noreply@github.com>2020-05-13 11:32:28 -0700
commit85708facaea88f0909e3e58eb42738eb11729b88 (patch)
tree8b5a2942f8b84bdd402486aec2883e7832010c1b /data
parentd526af89ca0e52fa076a805e4f585d16dbd1562a (diff)
parent1dee6c618d879c20bf0a70eebc54bc8caf47716f (diff)
downloadmeson-85708facaea88f0909e3e58eb42738eb11729b88.zip
meson-85708facaea88f0909e3e58eb42738eb11729b88.tar.gz
meson-85708facaea88f0909e3e58eb42738eb11729b88.tar.bz2
Merge pull request #6620 from jon-turney/test-output-check
Add a mechanism for validating meson output in tests
Diffstat (limited to 'data')
-rw-r--r--data/test.schema.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/test.schema.json b/data/test.schema.json
index 72f160f..d3b80d0 100644
--- a/data/test.schema.json
+++ b/data/test.schema.json
@@ -1,5 +1,6 @@
{
"type": "object",
+ "additionalProperties": false,
"properties": {
"env": {
"type": "object",
@@ -100,6 +101,30 @@
"prefix"
]
}
+ },
+ "tools": {
+ "type": "object"
+ },
+ "stdout": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "line": {
+ "type": "string"
+ },
+ "match": {
+ "type": "string",
+ "enum": [
+ "literal",
+ "re"
+ ]
+ }
+ },
+ "required": [
+ "line"
+ ]
+ }
}
}
}