summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-16 22:42:22 -0700
committerGabe Black <gabeblack@google.com>2018-08-28 21:23:39 +0000
commit4c8cdccaf07dcd689017c3bbd481d237236fc3af (patch)
treef16595085c5db0e8e183f547344cb29e8d525138
parent6b14e93af09a329291f781a797352383f9f232db (diff)
downloadgem5-4c8cdccaf07dcd689017c3bbd481d237236fc3af.tar.xz
systemc: Make the verify.py --list option print a total count.
Make the --list option of verify.py print a count of how many tests it printed. Because --list respects the filter options, this is an easy way to check how many tests have certain properties. Change-Id: I03fac349a946631c20c8e6b49e0ad8934872898e Reviewed-on: https://gem5-review.googlesource.com/11288 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
-rwxr-xr-xsrc/systemc/tests/verify.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index 9cf344316..34ae93110 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -216,6 +216,7 @@ with open(json_path) as f:
print('%s.%s' % (target, main_args.flavor))
for key, val in props.iteritems():
print(' %s: %s' % (key, val))
+ print('Total tests: %d' % len(filtered_tests))
else:
tests_to_run = list([
Test(target, main_args.flavor, main_args.build_dir, props) for