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.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ciro Santilli
2020-03-11 14:20:38 +00:00
parent 4e1117f2ba
commit 741ac4c6cb

View 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,
)