tests: fs/linux/arm passing M5_PATH via commandline

This will make it configurable from the testing framework

Change-Id: If82d5e44927c67a1eaecf41505d1d55a6469a4cf
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/+/24524
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Giacomo Travaglini
2020-01-16 10:34:42 +00:00
parent 519808c02f
commit 1a8f8e3e43
2 changed files with 11 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2012, 2019 ARM Limited
# Copyright (c) 2012, 2019-2020 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
@@ -59,7 +59,7 @@ def run_test(root):
print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause())
config = sys.argv[1]
os.environ['M5_PATH'] = os.path.dirname(__file__)
os.environ['M5_PATH'] = sys.argv[2]
# path setup
gem5_root = joinpath(os.path.dirname(__file__), '..', '..', '..', '..', '..')

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2019 ARM Limited
# Copyright (c) 2019-2020 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
@@ -89,7 +89,10 @@ path = os.path.dirname(os.path.abspath(__file__))
arm_fs_binaries = DownloadedArchive(url, path, tarball)
for name in arm_fs_quick_tests:
args = [ joinpath(config.base_dir, 'tests', 'configs', name + '.py') ]
args = [
joinpath(config.base_dir, 'tests', 'configs', name + '.py'),
path
]
gem5_verify_config(
name=name,
verifiers=(), # Add basic stat verifiers
@@ -101,7 +104,10 @@ for name in arm_fs_quick_tests:
)
for name in arm_fs_long_tests:
args = [ joinpath(config.base_dir, 'tests', 'configs', name + '.py') ]
args = [
joinpath(config.base_dir, 'tests', 'configs', name + '.py'),
path
]
gem5_verify_config(
name=name,
verifiers=(), # TODO: Add basic stat verifiers