-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbusvoodoo_e2e_tests.yml
127 lines (121 loc) · 3.52 KB
/
busvoodoo_e2e_tests.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# BusVoodoo Yaml file
# NOTE: pins-test, self-test, reset, bootloader,
# quit, live in python script.
commands:
# 'self-test' and 'pins-test' and 'reset' live in python script.
version:
input: ['v', 'version']
expectation: ['BusVoodoo flavor', 'firmware date', 'device ID']
modes:
input: ['m', 'mode']
expectation: ['available modes', 'hiz']
help:
input: ['h', 'help']
expectation: ['available commands', 'bootloader', 'pinout']
pinout:
input: ['p', 'pinout']
expectation: ['I/O connector pinout:']
power off:
input: ['P off', 'power off']
expectation: ['switched off']
power on:
input: ['P on', 'power on']
expectation: ['5V', '3V3', 'switched on']
voltage:
input: ['L', 'LV']
expectation: ['external voltage input']
protocols:
uart:
hardware_version: '0,A'
commands:
# "[/] select/deselect slave" is not tested
'a 10100': ['write: 0x74']
'a 0x3a': ['write: 0x3a']
'a 0b1': ['write: 0x01']
"a 'a'": ['write: 0x61']
'a r': ['read: 0x00']
'a u': ['wait for 1 us']
'a m': ['wait for 1 ms']
'a m:42': ['wait for 42 ms']
combinations:
inputs:
- [1, 2]
- [1, 2, 3, 4, 5, 6, 7, 8, 9]
- [8, 16]
- [1, 2]
- [1, 2, 3, 6]
- [1, 2, 3]
expectations:
- ['duplex mode', 'full-duplex', 'bidirectional']
- ['frequency', '18000 kHz', '9000 kHz', '4500 kHz', '2250 kHz', '1125 kHz', '562 kHz', '281 kHz', '140 kHz']
- ['data frame width in bits']
- ['data frame bit order', 'most significant bit first', 'least significant bit first']
- ['mode', '0', '1', '2', '3', '4']
- ['drive mode', 'push', 'external', 'embedded']
i2c:
hardware_version: '0,A'
commands:
'a 10100': ['write: 0x74']
'a 0x3a': ['write: 0x3a']
'a 0b1': ['write: 0x01']
"a 'a'": ['write: 0x61']
'a r': ['read: 0x00']
'a u': ['wait for 1 us']
'a m': ['wait for 1 ms']
'a m:42': ['wait for 42 ms']
spi:
hardware_version: '0,A'
commands:
'a 10100': ['write: 0x74']
'a 0x3a': ['write: 0x3a']
'a 0b1': ['write: 0x01']
"a 'a'": ['write: 0x61']
'a r': ['read: 0x00']
'a u': ['wait for 1 us']
'a m': ['wait for 1 ms']
'a m:42': ['wait for 42 ms']
combinations:
inputs:
- ['m spi']
- ['1', '2']
- ['1', '2', '3', '4', '5', '6', '7', '8']
- ['8', '16']
- ['1', '2']
- ['1', '2', '3', '4']
- ['1', '2', '3']
expectations:
- ['duplex mode', 'full-duplex', 'bidirectional']
- ['18000 kHz', '1125 kHz', '140 kHz']
- ['data frame width in bits']
- ['most significant', 'least significant']
- ['mode', '0', '3']
- ['push', 'external', 'embedded']
- ['SPI:']
1-wire:
hardware_version: '0,A'
commands:
'a 10100': ['write: 0x74']
'a 0x3a': ['write: 0x3a']
'a 0b1': ['write: 0x01']
"a 'a'": ['write: 0x61']
'a r': ['read: 0x00']
'a u': ['wait for 1 us']
'a m': ['wait for 1 ms']
'a m:42': ['wait for 42 ms']
combinations:
inputs:
expectations:
can:
hardware_version: 'A'
commands:
'a 10100': ['write: 0x74']
'a 0x3a': ['write: 0x3a']
'a 0b1': ['write: 0x01']
"a 'a'": ['write: 0x61']
'a r': ['read: 0x00']
'a u': ['wait for 1 us']
'a m': ['wait for 1 ms']
'a m:42': ['wait for 42 ms']
combinations:
inputs:
expectations: