2024-04-20 18:47:10 -04:00
|
|
|
{
|
|
|
|
"$id": "https://github.com/denoland/deno/blob/tests/specs/schema.json",
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
"description": "Schema file for the __test__.jsonc files",
|
|
|
|
"required": [],
|
|
|
|
"title": "Deno internal spec test schema",
|
|
|
|
"type": "object",
|
|
|
|
"definitions": {
|
|
|
|
"single_test": {
|
|
|
|
"type": "object",
|
|
|
|
"required": ["args", "output"],
|
|
|
|
"properties": {
|
|
|
|
"args": {
|
|
|
|
"default": "",
|
|
|
|
"oneOf": [{
|
|
|
|
"type": "string"
|
|
|
|
}, {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"cwd": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"commandName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"envs": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2024-04-29 10:08:27 -04:00
|
|
|
"flaky": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2024-11-13 10:10:09 -05:00
|
|
|
"symlinkedTempDir": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2024-04-27 17:11:57 -04:00
|
|
|
"if": {
|
|
|
|
"type": "string",
|
|
|
|
"examples": [
|
|
|
|
"mac",
|
|
|
|
"linux",
|
|
|
|
"windows",
|
|
|
|
"unix"
|
|
|
|
]
|
|
|
|
},
|
2024-04-20 18:47:10 -04:00
|
|
|
"output": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"exitCode": {
|
|
|
|
"type": "integer"
|
2024-08-27 20:19:29 -04:00
|
|
|
},
|
|
|
|
"ignore": {
|
|
|
|
"type": "boolean"
|
2024-04-20 18:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
2024-05-03 00:49:42 -04:00
|
|
|
},
|
|
|
|
"single_or_multi_step_test": {
|
|
|
|
"oneOf": [{
|
|
|
|
"required": ["steps"],
|
|
|
|
"properties": {
|
|
|
|
"tempDir": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"base": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"envs": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2024-06-05 11:04:16 -04:00
|
|
|
"repeat": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2024-05-03 00:49:42 -04:00
|
|
|
"steps": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/single_test"
|
|
|
|
}
|
2024-08-27 20:19:29 -04:00
|
|
|
},
|
|
|
|
"ignore": {
|
|
|
|
"type": "boolean"
|
2024-05-03 00:49:42 -04:00
|
|
|
}
|
2024-04-20 18:47:10 -04:00
|
|
|
}
|
2024-05-03 00:49:42 -04:00
|
|
|
}, {
|
|
|
|
"allOf": [{
|
|
|
|
"properties": {
|
|
|
|
"tempDir": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"base": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"envs": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2024-06-06 08:37:13 -04:00
|
|
|
},
|
|
|
|
"repeat": {
|
|
|
|
"type": "number"
|
2024-05-03 00:49:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}, {
|
2024-04-20 18:47:10 -04:00
|
|
|
"$ref": "#/definitions/single_test"
|
2024-05-03 00:49:42 -04:00
|
|
|
}]
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"multi_test": {
|
|
|
|
"required": ["tests"],
|
2024-04-20 18:47:10 -04:00
|
|
|
"properties": {
|
|
|
|
"tempDir": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"base": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"envs": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2024-05-03 00:49:42 -04:00
|
|
|
},
|
2024-06-05 11:04:16 -04:00
|
|
|
"repeat": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2024-05-03 00:49:42 -04:00
|
|
|
"tests": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"$ref": "#/definitions/single_or_multi_step_test"
|
|
|
|
}
|
2024-08-27 20:19:29 -04:00
|
|
|
},
|
|
|
|
"ignore": {
|
|
|
|
"type": "boolean"
|
2024-04-20 18:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
2024-05-03 00:49:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"oneOf": [{
|
|
|
|
"$ref": "#/definitions/single_or_multi_step_test"
|
|
|
|
}, {
|
|
|
|
"$ref": "#/definitions/multi_test"
|
2024-04-20 18:47:10 -04:00
|
|
|
}]
|
|
|
|
}
|