projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ae9de3
)
debug: Allow skipping the ExamineTarget step by specifying misa
author
Megan Wachs
<megan@sifive.com>
Tue, 16 May 2017 21:25:39 +0000
(14:25 -0700)
committer
Megan Wachs
<megan@sifive.com>
Tue, 16 May 2017 21:25:39 +0000
(14:25 -0700)
debug/testlib.py
patch
|
blob
|
history
diff --git
a/debug/testlib.py
b/debug/testlib.py
index 858c75cb43ba45206aaf7e58c652df9216640e0a..86095e38c8fc88cd4f4889f2deb904c3adbd8801 100644
(file)
--- a/
debug/testlib.py
+++ b/
debug/testlib.py
@@
-370,7
+370,12
@@
def run_all_tests(module, target, parsed):
global gdb_cmd # pylint: disable=global-statement
gdb_cmd = parsed.gdb
global gdb_cmd # pylint: disable=global-statement
gdb_cmd = parsed.gdb
- todo = [("ExamineTarget", ExamineTarget)]
+ todo = []
+ if (parsed.misa):
+ self.target.misa = parsed.misa
+ else:
+ todo.append(("ExamineTarget", ExamineTarget))
+
for name in dir(module):
definition = getattr(module, name)
if type(definition) == type and hasattr(definition, 'test') and \
for name in dir(module):
definition = getattr(module, name)
if type(definition) == type and hasattr(definition, 'test') and \
@@
-404,6
+409,8
@@
def add_test_run_options(parser):
help="Run only tests that are named here.")
parser.add_argument("--gdb",
help="The command to use to start gdb.")
help="Run only tests that are named here.")
parser.add_argument("--gdb",
help="The command to use to start gdb.")
+ parser.add_argument("--misa", "-m",
+ help="Don't run ExamineTarget, just assume the misa which is specified.")
def header(title, dash='-'):
if title:
def header(title, dash='-'):
if title: