systemc: Make the --list option print a total count.

Make the --list option of 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-by: Gabe Black <>
Maintainer: Gabe Black <>
diff --git a/src/systemc/tests/ b/src/systemc/tests/
index 9cf3443..34ae931 100755
--- a/src/systemc/tests/
+++ b/src/systemc/tests/
@@ -216,6 +216,7 @@
             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))
         tests_to_run = list([
             Test(target, main_args.flavor, main_args.build_dir, props) for