1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/congure_test
Francisco Molina 94da3ed9a7
tests/congure: reset before opening terminal
Some BOARD terminals are slow to start so if the BOARD is reset after
opening the terminal this can lead to off-by-one error when parsing
the output.

So instead do as testrunner and reset before opening the terminal.
Note that no interactive_sync is needed since a similar mechanism
happens in ShellInteraction.
2021-06-17 11:05:07 +02:00
..
tests tests/congure: reset before opening terminal 2021-06-17 11:05:07 +02:00
app.config tests: initial import of tests for CongURE and its test framework 2021-02-26 10:14:12 +01:00
app.config.test tests: initial import of tests for CongURE and its test framework 2021-02-26 10:14:12 +01:00
congure_impl.c congure_mock: add capability to provide actual methods 2021-03-03 13:30:35 +01:00
congure_impl.h tests: initial import of tests for CongURE and its test framework 2021-02-26 10:14:12 +01:00
main.c congure_test: make shell commands shorter 2021-03-01 14:41:31 +01:00
Makefile tests: initial import of tests for CongURE and its test framework 2021-02-26 10:14:12 +01:00
Makefile.ci boards: introduce atmega328p-xplained-mini 2021-03-27 14:10:19 -03:00
README.md tests/congure_test: add tests for CongureTest ShellInteraction 2021-03-09 11:24:23 +01:00

Basic tests for the CongURE API

This test tests the congure_test test framework used for the other CongURE tests.

Usage

The test requires an up-to-date version of riotctrl with rapidjson support:

$ pip install --upgrade riotctrl[rapidjson]

Then simply run the application using:

$ BOARD="<board>" make flash test

It can also executed with pytest:

$ PYTHONPATH=../../dist/pythonlibs BOARD="<board>" pytest tests/01-run.py

Note that this only works from within the directory of the test, so if you are somewhere else, use

$ cd tests/congure_test

first to change into that.

Expected result

The application's test script passes without error code.