mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
update test for qnx
This commit is contained in:
@@ -9,5 +9,5 @@ sys.path.append("..")
|
||||
from qiling import Qiling
|
||||
|
||||
if __name__ == "__main__":
|
||||
ql = Qiling(["rootfs/arm_qnx/bin/hello"], "rootfs/arm_qnx")
|
||||
ql = Qiling(["rootfs/arm_qnx/bin/hello_static"], "rootfs/arm_qnx")
|
||||
ql.run()
|
||||
|
||||
+1
-1
Submodule examples/rootfs updated: 129a95f852...be5f878bc0
+5
-4
@@ -5,10 +5,11 @@
|
||||
#
|
||||
|
||||
python3 ./test_posix.py &&
|
||||
python3 test_elf_multithread.py &&
|
||||
python3 test_elf_ko.py &&
|
||||
python3 test_android.py &&
|
||||
python3 ./test_elf_multithread.py &&
|
||||
python3 ./test_elf_ko.py &&
|
||||
python3 ./test_android.py &&
|
||||
python3 ./test_debugger.py &&
|
||||
python3 ./test_uefi.py &&
|
||||
python3 ./test_shellcode.py &&
|
||||
python3 ./test_edl.py
|
||||
python3 ./test_edl.py &&
|
||||
python3 ./test_qnx.py
|
||||
|
||||
+6
-2
@@ -11,12 +11,16 @@ from qiling.exception import *
|
||||
from qiling.const import QL_VERBOSE
|
||||
|
||||
class QNXTest(unittest.TestCase):
|
||||
def test_arm_qnx(self):
|
||||
def test_arm_qnx_static(self):
|
||||
env = {
|
||||
"FOO": "bar"
|
||||
}
|
||||
ql = Qiling(["../examples/rootfs/arm_qnx/bin/hello", "foo", "bar"], "../examples/rootfs/arm_qnx", env=env, verbose=QL_VERBOSE.DEBUG)
|
||||
ql = Qiling(["../examples/rootfs/arm_qnx/bin/hello_static", "foo", "bar"], "../examples/rootfs/arm_qnx", env=env, verbose=QL_VERBOSE.DEBUG)
|
||||
ql.run()
|
||||
|
||||
def test_arm_qnx_sqrt(self):
|
||||
ql = Qiling(["../examples/rootfs/arm_qnx/bin/hello_sqrt"], "../examples/rootfs/arm_qnx", verbose=QL_VERBOSE.DEBUG)
|
||||
ql.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user