Bootloader testcase
# Clean flash
make -C bootloader flash # Load bootloader
# reboot device
- Press right
- Press left
- Wait 0.1 s
- Release left
- Release right
- Wait 0.5 s
# Expect no FW
- Expect: no uart welcome message
- Expect: red led on
- Expect: no USB
# reboot device and go to DFU
- Press left
- Press right
- Wait 0.1 s
- Release left
- Wait 0.5 s
- Release right
- Wait 0.5 s
# Expect DFU
- Expect: blue led on
- Expect: USB: DFU
target_f2/deploy-dfu.sh # load FW
# reboot device
- Press right
- Press left
- Wait 0.1 s
- Release left
- Release right
- Wait 0.5 s
# Expect FW
- Expect: uart welcome message
- Expect: USB Flipper CDC
Input testcase
docker-compose exec dev make -C target_f2 example_input_dump
- Flash
- For x in
[
(Up, "00"),
(Down, "01"),
(Right, "02"),
(Left, "03"),
(Ok, "04"),
(Back, "05"),
]
* Press ${x[0]}
* wait 0.05
* Expect: Uart: "event: ${x[1]} pressed"
* wait 0.05
* Release ${x[0]}
* wait 0.05
* Expect: Uart: "event: ${x[1]} released"
* wait 0.05
TODO: add debouncing check (multiple press and check there is no multiple events)