Add minunit test framework (#168)
* add minunit tests * fix logging * ignore unexisting time service on embedded targets * fix warning, issue with printf * add exitcode * migrate to printf * indicate test by leds * add testing description * redesigned minunit tests to allow testing in separate files * add test step for local target * add failure test * add restore test_check * testing description Co-authored-by: rusdacent <rusdacentx0x08@gmail.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
This commit is contained in:
35
wiki/testing/Bootloader-test.md
Normal file
35
wiki/testing/Bootloader-test.md
Normal file
@@ -0,0 +1,35 @@
|
||||
1. `# Clean flash`
|
||||
2. `make -C bootloader flash` `# Load bootloader`
|
||||
3. `# reboot device`
|
||||
* Press right
|
||||
* Press left
|
||||
* Wait 0.1 s
|
||||
* Release left
|
||||
* Release right
|
||||
4. Wait 0.5 s
|
||||
5. `# Expect no FW`
|
||||
* Expect: no uart welcome message
|
||||
* Expect: red led on
|
||||
* Expect: no USB
|
||||
6. `# reboot device and go to DFU`
|
||||
* Press left
|
||||
* Press right
|
||||
* Wait 0.1 s
|
||||
* Release left
|
||||
* Wait 0.5 s
|
||||
* Release right
|
||||
7. Wait 0.5 s
|
||||
8. `# Expect DFU`
|
||||
* Expect: blue led on
|
||||
* Expect: USB: DFU
|
||||
9. `target_f2/deploy-dfu.sh` `# load FW`
|
||||
10. `# reboot device`
|
||||
* Press right
|
||||
* Press left
|
||||
* Wait 0.1 s
|
||||
* Release left
|
||||
* Release right
|
||||
11. Wait 0.5 s
|
||||
12. `# Expect FW`
|
||||
* Expect: uart welcome message
|
||||
* Expect: USB Flipper CDC
|
Reference in New Issue
Block a user