Add quick testing selection default
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I5c240eec4385aaa3a6b4bf9533669b91c74c76cf
diff --git a/verif/generator/tosa_verif_build_tests.py b/verif/generator/tosa_verif_build_tests.py
index c32993a..47c351a 100644
--- a/verif/generator/tosa_verif_build_tests.py
+++ b/verif/generator/tosa_verif_build_tests.py
@@ -348,9 +348,15 @@
selectionCfg = json.load(fd)
else:
# Fallback to using anything defined in the TosaTestGen list
- # by default this will mean only selecting a tests using a
- # permutation of rank by type for each op
selectionCfg = ttg.TOSA_OP_LIST
+ # Set up some defaults to create a quick testing selection
+ selectDefault = {"default": {"permutes": ["rank", "dtype"], "maximum": 10}}
+ for opName in selectionCfg:
+ if (
+ "selection" not in selectionCfg[opName]
+ or "default" not in selectionCfg[opName]["selection"]
+ ):
+ selectionCfg[opName]["selection"] = selectDefault
if args.test_type == "both":
testType = ["positive", "negative"]