aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-30 14:27:56 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-07-12 11:28:15 +0100
commit0ecfa37738d56cbb50af584e9bf077052094f460 (patch)
treec3b6d68ddd458ec6a1a409245ca860ed07522ce4 /scripts
parent6c6467f3f07687f0eebd049f1fa3ce21c516f184 (diff)
downloadreference_model-0ecfa37738d56cbb50af584e9bf077052094f460.tar.gz
Add conformance generator scripts
Change-Id: I5cb16ea1f47ee454f03a1d5182827e3fd9f49128 Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert2conformance/convert2conformance.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/convert2conformance/convert2conformance.py b/scripts/convert2conformance/convert2conformance.py
index 71f263b..aa41ff1 100755
--- a/scripts/convert2conformance/convert2conformance.py
+++ b/scripts/convert2conformance/convert2conformance.py
@@ -200,8 +200,10 @@ def main(argv=None):
# Work out where the desc.json file is
desc_filename = args.test_dir / NAME_DESC_FILENAME
framework_conversion = False
+ test_type_desc = "unknown"
if desc_filename.is_file():
- logger.info("Found reference model unit test")
+ logger.debug("Found TOSA operator unit test")
+ test_type_desc = "TOSA operator"
else:
desc_filename = (
args.test_dir
@@ -209,7 +211,8 @@ def main(argv=None):
/ NAME_DESC_FILENAME
)
if desc_filename.is_file():
- logger.info(f"Found framework unit test for {args.framework}")
+ logger.debug(f"Found framework unit test for {args.framework}")
+ test_type_desc = f"{args.framework}"
framework_conversion = True
else:
logger.error(f"Could not find {NAME_DESC_FILENAME} in {args.test_dir}")
@@ -297,7 +300,7 @@ def main(argv=None):
with open(new_desc_filename, "w") as fd:
json.dump(test_desc, fd, indent=2)
- logger.info(f"Converted to {args.output_dir}")
+ logger.info(f"Converted {test_type_desc} test to {args.output_dir}")
return 0