Ciro Santilli has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/26808 )

Change subject: tests: create tests for various traffic generators on NULL
......................................................................

tests: create tests for various traffic generators on NULL

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...@gmail.com>
Maintainer: Jason Lowe-Power <power...@gmail.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M tests/gem5/memory/test.py
1 file changed, 18 insertions(+), 9 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass



diff --git a/tests/gem5/memory/test.py b/tests/gem5/memory/test.py
index af3af5c..2a4eeb3 100644
--- a/tests/gem5/memory/test.py
+++ b/tests/gem5/memory/test.py
@@ -66,12 +66,21 @@
     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,
+    )

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/26808
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie13d3963e1163cffae5dce329b623fbebbf2b983
Gerrit-Change-Number: 26808
Gerrit-PatchSet: 4
Gerrit-Owner: Ciro Santilli <ciro.santi...@arm.com>
Gerrit-Reviewer: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Ciro Santilli <ciro.santi...@arm.com>
Gerrit-Reviewer: Jason Lowe-Power <power...@gmail.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to