* Add integration test docs, discussion guidelines, and edit contribution guide * Editorial changes to the integration test page * Test cases fixed * Backslashes removed * Fixes from ellyromanova * Update pull_request_template.md * Delete two issue templates * Remove notion of the forum * Update CODEOWNERS * Fix general_test_cases.md symbol * Fix general_test_cases.md again --------- Co-authored-by: Ruslan Nadyrshin <110516632+rnadyrshin@users.noreply.github.com> Co-authored-by: Štefan Croitoru <66339601+turbospok@users.noreply.github.com>
3.6 KiB
CLI — Test Cases
1. CLI. Control commands
Steps:
-
Run Power command.
Expected result: a list of available commands is displayed.
-
Execute all commands from the list.
Expected result:
- Power OFF - when the cable is disconnected, the flipper will turn off.
- Power reboot - the flipper will reboot.
- Power reboot to dfu - the flipper will switch to dfu mode.
- Power 5V 1 - will supply power to the 5V line of the top comb.
-
Run GPIO command.
Expected result: a list of available commands is displayed.
-
Execute all commands from the list
Expected result:
- Mode - 1 - transmit mode, 0 - receive mode.
- gpio_set PA7 1 When the debug board is inserted, the required LED lights up.
-
Run LED command, for example led b 255.
Expected result: LED lights up blue.
-
Command vibro
Expected result:
- vibro 1 - vibration turns on.
- vibro 0 - vibration turns off.
2. CLI. Information commands
Steps:
-
Call CLI minicom -D /dev/ttyACM0 -b 230400 or Open a terminal with Putty.
-
Enter the log command and enter the option that is needed, for example debug.
Expected result: when you press keys, enter menus, open applications, all this is displayed in the log.
-
Press Ctrl + C to end logging.
Expected result: logging has stopped.
-
On the main screen, press DOWN for 3 seconds to open the FW version info and Boot version info menu.
-
Run the device_info or ! command and compare the data.
Expected result:
- FW data matches.
- Bootloader open" data matches.
-
Run the command bt hci_info.
Expected result: after the bt command cmd list is displayed.
-
Compare the obtained valueswith the reference ones:
Ret: 0, HCI_Version: 11, HCI_Revision: 16484, LMP_PAL_Version: 11, Manufacturer_Name: 48, LMP_PAL_Subversion: 8548
Expected result: data matches.
-
Run DATE command.
Expected result: real time and date displayed.
-
Run the commands help and ?.
Expected result a description of all available commands appears.
-
Execute the FREE command.
Expected result: free space in internal memory is displayed.
-
Run the FREE_BLOCKS command.
Expected result: block addresses appeared.
3. CLI. Storage Commands
Steps:
-
Insert SD card with data.
-
Run the command storage info /ext.
Expected result: there is information about free space.
-
Run the command storage format /ext.
Expected result: confirmation that the card has been formatted appears.
-
Refuse formatting.
Expected result: the card is not formatted, the free space has not changed.
-
Run the storage format /ext command again and confirm formatting.
Expected result: the card is formatted.
-
Run the command storage info /ext.
Expected result: while the card is inside, SD status: OK.
-
Remove the SD card and send the command storage info /ext.
Expected result: when the card is removed: SD card not mounted: If an SD card is inserted, pull it and reinsert it.
-
Run the factory_reset command, and when asked All data will be lost. Are you sure (y/n)? enter n.
Expected result: a data loss warning appears and nothing happens if you disagree.
-
Run the factory_reset command again, when asked All data will be lost. Are you sure (y/n)? enter y.
Expected result:
- When confirmed, the data is erased.
- A welcome message appears on the main screen, settings are reset.
- Data on SD card is not erased.
- Settings reset.
- Time hasn't reset.