From 264f9ce374ff4689fec3c32d8289fe76b0b65078 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Fri, 10 Nov 2006 12:39:43 -0500 Subject: [PATCH] Also include a function to form the input path. --HG-- extra : convert_revision : d2141e3b8c56296fbbe2c4c1ceb80616f269884a --- tests/run.py | 7 +++++++ 1 file changed, 7 insertions(+) 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')) -- 2.30.2