Skip to content

Commit

Permalink
tests/README.md: Add directory overview
Browse files Browse the repository at this point in the history
  • Loading branch information
bergzand authored and aabadie committed May 13, 2023
1 parent 356a47d commit 517246a
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
# Running and creating tests {#running-and-creating-tests}

There are a number of tests included in RIOT. They are located in the
[tests folder](https://github.com/RIOT-OS/RIOT/tree/master/tests). These tests
[tests directory](https://github.com/RIOT-OS/RIOT/tree/master/tests). These tests
allow basic functionality to be verified as well as provide an example of
usage.

# Directory Structure

The [tests directory](https://github.com/RIOT-OS/RIOT/tree/master/tests) in RIOT
is further divided into a number of subdirectories.

- [*bench*](https://github.com/RIOT-OS/RIOT/tree/master/tests/bench): Benchmark
tests, these provide numbers on how RIOT performs on the used hardware.
- [*build_system*](https://github.com/RIOT-OS/RIOT/tree/master/tests/build_system): Tests
the RIOT build system functionnality, such as blob, external board/module/package dirs,

Check failure on line 16 in tests/README.md

View workflow job for this annotation

GitHub Actions / static-tests

There is a typo: functionnality ==> functionality If this is a false positive, add it to dist/tools/codespell/ignored_words.txt. You can fix this interactively by calling CODESPELL_INTERACTIVE=1 BASE_BRANCH=master ./dist/tools/codespell/check.sh
and kconfig.
- [*core*](https://github.com/RIOT-OS/RIOT/tree/master/tests/core): Tests the
RIOT core functionality such as threading and IPC.
- [*cpu*](https://github.com/RIOT-OS/RIOT/tree/master/tests/cpu): Tests
RIOT cpu specific features such as efm32, stm32, native and AVR.
- [*drivers*](https://github.com/RIOT-OS/RIOT/tree/master/tests/drivers): Tests
individual drivers. The tests for sensors print the measured values to the
console, others demonstrate the functionality of the driver and attached
hardware.
- [*net*](https://github.com/RIOT-OS/RIOT/tree/master/tests/net): Tests the
networking features provided in RIOT, such as CoAP, emcute, GNRC, IEEE 802.15.4
and sntp.
- [*periph*](https://github.com/RIOT-OS/RIOT/tree/master/tests/periph): Tests the
low level peripherals in RIOT, such as interacting with SPI and I2C
peripherals.
- [*pkg*](https://github.com/RIOT-OS/RIOT/tree/master/tests/pkg): Tests the
external packages available in RIOT, such as lvgl, lwip, nanocbor, and tinyusb.
- [*sys*](https://github.com/RIOT-OS/RIOT/tree/master/tests/sys): Collection
of tests for the utilities in
[*sys*](https://github.com/RIOT-OS/RIOT/tree/master/sys) directory of RIOT.
- [*unittests*](https://github.com/RIOT-OS/RIOT/tree/master/tests/unittests):
Collection of very simple test applications that test simple modules and do
not rely on extra hardware. Can be flashed and run as single application to
test all unit tests at once.

# Running automated tests

Some tests can be performed automatically. The test automation scripts are
Expand Down

0 comments on commit 517246a

Please sign in to comment.