1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
Marian Buschsieweke
cedfb63a88
tests: no default interactive sync for native
The aim is to allow faster test cycles on native for unit test style
apps (that don't need interaction) by bypassing the python test
framework using e.g.:

    make RIOT_TERMINAL=native all term

This would work already before, but now is more convenient as no
manual press of the `s` key is needed to start the test.

For non-native boards we need the sync, as otherwise the board may
finish booting before the python test automation framework can capture
output. For `native` and `native64`, we actually control when the RIOT
app is started and do not need to sync.

On a typical machine this can reduce the test cycle by more than 4
seconds.

With this change:

    $ time sh -c 'make BOARD=native -C tests/unittests tests-nanocoap -j && make BOARD=native RIOT_TERMINAL=native -C tests/unittests term'
    [...]
    main(): This is RIOT! (Version: 2024.10-devel-394-gd65dec-tests/no-sync-control)
    ...................................
    OK (35 tests)
    [...]
    make: Leaving directory '/home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/tests/unittests'
    sh -c   0.30s user 0.24s system 113% cpu 0.476 total

Before t his change:

    $ time sh -c 'make BOARD=native -C tests/unittests tests-nanocoap -j && make BOARD=native -C tests/unittests test'
    [...]
    main(): This is RIOT! (Version: 2024.10-devel-394-gd65dec-tests/no-sync-control)
    Help: Press s to start test, r to print it is ready
    READY
    s
    START
    ...................................
    OK (35 tests)
    [...]
    make: Leaving directory '/home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/tests/unittests'
    sh -c   0.50s user 0.37s system 17% cpu 4.863 total
2024-11-08 13:24:32 +01:00
MrKevinWeiss
20fcb1d99d
tests/*: Remove TEST_KCONFIG symbols 2024-03-27 10:28:14 +01:00
Benjamin Valentin
da0298992e tests: automatically exit native when the test has finished 2024-03-04 14:13:47 +01:00
Teufelchen1
bb76f13757 tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
ba86f51b26 sys/test_utils/print_stack_usage: add Kconfig support 2022-03-29 21:49:35 +02:00
47dd3b1889 tests: make test_utils_print_stack_usage a default module 2022-03-29 21:49:35 +02:00
76e186571b
tests: fix auto use of interactive sync module 2021-01-25 21:10:08 +01:00
Leandro Lanzieri
d2ca66e476
tests: add common Kconfig configuration for sync 2021-01-20 17:36:14 +01:00
Francisco Molina
33da57eac1 tests/Makefile.tests_common: interactive_sync only with testrunner 2020-01-19 20:38:39 +01:00
Francisco Molina
416c048737 tests: add test_utils_interactive_sync when possible
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
  sudo,  `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
  pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
  already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
33982a965d
tests/Makefile.tests_common: fix indent 2019-11-05 07:59:57 +01:00
smlng
ea9aecd4b5 tests: enable DEVELHELP for all tests by default 2017-12-14 17:54:13 +01:00
1318e18ab3 tests: deduce test application name from folder 2017-12-01 11:03:39 +01:00
smlng
1562ef7d35 tests: set default board=samr21-xpro for tests/driver_ 2017-02-23 14:56:30 +01:00
smlng
6a037ad004 tests: add prefix to Makefile.tests_common
- fixes name clash on macOS
    - correct naming of test coap to pkg_libcoap
2017-01-19 15:20:37 +01:00
René Kijewski
ac9c80f417 make: don't use export on example makefiles 2014-07-10 15:23:31 +02:00
Ludwig Ortmann
982eecd3a6 add Makefile.tests_common
Contains common variables for all test Makefiles.
Include from test Makefiles.
2014-02-21 19:08:48 +01:00