tests: create tests for various traffic generators on NULL
authorCiro Santilli <ciro.santilli@arm.com>
Wed, 11 Mar 2020 14:20:38 +0000 (14:20 +0000)
committerCiro Santilli <ciro.santilli@arm.com>
Wed, 29 Apr 2020 18:33:50 +0000 (18:33 +0000)
New tests were added for:

- garnet_synth_traffic.py
- ruby_random_test.py
- ruby_direct_test.py

These tests are factored out with the tests for:

- memcheck.py
- ruby_mem_test.py

Each new test was calibrated to last about 5 seconds on a Lenovo ThinkPad
P51.

Change-Id: Ie13d3963e1163cffae5dce329b623fbebbf2b983
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26808
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/gem5/memory/test.py

index af3af5c6417fb4e566adb332d05dfafbe0369b11..2a4eeb36fe67b50cd1cd80a229650eb1639488c4 100644 (file)
@@ -66,12 +66,21 @@ gem5_verify_config(
     valid_isas=(constants.null_tag,),
 )
 
-gem5_verify_config(
-    name='test-memcheck',
-    fixtures=(),
-    verifiers=(),
-    config=joinpath(config.base_dir, 'configs', 'example','memcheck.py'),
-    config_args=['--maxtick', '2000000000', '--prefetchers'],
-    valid_isas=('NULL',),
-    valid_hosts=constants.supported_hosts,
-)
+null_tests = [
+    ('garnet_synth_traffic', ['--sim-cycles', '5000000']),
+    ('memcheck', ['--maxtick', '2000000000', '--prefetchers']),
+    ('ruby_random_test', ['--maxloads', '5000']),
+    ('ruby_direct_test', ['--requests', '50000']),
+]
+
+for basename_noext, args in null_tests:
+    gem5_verify_config(
+        name=basename_noext,
+        fixtures=(),
+        verifiers=(),
+        config=joinpath(config.base_dir, 'configs',
+            'example', basename_noext + '.py'),
+        config_args=args,
+        valid_isas=('NULL',),
+        valid_hosts=constants.supported_hosts,
+    )