diff options
author | Matthew Haddon <matthew.haddon@arm.com> | 2021-09-09 12:30:53 +0100 |
---|---|---|
committer | Matthew Haddon <matthew.haddon@arm.com> | 2021-10-04 16:13:39 +0100 |
commit | 848efb46db2d407a9bb4fba1940d06e143a5dbad (patch) | |
tree | 46a3a184154333e734c63408d9f1462735346633 /verif/tosa_verif_build_tests.py | |
parent | 17e9202cfa6511144f651f1b5846a4b10e6f7f5d (diff) | |
download | reference_model-848efb46db2d407a9bb4fba1940d06e143a5dbad.tar.gz |
Add shared ERROR_IF statements
* Added WrongInputType and WrongOutputType checks
* Delete and Add extra inputs/outputs when doing op graph checks
* Add incorrect rank checks
* Entire op dictionary is now passed to build functions
* Error if validation now done in separate function
* Duplicate tests are ignored
Change-Id: Ie1117bdbc9bdeb42059123792ce1df4cc56db54e
Signed-off-by: Matthew Haddon <matthew.haddon@arm.com>
Diffstat (limited to 'verif/tosa_verif_build_tests.py')
-rwxr-xr-x | verif/tosa_verif_build_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/verif/tosa_verif_build_tests.py b/verif/tosa_verif_build_tests.py index 5b84314..040481b 100755 --- a/verif/tosa_verif_build_tests.py +++ b/verif/tosa_verif_build_tests.py @@ -235,7 +235,14 @@ def main(): print("{} matching tests".format(len(testList))) results = [] + testStrings = [] for opName, testStr, dtype, error, shapeList, testArgs in testList: + # Check for and skip duplicate tests + if testStr in testStrings: + continue + else: + testStrings.append(testStr) + if args.verbose: print(testStr) results.append(ttg.serializeTest(opName, testStr, dtype, error, shapeList, testArgs)) |