1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
Commit Graph

18 Commits

Author SHA1 Message Date
ec65e8a776 tests/xtimer_usleep: fix test to allow zero (perfect) offset 2020-09-22 11:50:02 +02: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
Gaëtan Harter
1172ca9f93
tests/xtimer_usleep: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
francisco
a687a26f42 tests/xtimer_usleep: fail with negative offset
- xtimer_usleep(timeout) should sleep for at least timeout us.
  Negative offset, i.e. sleeping less than the specified time
  is incorrect.
2019-05-14 08:57: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
Josarn
ffb8c27956 tests/xtimer_usleep: Add SLEEP_PIN, Updated README 2018-05-29 16:09:20 +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
smlng
9da940736b tests: use python3 for tests scripts 2018-01-26 11:09:11 +01: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
ec5a9a5f88 tests: fix python style E502 issue:
E502 the backslash is redundant between brackets
2017-12-12 15:14:47 +01:00
c4f66edba1 tests: fix python style 'E302 expected 2 blank lines, found 1' 2017-11-29 17:32:06 +01:00
74b681560d tests: fix python style 'E703 statement ends with a semicolon' 2017-11-27 17:33:48 +01:00
Martine Lenders
bea71f6c5c tests: xtimer_usleep: remove timer testing in pexpect
As with #7816: testing timings over the UART doesn't make much sense.
This PR removes those timer testing in `pexpect` for
`tests/xtimer_usleep` and simplifies and cleans-up a lot of code overall
(converting counting while-loops to for-loops, syncing iterations of
the test etc.)
2017-10-25 11:31:29 +02:00
kYc0o
ddaa28fdc1 tests: add xtimer_usleep test 2017-01-18 23:55:02 +01:00