From: Kevin Lim Date: Fri, 10 Nov 2006 17:39:43 +0000 (-0500) Subject: Also include a function to form the input path. X-Git-Tag: m5_2.0_beta2~67 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=264f9ce374ff4689fec3c32d8289fe76b0b65078;p=gem5.git Also include a function to form the input path. --HG-- extra : convert_revision : d2141e3b8c56296fbbe2c4c1ceb80616f269884a --- 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'))