diff options
author | Megan Wachs <megan@sifive.com> | 2017-05-16 14:25:39 -0700 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-05-16 14:25:39 -0700 |
commit | e341f6ceb8f2de55c60a56ce36ab5b021d569457 (patch) | |
tree | 261b83b504d2418a45bb31bd9724201164eae529 | |
parent | 8ae9de3b4d8987de55dc56164429c9d31668b1bb (diff) | |
download | riscv-tests-e341f6ceb8f2de55c60a56ce36ab5b021d569457.zip riscv-tests-e341f6ceb8f2de55c60a56ce36ab5b021d569457.tar.gz riscv-tests-e341f6ceb8f2de55c60a56ce36ab5b021d569457.tar.bz2 |
debug: Allow skipping the ExamineTarget step by specifying misa
-rw-r--r-- | debug/testlib.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 858c75c..86095e3 100644 --- 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 - 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 \ @@ -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.") + parser.add_argument("--misa", "-m", + help="Don't run ExamineTarget, just assume the misa which is specified.") def header(title, dash='-'): if title: |