diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-11-10 12:39:43 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-11-10 12:39:43 -0500 |
commit | 264f9ce374ff4689fec3c32d8289fe76b0b65078 (patch) | |
tree | 310c434325095dd7ce611d1919eba1a0f45ca190 | |
parent | 8ccd99e3418937b20ff463a2d96e421855f4da44 (diff) | |
download | gem5-264f9ce374ff4689fec3c32d8289fe76b0b65078.tar.xz |
Also include a function to form the input path.
--HG--
extra : convert_revision : d2141e3b8c56296fbbe2c4c1ceb80616f269884a
-rw-r--r-- | tests/run.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py index aa13ac437..3002bf441 100644 --- a/tests/run.py +++ b/tests/run.py @@ -42,6 +42,13 @@ def binpath(app, file=None): file = app return os.path.join(test_progs, app, 'bin', isa, opsys, file) +# generate path to input file +def inputpath(app, file=None): + # input file has same name as app unless specified otherwise + if not file: + file = app + return os.path.join(test_progs, app, 'input', file) + # build configuration execfile(os.path.join(tests_root, 'configs', config + '.py')) |