forked from unicode-org/conformance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hash for test data (unicode-org#252)
* Adding ICU4C running collation tests - first try * Cache ICU4C binaries in GH and locally, only if they don't exist * Install JSON-C dependency if not installed at beginning of CI or e2e script * Fix bash if condition syntax * Hash code for tests and updating schema * Adding hex hash to all tests data * updating hexhash generation for tests * Add common hash function for JavaScript * Clean up some unneeded warning/error messges * Revise white space * Update testgen/generators/generate_test_hash.js Co-authored-by: Shane F. Carr <[email protected]> --------- Co-authored-by: Elango Cheran <[email protected]> Co-authored-by: Shane F. Carr <[email protected]>
- Loading branch information
1 parent
7567db8
commit b08229f
Showing
19 changed files
with
329 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/unicode/conformance/_test_schema.json'", | ||
"title": "ICU Conformance test data description", | ||
"description": "This documents the format of relative date time format test data for execution", | ||
"type": "object", | ||
"properties": { | ||
"additionalProperties": false, | ||
"test_type": { | ||
"description": "The name of the test", | ||
"type": "string", | ||
"enum": ["rdt_fmt"] | ||
}, | ||
"Test scenario": { | ||
"type": "string", | ||
"description":" Obsolete tag to be removed and replaced with test Type" | ||
}, | ||
"source_file": { | ||
"description": "origin of conformance data", | ||
"type": "string" | ||
}, | ||
"source_version": { | ||
"description": "version of conformance data", | ||
"type": "string" | ||
}, | ||
"test_ environmment": { | ||
"test_language": { | ||
"description": "Programming language of execution", | ||
"type": "string" | ||
}, | ||
"executor": { | ||
"description": "path to the executor for this output", | ||
"type": "string" | ||
}, | ||
"test_type": { | ||
"description": "the kind of tests run", | ||
"type": "string" | ||
}, | ||
"date_time": { | ||
"description": "timestamp of output", | ||
"type": "string" | ||
}, | ||
"input_file": { | ||
"description": "path to test data", | ||
"type": "string" | ||
}, | ||
"icu_version": { | ||
"description": "ICU data version used in testing", | ||
"type": "string" | ||
}, | ||
"cldr_version": { | ||
"description": "CLDR version used in testing", | ||
"type": "string" | ||
}, | ||
"test_count": { | ||
"description": "Number of tests run", | ||
"type": "integer" | ||
} | ||
}, | ||
"error_info": { | ||
"description": "count of detected errors", | ||
"type": "integer" | ||
}, | ||
"platform": { | ||
"description": "the executor's platorm", | ||
"type": "integer" | ||
}, | ||
"tests": { | ||
"description": "list of N tests for relative date time format testing", | ||
"type": "array", | ||
"items": { | ||
"additionalProperties": false, | ||
"type": "object", | ||
"properties": { | ||
"label": { | ||
"description": "A numeric ID, unique for the set of tests", | ||
"type": "string" | ||
}, | ||
"hexhash": { | ||
"description": "A hexadecimal hash code for the test without the label", | ||
"type": "string" | ||
}, | ||
"unit": { | ||
"description": "time interval, e.g., year, month, day, hour, etc. ", | ||
"type": "string" | ||
}, | ||
"unit": { | ||
"count": "how may of the units in past or future", | ||
"type": "string" | ||
}, | ||
"options": { | ||
"type": "string", | ||
"description": "Optional parameters for the output", | ||
"type": "object", | ||
"properties": { | ||
"style": { | ||
"type": "string", | ||
"description": "size of formated output, e.g., long" | ||
}, | ||
"numberingSystem": { | ||
"type": "string", | ||
"description": "4 letter script code of numbering system" | ||
} | ||
} | ||
|
||
} | ||
} | ||
}, | ||
"required": [ | ||
"label", | ||
"locale", | ||
"count", | ||
"unit" | ||
] | ||
} | ||
}, | ||
"required": ["test_type"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.