run.py (9851:14e6caa5a1de) run.py (11475:d372458be20f)
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

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

166
167# generate path to input file
168def inputpath(app, file=None):
169 # input file has same name as app unless specified otherwise
170 if not file:
171 file = app
172 return joinpath(test_progs, app, 'input', file)
173
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

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

166
167# generate path to input file
168def inputpath(app, file=None):
169 # input file has same name as app unless specified otherwise
170 if not file:
171 file = app
172 return joinpath(test_progs, app, 'input', file)
173
174def srcpath(path):
175 """Path to file in gem5's source tree"""
176 return joinpath(os.path.dirname(__file__), "..", path)
177
174# build configuration
175sys.path.append(joinpath(tests_root, 'configs'))
176test_filename = config
177# for ruby configurations, remove the protocol name from the test filename
178if re.search('-ruby', test_filename):
179 test_filename = test_filename.split('-ruby')[0]+'-ruby'
180execfile(joinpath(tests_root, 'configs', test_filename + '.py'))
181

--- 36 unchanged lines hidden ---
178# build configuration
179sys.path.append(joinpath(tests_root, 'configs'))
180test_filename = config
181# for ruby configurations, remove the protocol name from the test filename
182if re.search('-ruby', test_filename):
183 test_filename = test_filename.split('-ruby')[0]+'-ruby'
184execfile(joinpath(tests_root, 'configs', test_filename + '.py'))
185

--- 36 unchanged lines hidden ---