mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 17:13:50 +01:00
This is basically the same tests as for the normal shell, but here we are testing via blueooth instead of UART. You have to set up a virtual serial port manually.
For instructions on how to open a virtual serial port to your bluetooth device
see the documentation of sys/stdio_nimble in
System > STDIO abstraction > STDIO over NimBLE.
Note: make term and make test-with-config will open two different types of terminals.
- When calling
make termthen a terminal will communicate with the board via UART. Due to the nature ofstdio_nimblethe board won't respond to input coming from here) - When calling
make test-with-configthen picocom will communicate with the board via the given virtual serial port
So a procedure to run this test could be:
0. Make sure that the current test application instance is fresh and no test was
run on it before. Otherwise your test might fail, because the test case
check_control_d only works once per run.
- Execute
make flash term - Open a virtual serial port with
ble-serialand note the virtual serial port that was created (search forSlave created on /tmp/dev_riot_ble -> /dev/pts/25) - Execute
PORT=/dev/pts/25 make test-with-config