diff options
-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')) |