summaryrefslogtreecommitdiff
path: root/tests/gem5/fs/linux/arm/test.py
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2020-01-16 10:39:46 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2020-01-21 09:13:07 +0000
commit454ba32c519ff1d16ba25b88d14b408810c67f86 (patch)
tree0f0267bc2931bbff1a1691d3da3711cda0a775d3 /tests/gem5/fs/linux/arm/test.py
parent1a8f8e3e43429a5c8b79592e77b312f06f0eaa00 (diff)
downloadgem5-454ba32c519ff1d16ba25b88d14b408810c67f86.tar.xz
tests: Adding --bin-path option to select tests bin directory
So far lots of tests will download binaries inside the gem5 directory. The path is also specific to the test being run. This doesn't play well with an environment where gem5 is cloned from scratch for every build, or if several gem5 are cloned in a single machine. Binaries will be automatically downloaded every time this happens. This patch is adding a --bin-path option, so that it's possible to setup a fixed directory with all pre-downloaded binaries. By default it is set to None to preserve original behaviour. Change-Id: I42fb25e3ce0a495c73672b15a097b1bd2607795c Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Ciro Santilli <ciro.santilli@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24525 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'tests/gem5/fs/linux/arm/test.py')
-rw-r--r--tests/gem5/fs/linux/arm/test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/gem5/fs/linux/arm/test.py b/tests/gem5/fs/linux/arm/test.py
index fd1e05e05..d9d380e68 100644
--- a/tests/gem5/fs/linux/arm/test.py
+++ b/tests/gem5/fs/linux/arm/test.py
@@ -85,7 +85,8 @@ arm_fs_long_tests = [
tarball = 'aarch-system-201901106.tar.bz2'
url = "http://dist.gem5.org/dist/current/arm/" + tarball
-path = os.path.dirname(os.path.abspath(__file__))
+filepath = os.path.dirname(os.path.abspath(__file__))
+path = config.bin_path if config.bin_path else filepath
arm_fs_binaries = DownloadedArchive(url, path, tarball)
for name in arm_fs_quick_tests:
@@ -96,7 +97,7 @@ for name in arm_fs_quick_tests:
gem5_verify_config(
name=name,
verifiers=(), # Add basic stat verifiers
- config=joinpath(path, 'run.py'),
+ config=joinpath(filepath, 'run.py'),
config_args=args,
valid_isas=(constants.arm_tag,),
length=constants.quick_tag,
@@ -111,7 +112,7 @@ for name in arm_fs_long_tests:
gem5_verify_config(
name=name,
verifiers=(), # TODO: Add basic stat verifiers
- config=joinpath(path, 'run.py'),
+ config=joinpath(filepath, 'run.py'),
config_args=args,
valid_isas=(constants.arm_tag,),
length=constants.long_tag,