aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-02-07 16:39:24 +0000
committerEric Kunze <eric.kunze@arm.com>2023-04-11 14:56:13 +0000
commitfd05bb386a0a327a804830129e4c1d0d7e5b2c22 (patch)
tree1479d800003943d8e3817f84d0d3feb9ccef3d02 /scripts
parent4e9a977ae5c95e2a0d323951a8cffcade9b0cbba (diff)
downloadreference_model-fd05bb386a0a327a804830129e4c1d0d7e5b2c22.tar.gz
8K level: rank 6 tests support using generator groups
Split generation of conformance tests into groups to avoid a change in existing tests selection * A standard group is used for the normal/default conformance tests * An 8k level group covers the extension of testing for 8k level * Other arbitrary groups can be created and the group names will be used to tag the tests, so that in the future they could be filtered Group selection criteria is in a new dictionary * A default selection config is used for generation groups * But a different config can be used for a particular generation group Added parameter sparsity for pad of rank6 and above, and further parameter sparsity options to test_select to limit number of tests selected. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ib9f1185c0ae6d0957df2116411c17e958157c6d3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert2conformance/convert2conformance.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/convert2conformance/convert2conformance.py b/scripts/convert2conformance/convert2conformance.py
index 9cafed3..b1f8d0e 100755
--- a/scripts/convert2conformance/convert2conformance.py
+++ b/scripts/convert2conformance/convert2conformance.py
@@ -79,6 +79,13 @@ def parse_args(argv):
help="Profiles this test is suitable for. May be repeated",
)
parser.add_argument(
+ "--tag",
+ dest="tag",
+ action="append",
+ type=str,
+ help="Optional string tag mark this test with. May be repeated",
+ )
+ parser.add_argument(
"--strict",
dest="strict",
action="store_true",
@@ -160,6 +167,7 @@ def update_desc_json(
output_dir: Optional[Path] = None,
create_result=True,
profiles=None,
+ tags=None,
):
"""Update the desc.json format for conformance and optionally create result."""
ofm_files = []
@@ -199,6 +207,10 @@ def update_desc_json(
profiles = [PROFILES_LIST[0]]
test_desc["profile"] = profiles
+ # Add tags (if any)
+ if tags is not None:
+ test_desc["tag"] = tags
+
return test_desc
@@ -325,6 +337,7 @@ def main(argv=None):
output_dir=args.output_dir,
create_result=True,
profiles=args.profile,
+ tags=args.tag,
)
if not test_desc:
# Error from conversion/update