From: Giacomo Travaglini Date: Mon, 9 Mar 2020 10:17:45 +0000 (+0000) Subject: tests: Add --bin-path option to insttest regressions X-Git-Tag: v20.0.0.0~301 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d70573f7d25534c0311529da24f9a5a77de6023d;p=gem5.git tests: Add --bin-path option to insttest regressions Change-Id: I229f37782b1c3650dc71ee481823b41f6f67e590 Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26483 Maintainer: Bobby R. Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro Reviewed-by: Jason Lowe-Power --- diff --git a/tests/gem5/insttest_se/test.py b/tests/gem5/insttest_se/test.py index e81f943b2..c3fa3225c 100644 --- a/tests/gem5/insttest_se/test.py +++ b/tests/gem5/insttest_se/test.py @@ -46,14 +46,19 @@ supported_os = { 'sparc' : ('linux',) } +if config.bin_path: + base_path = config.bin_path +else: + base_path = joinpath(absdirpath(__file__), '..', 'test-progs') + urlbase = 'http://dist.gem5.org/dist/current/test-progs/insttest/bin/' for isa in test_progs: for binary in test_progs[isa]: for operating_s in supported_os[isa]: import os url = urlbase + isa + '/' + operating_s + '/' + binary - path = joinpath(absdirpath(__file__), '..', 'test-progs', binary, - 'bin', isa, operating_s) + path = joinpath(base_path, isa, operating_s, binary) + try: program = DownloadedProgram(url, path, binary) except: