run.py (13619:44b5224b2ff4) run.py (13718:89e8bcc7253b)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 195 unchanged lines hidden (view full) ---

204 exec(code, scope)
205
206# build configuration
207sys.path.append(joinpath(tests_root, 'configs'))
208test_filename = config
209# for ruby configurations, remove the protocol name from the test filename
210if re.search('-ruby', test_filename):
211 test_filename = test_filename.split('-ruby')[0]+'-ruby'
1# Copyright (c) 2012 ARM Limited
2# All rights reserved
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 195 unchanged lines hidden (view full) ---

204 exec(code, scope)
205
206# build configuration
207sys.path.append(joinpath(tests_root, 'configs'))
208test_filename = config
209# for ruby configurations, remove the protocol name from the test filename
210if re.search('-ruby', test_filename):
211 test_filename = test_filename.split('-ruby')[0]+'-ruby'
212execfile(joinpath(tests_root, 'configs', test_filename + '.py'))
212exec(compile( \
213 open(joinpath(tests_root, 'configs', test_filename + '.py')).read(), \
214 joinpath(tests_root, 'configs', test_filename + '.py'), 'exec'))
213
214# set default maxtick... script can override
215# -1 means run forever
216maxtick = m5.MaxTick
217
218# tweak configuration for specific test
219sys.path.append(joinpath(tests_root, category, mode, name))
215
216# set default maxtick... script can override
217# -1 means run forever
218maxtick = m5.MaxTick
219
220# tweak configuration for specific test
221sys.path.append(joinpath(tests_root, category, mode, name))
220execfile(joinpath(tests_root, category, mode, name, 'test.py'))
222exec(compile( \
223 open(joinpath(tests_root, category, mode, name, 'test.py')).read(), \
224 joinpath(tests_root, category, mode, name, 'test.py'), 'exec'))
221
222# Initialize all CPUs in a system
223def initCPUs(sys):
224 def initCPU(cpu):
225 # We might actually have a MemTest object or something similar
226 # here that just pretends to be a CPU.
227 try:
228 cpu.createThreads()

--- 21 unchanged lines hidden ---
225
226# Initialize all CPUs in a system
227def initCPUs(sys):
228 def initCPU(cpu):
229 # We might actually have a MemTest object or something similar
230 # here that just pretends to be a CPU.
231 try:
232 cpu.createThreads()

--- 21 unchanged lines hidden ---