aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-12-12 14:18:10 +0000
committerJeremy Johnson <jeremy.johnson@arm.com>2023-01-04 17:14:28 +0000
commitdd8d9c251db0fece6453d86116052ad7f3e2d697 (patch)
tree272f92e603f2d6158ea8b44ce3d11b34978b6b0d /scripts
parent6ffb7c8fb88d3a5d0e94f3e604dc3548deea95d7 (diff)
downloadreference_model-dd8d9c251db0fece6453d86116052ad7f3e2d697.tar.gz
Create MI tests for EW Binary: ADD, SUB, MUL
Add option to control negative tests dim range to stop ERROR_IF test clashes between profiles. Change-Id: I1f806934480cc32b95e80613c66fecb1e6ff5426 Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert2conformance/convert2conformance.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/convert2conformance/convert2conformance.py b/scripts/convert2conformance/convert2conformance.py
index 06726ba..9cafed3 100755
--- a/scripts/convert2conformance/convert2conformance.py
+++ b/scripts/convert2conformance/convert2conformance.py
@@ -79,6 +79,12 @@ def parse_args(argv):
help="Profiles this test is suitable for. May be repeated",
)
parser.add_argument(
+ "--strict",
+ dest="strict",
+ action="store_true",
+ help="Output directory must not contain the same test directory",
+ )
+ parser.add_argument(
"-v", "--verbose", dest="verbose", action="store_true", help="Verbose operation"
)
args = parser.parse_args(argv)
@@ -269,9 +275,12 @@ def main(argv=None):
# Make the output directory if needed
try:
- args.output_dir.mkdir(parents=True, exist_ok=True)
+ args.output_dir.mkdir(parents=True, exist_ok=(not args.strict))
except FileExistsError:
- logger.error(f"{args.output_dir} is not a directory")
+ if args.strict:
+ logger.error(f"{args.output_dir} already exists")
+ else:
+ logger.error(f"{args.output_dir} is not a directory")
return 2
# Convert the TOSA flatbuffer binary