Also include a function to form the input path.

--HG--
extra : convert_revision : d2141e3b8c56296fbbe2c4c1ceb80616f269884a
This commit is contained in:
Kevin Lim 2006-11-10 12:39:43 -05:00
parent 8ccd99e341
commit 264f9ce374

View file

@ -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'))