forked from armink/UtestRunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (24 loc) · 805 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/user/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020, Armink, <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
#
# Change Logs:
# Date Author Notes
# 2020-01-25 armink the first version
#
import os
import sys
import qemu_runner
if __name__ == '__main__':
# test code
os.environ['PATH'] += ';D:/Program/RTT/env/tools/qemu/qemu32'
sys.argv = ['qemu_runner.py',
'--elf', 'D:/Program/RTT/EasyFlashAutoTestBSP/Debug/rtthread.elf',
'--sd', 'D:/Program/RTT/EasyFlashAutoTestBSP/sd.bin']
qemu_runner.main()
# runner = QemuRunner('D:/Program/RTT/rt-thread/bsp/qemu-vexpress-a9/Debug/rtthread.elf', 'D:/Program/RTT/rt-thread/bsp/qemu-vexpress-a9/sd.bin', 5)
# if not runner.run():
# exit(-1)