diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-07-12 16:42:29 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-07-14 11:37:50 +0100 |
commit | 88588624e513cead1b977d94087733157ed5df3b (patch) | |
tree | 43326cd58401cebd7a55980199a6bb127ab685b2 /verif/runner/tosa_test_runner.py | |
parent | 0ecfa37738d56cbb50af584e9bf077052094f460 (diff) | |
download | reference_model-88588624e513cead1b977d94087733157ed5df3b.tar.gz |
Add profile to all created conformance tests.
Add supported profiles for each test in convert2conformance and
tosa_verif_conformance_generator.
Enable filtering of profile tests on running in tosa_verif_run_tests.
Reorganize arguments in conformance_generator to have more important
ones first.
Change-Id: Ie6e5b68727adb3c39b04aa482dd6433788f7bcc9
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Diffstat (limited to 'verif/runner/tosa_test_runner.py')
-rw-r--r-- | verif/runner/tosa_test_runner.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/verif/runner/tosa_test_runner.py b/verif/runner/tosa_test_runner.py index d653a94..65931d8 100644 --- a/verif/runner/tosa_test_runner.py +++ b/verif/runner/tosa_test_runner.py @@ -76,13 +76,17 @@ class TosaTestRunner: self.descFile = str(descFilePath) def skipTest(self): - """Check if the test is skipped due to test type selection.""" + """Check if the test is skipped due to test type or profile selection.""" expectedFailure = self.testDesc["expected_failure"] if self.args.test_type == "negative" and not expectedFailure: - return True + return True, "non-negative type" elif self.args.test_type == "positive" and expectedFailure: - return True - return False + return True, "non-positive type" + if self.args.profile: + profile = self.testDesc["profile"] if "profile" in self.testDesc else [] + if self.args.profile not in profile: + return True, "non-{} profile".format(self.args.profile) + return False, "" def runTestGraph(self): """Override with function that calls system under test.""" |