summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-11-10 12:39:43 -0500
committerKevin Lim <ktlim@umich.edu>2006-11-10 12:39:43 -0500
commit264f9ce374ff4689fec3c32d8289fe76b0b65078 (patch)
tree310c434325095dd7ce611d1919eba1a0f45ca190
parent8ccd99e3418937b20ff463a2d96e421855f4da44 (diff)
downloadgem5-264f9ce374ff4689fec3c32d8289fe76b0b65078.tar.xz
Also include a function to form the input path.
--HG-- extra : convert_revision : d2141e3b8c56296fbbe2c4c1ceb80616f269884a
-rw-r--r--tests/run.py7
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'))