From 00dc22eea26159661074216688a2c0b9cfb9d709 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Wed, 13 Mar 2024 17:06:06 +0000 Subject: Add quick testing selection default Signed-off-by: Jeremy Johnson Change-Id: I5c240eec4385aaa3a6b4bf9533669b91c74c76cf --- verif/generator/tosa_verif_build_tests.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 @@ def main(argv=None): 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"] -- cgit v1.2.1