From 741ac4c6cbce27291ec9f08eb3e281a1e180f963 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 11 Mar 2020 14:20:38 +0000 Subject: [PATCH] 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- tests/gem5/memory/test.py | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/tests/gem5/memory/test.py b/tests/gem5/memory/test.py index af3af5c64..2a4eeb36f 100644 --- a/tests/gem5/memory/test.py +++ b/tests/gem5/memory/test.py @@ -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, + ) -- 2.30.2