summaryrefslogtreecommitdiff
path: root/tests/gem5/hello_se/test_hello_se.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem5/hello_se/test_hello_se.py')
-rw-r--r--tests/gem5/hello_se/test_hello_se.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/gem5/hello_se/test_hello_se.py b/tests/gem5/hello_se/test_hello_se.py
index 3ebf40cce..74d7fb1a6 100644
--- a/tests/gem5/hello_se/test_hello_se.py
+++ b/tests/gem5/hello_se/test_hello_se.py
@@ -1,3 +1,15 @@
+# Copyright (c) 2020 ARM Limited
+# All rights reserved
+#
+# The license below extends only to copyright in the software and shall
+# not be construed as granting a license to any other intellectual
+# property including but not limited to intellectual property relating
+# to a hardware implementation of the functionality of the software
+# licensed hereunder. You may use the software subject to the license
+# terms below provided that you ensure that this notice is replicated
+# unmodified and in its entirety in all distributions of the software,
+# modified or unmodified, in source code or in binary form.
+#
# Copyright (c) 2017 Mark D. Hill and David A. Wood
# All rights reserved.
#
@@ -40,13 +52,18 @@ test_progs = {
'sparc': ('hello',)
}
+if config.bin_path:
+ base_path = config.bin_path
+else:
+ base_path = joinpath(absdirpath(__file__), '..', 'test-progs', 'hello',
+ 'bin')
+
urlbase = 'http://dist.gem5.org/dist/current/test-progs/hello/bin/'
for isa in test_progs:
for binary in test_progs[isa]:
import os
url = urlbase + isa + '/linux/' + binary
- path = joinpath(absdirpath(__file__), '..', 'test-progs', 'hello',
- 'bin', isa, 'linux')
+ path = joinpath(base_path, isa, 'linux')
hello_program = DownloadedProgram(url, path, binary)
ref_path = joinpath(getcwd(), 'ref')