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:
6a64f11
)
Actually test something in regs test.
author
Tim Newsome
<tim@sifive.com>
Wed, 19 Oct 2016 20:16:47 +0000
(13:16 -0700)
committer
Tim Newsome
<tim@sifive.com>
Wed, 19 Oct 2016 20:16:47 +0000
(13:16 -0700)
debug/openocd.py
patch
|
blob
|
history
diff --git
a/debug/openocd.py
b/debug/openocd.py
index 0c7e7d2a277a5c71d1cf1f067aa5ca4efcdffc7c..4a71035e4f3977ea49794450d373db3af26eac4f 100755
(executable)
--- a/
debug/openocd.py
+++ b/
debug/openocd.py
@@
-7,7
+7,7
@@
import sys
import targets
import testlib
import targets
import testlib
-from testlib import assert
Greater
+from testlib import assert
RegexpMatches
class OpenOcdTest(testlib.BaseTest):
def __init__(self, target):
class OpenOcdTest(testlib.BaseTest):
def __init__(self, target):
@@
-23,8
+23,10
@@
class OpenOcdTest(testlib.BaseTest):
class RegTest(OpenOcdTest):
def test(self):
class RegTest(OpenOcdTest):
def test(self):
+ self.cli.command("halt")
output = self.cli.command("reg")
output = self.cli.command("reg")
- assertGreater(len(output), 1)
+ assertRegexpMatches(output, r"x18 \(/%d\): 0x[0-9A-F]+" %
+ self.target.xlen)
def main():
parser = argparse.ArgumentParser(
def main():
parser = argparse.ArgumentParser(