Skip to content

Commit 208eddd

Browse files
committed
Add riscv dyn testcase
1 parent baa86ab commit 208eddd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/test_riscv.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,16 @@ def test_riscv64_hello_linux(self):
3232

3333
del ql
3434

35+
def test_riscv64_hello_dyn_linux(self):
36+
stdout = SimpleOutStream(1)
37+
ql = Qiling(['../examples/rootfs/riscv64_linux/bin/hello-linux'], '../examples/rootfs/riscv64_linux/',
38+
verbose=QL_VERBOSE.DEBUG, stdout=stdout)
39+
40+
41+
ql.run(end=0x1249e) # avoid close 0, 1, 2
42+
self.assertTrue(stdout.read() == b'Hello, World!\n')
43+
44+
del ql
45+
3546
if __name__ == "__main__":
3647
unittest.main()

0 commit comments

Comments
 (0)