-
Notifications
You must be signed in to change notification settings - Fork 2
/
helipilot-custom.robot
75 lines (50 loc) · 2.81 KB
/
helipilot-custom.robot
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Custom tests, with additional run parameters or conditions
Should Run test-debug.bin no_debugger
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-debug.bin no_debugger
Should Run test-fp_transport.bin uart
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-fp_transport.bin uart
Should Run test-fp_transport.bin spi
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-fp_transport.bin spi
Should Run test-rollback_entropy.bin
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test In RO test-rollback_entropy.bin
Should Run test-sbrk.bin
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test In RO test-sbrk.bin
Should Run test-flash_write_protect.bin
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test In RO test-flash_write_protect.bin
Should Run test-flash_physical.bin
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Create Machine flash_physical
# Disable write protection
Execute Command gpioa.GPIO_WP Press
Wait For System Prompt
Write Line To Uart runtest
Wait For Line On Uart Pass!
Should Run test-system_is_locked.bin wp_on
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-system_is_locked.bin wp_on
Should Run test-system_is_locked.bin wp_off
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Create Machine system_is_locked
# Disable write protection
Execute Command gpioa.GPIO_WP Press
Wait For System Prompt
Write Line To Uart runtest wp_off
Wait For Line On Uart Pass!
Should Run test-mpu.bin RW
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-mpu.bin message=${MPU_FAILURE_MESSAGE}
Should Run test-mpu.bin RO
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test In RO test-mpu.bin message=${MPU_FAILURE_MESSAGE}
Should Run test-rollback.bin region0
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-rollback.bin region0 ${MPU_FAILURE_MESSAGE}
Should Run test-rollback.bin region1
Set Test Variable ${TESTS_PATH} ${TESTS_PATH}/custom
Run Test test-rollback.bin region1 ${MPU_FAILURE_MESSAGE}