From ab2f864af2fd38cbf141708550409f3ca72c675f Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:40 -0800 Subject: m5: Regression Tester Update This patch includes the necessary regression updates to test the new ruby configuration system. The patch includes support for multiple ruby protocols and adds the ruby random tester. The patch removes atomic mode test for ruby since ruby does not support atomic mode acceses. These tests can be added back in when ruby supports atomic mode for real. --HG-- rename : tests/quick/50.memtest/test.py => tests/quick/60.rubytest/test.py --- tests/run.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/run.py') diff --git a/tests/run.py b/tests/run.py index 5e0b943c8..1e58f0283 100644 --- a/tests/run.py +++ b/tests/run.py @@ -28,6 +28,8 @@ import os import sys +import re +import string from os.path import join as joinpath @@ -61,7 +63,11 @@ def inputpath(app, file=None): # build configuration sys.path.append(joinpath(tests_root, 'configs')) -execfile(joinpath(tests_root, 'configs', config + '.py')) +test_filename = config +# for ruby configurations, remove the protocol name from the test filename +if re.search('-ruby', test_filename): + test_filename = test_filename.split('-ruby')[0]+'-ruby' +execfile(joinpath(tests_root, 'configs', test_filename + '.py')) # set default maxtick... script can override # -1 means run forever -- cgit v1.2.3