summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.py')
-rw-r--r--tests/run.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py
index a405b7f69..df34faca8 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'))