mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
d5090db30e
When executing bench-math the benchmark output is invalid with this error msg: Invalid benchmark output: 'workload-spec2006.wrf' does not match any of the regexes: '^[_a-zA-Z0-9]*$¹ or Invalid benchmark output: Additional properties are not allowed ('workload-spec2006.wrf' was unexpected) The error was seen when running the test: workload-spec2006.wrf, 'stack=1024,guard=1' and 'stack=1024,guard=2'. The problem is that the current regex's do not accept the hyphen, dot, equal and comma in the output. This patch changes the regex in benchout.schema.json to accept symbols in benchmark tests names. ChangeLog: * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider range of tests names. Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com> Reviewed-By: Siddhesh Poyarekar <siddhesh@sourceware.org>
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"title": "benchmark",
|
|
"type": "object",
|
|
"properties": {
|
|
"timing_type": {
|
|
"type": "string"
|
|
},
|
|
"functions": {
|
|
"title": "Associative array of functions",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^[_a-zA-Z][_a-zA-Z0-9]+$": {
|
|
"title": "Function names",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^[_a-zA-Z0-9,=.-]*$": {
|
|
"title": "Function variants",
|
|
"type": "object",
|
|
"properties": {
|
|
"duration": {"type": "number"},
|
|
"iterations": {"type": "number"},
|
|
"throughput": {"type": "number"},
|
|
"max": {"type": "number"},
|
|
"min": {"type": "number"},
|
|
"mean": {"type": "number"},
|
|
"timings": {
|
|
"type": "array",
|
|
"items": {"type": "number"}
|
|
}
|
|
},
|
|
"required": ["duration", "iterations"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"minProperties": 1
|
|
}
|
|
},
|
|
"required": ["timing_type", "functions"],
|
|
"additionalProperties": false
|
|
}
|