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

91 Commits

Author SHA1 Message Date
031ed1e813
Merge pull request #17434 from kaspar030/murdock_use_emulators
murdock: support emulated boards
2022-04-06 14:41:48 +02:00
c4bba0e65d tests/*: CI blacklist microbit where it fails 2022-04-01 13:42:01 +02:00
Francisco Molina
0fa1551500 sys/posix: convert to ztimer64_usec 2022-03-10 14:24:57 +01:00
chrysn
87847b1de4 tests: Fix thread return with local message queue
When a message queue is configured from the stack, that main function
must never return -- otherwise, during sched_task_exit (which the
thread's function "returns" to), message senders might still send
messages into already freed stack space (which would be reused by
sched_task_exit).

Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2022-01-11 21:51:09 +01:00
Dave VanKampen
55ea8cfb97 boards/stm32g031-disco,examples,tests: Added STM32G031-DISCO board 2021-10-13 12:14:45 -04:00
Gerson Fernando Budke
4a9f0efb6d boards: introduce atmega328p-xplained-mini
Add ATmega328P Xplained Mini board.  The board is an official
development kit from MCHP based on the Arduino UNO, reduced
hardware, with a xplainedmini debugger and CDC ACM serial
converter.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-27 14:10:19 -03:00
Benjamin Valentin
d3ca85ad65 tests: add bluepill-stm32f030c8 to Makefile.ci 2021-02-02 23:47:40 +01:00
Bas Stottelaar
74e1ac29ac tests: add to BOARD_INSUFFICIENT_MEMORY 2021-01-06 23:44:54 +01:00
Benjamin Valentin
0c36a57e4e tests: add samd10-xmini to Makefile.ci 2020-12-11 18:33:31 +01:00
05fbeb65b1
tests: skip nucleo-l011k4 where it doesn't fit 2020-10-15 18:52:51 +02:00
Benjamin Valentin
69a7eb5efa tests: add stk3200 to Makefile.ci 2020-10-06 16:43:47 +02:00
f08f582f1a tests, examples: remove chronos references 2020-08-05 14:32:58 +02:00
Kees Bakker
8369f42d5e tests/posix_semaphore: better guarantee sequence of output lines
As suggested by @kaspar030 the THREAD_CREATE_WOUT_YIELD flag was removed.
Now the sequence of output lines is identical in two cases: stdio via UART,
and stdio via CDC ACM (which needs a thread for that).

The expects have been changed to match the new situation, which is what
was already given in the CDC ACM case.
2020-06-14 20:03:32 +02:00
Francisco Molina
e0855dedfd
tests: remove uneeded DISABLE_MODULE+=auto_init 2020-02-12 16:51:34 +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
Benjamin Valentin
58892fbbef tests: add stm32f030f4-demo to Makefile.ci 2019-10-21 15:33:11 +02:00
Marian Buschsieweke
06d560f408
tests: Added atmega328p to Makefile.ci
Added the atmega328p board to the BOARD_INSUFFICIENT_MEMORY list where needed.
2019-10-21 12:54:46 +02:00
Marian Buschsieweke
fd6fedaab6
tests: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
- Moved the BOARD_INSUFFICIENT_MEMORY list into Makefile.ci
- Formatted the list to contain one board per line
- Sorted the lists alphabetically
2019-10-17 15:11:59 +02:00
Gaëtan Harter
8e5422ff78
applications: remove 'TEST_ON_CI_WHITELIST += all'
This is now the default so not required anymore.
2019-08-21 12:51:17 +02:00
4ac2b4ec2b
tests: exclude stm32l0538-disco board
because of insufficient memory available
2019-07-08 21:50:36 +02:00
Marian Buschsieweke
855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
07a7ae9c3a
test: not enough memory for i-nucleo-lrwan1 2019-05-21 09:57:33 +02:00
a9cd9433f0 tests/posix_semaphore: unify and increase allowed test4 margin
Previously, there was a very tight allowed margin (100us), then some
special cases for platforms for which the test would otherwise fail,
increasing the margin.
This turned out to be a maintanance burden, as each slightly special
board needed a PR adding the special case.

This commit sets a quite large margin (1000us, 0.1% of total delay),
which should be large enough to not trip over platform-induced timer
inaccuracies, but still verify that the module is using timers
correctly.

(This is not a timer accuracy test.)
2019-05-06 14:51:44 +02:00
Gaëtan Harter
732bcc7335
tests/posix_semaphore: sem_timedwait should not return before abstime
Update the test as sem_timedwait is not supposed to return before the
given abstime.

Source: http://pubs.opengroup.org/onlinepubs/9699919799.2016edition/functions/sem_timedwait.html

    The timeout shall expire when the absolute time specified by abstime
    passes, as measured by the clock on which timeouts are based (that is,
    when the value of that clock equals or exceeds abstime), or if the
    absolute time specified by abstime has already been passed at the time
    of the call.
2019-03-20 15:18:25 +01:00
Marian Buschsieweke
0e90e6195f
tests: Updated Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 15:39:54 +01:00
Gaëtan Harter
6e7fa9e9e0
tests/posix_semaphore: private sub functions for tests libs
While trying python test libraries, like pytest, the automatic test collection
detects the `testNUM` functions as tests but does not know the `term` argument
and fails.

This declares them as private to only find `testfunc(child)` entry point.

Another solution could have been to use `testNUM(child)` and rename
`testfunc` to `main` but would not match other tests.
2019-01-21 12:32:29 +01:00
bd77949bc7 tests/posix_semaphore: increase timeout margin
Otherwise it may break on nrf51 boards where the timeout can be slightly above 100. Using 105us margin seems enough
2018-12-14 22:22:36 +01:00
472bd0ae01 tests: remove obsolete local test targets 2018-09-07 15:13:08 +02:00
cladmi
6942c376df
tests/: blacklist arduino boards based on ROM/RAM overflow 2018-09-05 12:08:29 +02:00
smlng
3893f04d00 tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20 tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
Michel Rottleuthner
aca8953827 tests: add nucleo-f303k8 to BOARD_INSUFFICIENT_MEMORY 2018-07-17 17:52:12 +02:00
633a92929d boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
81700d4301 boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
3e4f7adc95 boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
18435609ce boards/nucleo-l053r8: rename to marketing name 2018-05-22 22:02:57 +02:00
b0912659b5 boards/nucleo-f334r8: rename to marketing name 2018-05-22 21:52:41 +02:00
bd6a7c3d26 boards/nucleo-f030r8: rename to marketing name 2018-05-22 21:52:41 +02:00
Francisco Acosta
d634b7b1d9 tests: add more hardware in the loop tests 2018-05-15 19:54:51 +02:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Martine Lenders
ba2453d320
Merge pull request #8247 from aabadie/pr/tests/python_E305
tests: fix python style E305
2017-12-13 10:52:57 +01:00
87b14d96c8 tests: fix python style E402
E402 module level import not at top of file
2017-12-12 22:40:03 +01:00
d3015f0a57 tests: fix python style E305
expected 2 blank lines after class or function definition, found 1
2017-12-12 15:43:27 +01:00
Cenk Gündoğan
ac1a645fd1
Merge pull request #8190 from kaspar030/name_tests_by_folder
tests: set APPLICATION from folder name
2017-12-01 11:39:19 +01:00
fc2eff9fba tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
c4f66edba1 tests: fix python style 'E302 expected 2 blank lines, found 1' 2017-11-29 17:32:06 +01:00
Hauke Petersen
24056f3fd8 tests/examples: removed pca1000x from Makefiles 2017-11-09 13:59:18 +01:00
Gaëtan Harter
e6e4072335 tests/posix_semaphore: test4: allow native to take more time
As not real time, native does often not weak up before 100ms.
I observed mostly between 0 and 200 but also got a 250, so I allow 300 more.
2017-10-24 13:38:35 +02:00
Gaëtan Harter
712550987d tests/posix_semaphore: test4: fix timestamp comparison
Only use a 'start' and a 'elapsed' timestamp to compare diff.
And remove the puts from within the measured time.
2017-10-24 13:38:03 +02:00