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

45 Commits

Author SHA1 Message Date
M Aiman Ismail
45546a711f riotctrl_shell: provide cord_ep interactions and parser 2020-08-06 13:51:13 +02:00
Martine Lenders
2ab65da409
Merge pull request #14519 from RIOT-OS/riotctrl_shell/fix/superflous-quotation-marks
riotctrl_shell.gnrc: remove superfluous quotation marks
2020-07-15 17:35:50 +02:00
Martine Lenders
198eda14e6
riotctrl_shell.gnrc: remove superfluous quotation marks 2020-07-15 13:46:34 +02:00
Martine Lenders
d968f16cc1 riotctrl_shell.netif: fix for multiple interfaces with netstats 2020-07-14 14:32:29 +02:00
Martine S. Lenders
92957e571f riotctrl_shell.tests: provide case for multiple interfaces with stats 2020-07-14 14:32:29 +02:00
Martine S. Lenders
94c8b19d68
riotctrl_shell.gnrc: provide ipv6_nib interactions and parsers 2020-07-10 10:09:06 +02:00
4dc82bce70
Merge pull request #14462 from miri64/riotctrl_shell.gnrc/enh/compile-to-init
riotctrl_shell.gnrc: move compile object init to parser constructors
2020-07-09 21:32:16 +02:00
dcfe736b7c
Merge pull request #14479 from miri64/riotctrl_shell.netif/fix/non-str-set
riotctrl_shell.netif: allow for non str values with ifconfig_set()
2020-07-09 21:31:05 +02:00
Martine S. Lenders
b1a1bf1078
riotctrl_shell.netif: allow for non str values with ifconfig_set() 2020-07-09 15:43:02 +02:00
Martine S. Lenders
6c2d8f7a14
riotctrl_shell.tests: add regression test for non-str ifconfig_set() 2020-07-09 15:42:47 +02:00
79f26bd09e
Merge pull request #14460 from miri64/riotctrl_shell.netif/fix/check_term-decorator
riotctrl_shell.netif: add missing check_term decorator
2020-07-09 14:29:06 +02:00
Martine S. Lenders
c3e6d89bcb
riotctrl_shell.gnrc: move compile object init to parser constructors 2020-07-09 13:20:14 +02:00
0a86086967
Merge pull request #14468 from miri64/riotctrl_shell.gnrc/enh/doctests
riotctrl_shell.gnrc: add doctests as parsing examples and bugfixes
2020-07-09 13:12:58 +02:00
Martine S. Lenders
667ba11732
riotctrl_shell.gnrc: fix some more ping6 parsing errors
Found during integration of release tests:

- if the payload is too small, RTTs are not shown
- duplicates are now shown properly, if duplicates exist, the stats are
  now parsed instead of ignored
2020-07-09 13:03:08 +02:00
Martine S. Lenders
1cb0e09d88
tests: add capability to provide make command via environment
For those tests that don't use the tooling fixed in the previous commit
2020-07-09 10:59:01 +02:00
Martine S. Lenders
9b5b20e3b9
riotctrl_shell.gnrc: fix bug discovered by doctests 2020-07-08 17:48:25 +02:00
Martine S. Lenders
d5e3f8756e
riotctrl_shell.gnrc: add doctests as parsing examples 2020-07-08 17:47:56 +02:00
Martine S. Lenders
637c673e6a
riotctrl_shell.tests: rewrite Mock to detect missing check_term
`check_term` calls `run_term` of the `ctrl` if necessary.
2020-07-08 15:31:48 +02:00
Martine S. Lenders
b110f9e38c
riotctrl_shell.netif: add missing check_term decorator 2020-07-08 12:04:31 +02:00
Martine S. Lenders
da3fdd33d1
tools: add capability to provide make command via environment
Not all operating systems name the GNU Make `make`. FreeBSD e.g. uses a
different dialect of Make, that seems to be incompatible with GNU make.
(I wasn't able to get `make` run, but `gmake` works).

This allows our test scripts to be configured via the environment
variable `MAKE` to point to a different make command.
2020-07-08 09:36:36 +02:00
Martine S. Lenders
f8d23b4745
riotctrl_shell: activate doctests for pytest 2020-07-07 12:24:42 +02:00
Martine S. Lenders
1182f24b25
riotctrl_shell: provide netif interactions and parsers 2020-07-07 12:24:41 +02:00
ffbc16aafd
riotctrl_shell: fix riotctrl url in requirements.txt 2020-07-06 15:29:50 +02:00
Martine S. Lenders
bf5d66757a
riotctrl_shell: remove unneeded variables and imports 2020-07-04 12:18:29 +02:00
Martine S. Lenders
d11b5b2b54
riotctrl_shell: provide pktbuf interaction 2020-07-03 21:53:00 +02:00
Martine Lenders
98219e6746
riotctrl_shell: provide ping6 interaction 2020-07-03 21:53:00 +02:00
Martine Lenders
fa9deae489
riotctrl_shell: initial import of shell interaction riotctrl wrapper 2020-07-03 21:53:00 +02:00
Martine S. Lenders
aee9f09386
testrunner: use SIGKILL only as last resort
When the child has a clean-up step (closing files, killing
sub-processes, deleting operational files, etc.), this currently is not
executed by the test, as the `testrunner` just does a hard `SIGKILL`
for the child's PPID. This change makes this a `SIGTERM` and only uses
`SIGKILL` if there are still processes lingering a second after the
`SIGTERM`.
2020-04-28 19:42:07 +02:00
Leandro Lanzieri
98fd746656
dist/testrunner: Capture number of unittests that passed 2020-04-03 14:52:48 +02:00
fb643b348b
dist/testrunner: add common function to check unittests 2020-03-19 10:39:33 +01:00
a91c4bf7e6
dist/testrunner: add optional delay before opening serial
This option is null by default but is useful when used with boards exposing their stdio over USB
2020-03-18 10:53:17 +01:00
Francisco Molina
a31003a23c
tests: add interactive_sync adapted to shell 2020-03-17 17:23:27 +01:00
c6a2b39a0b
testrunner: allow setting custom delay before reset
On some boards, such as hifive1b, resetting right after flashing could crash the running firmware
2020-01-10 08:34:17 +01:00
Francisco Molina
a77594a348 dist/pythonlibs/testrunner: reset before term
For some boards `make reset` is only possible if a serial connection
is not already open or its execution might disrupt it. This
causes some tests to fail since before running a test the board
is reset.

`make reset` is currently used as a synchronization mechanism between
the application and the test script. With `test_utils_interactive_sync`
this is no longer needed so call `make reset` before `cleanterm` instead
of after when `test_utils_interactive_sync` is used.

Allow setting TESTRUNNER_RESET_AFTER_TERM=1 to keep the previous
behaviour for `examples/%/tests`.
2019-12-19 09:32:37 +01:00
55ef046728
dist/testrunner: make interactive test retries/delay configurable 2019-12-12 09:44:16 +01:00
Gaëtan Harter
eb9cb198a0 testrunner: auto sync with test_utils_interactive_sync if present
Automatically call the test_utils_interactive_sync synchronization if it
is used.
2019-11-27 15:07:42 +01:00
Gaëtan Harter
c75d5120b4
testrunner: use 'cleanterm' for testing
Use a clean terminal without added decoration on the output for testing.
2019-10-01 14:13:02 +02:00
Gaëtan Harter
e5e9d81cce
testrunner/utils: add helper for test_utils_interactive_sync
Add helper to do the synchronisation.
2019-08-15 12:26:28 +02:00
sanjuprakashk
d30bd7ae47 dist/pythinlibs/testrunner: dynamic changing of test timeout
Few flashers require a longer time to flash code and reset the device and
requires the test script to wait for a longer time before timing out.
This commit adds a environment variable "RIOT_TEST_TIMEOUT"  that can be
set by the user to vary the timeout in accordance to the requirements
of the system

on-behalf-of: @sparkmeter <sanju.kannioth@sparkmeter.io>
2019-07-17 06:25:28 -07:00
Gaëtan Harter
731dcfc319
testrunner: disable local echo
When local echo is enabled, pexpect will also match on send lines to the
node. So could think a node is echoing when it is only seeing the sent
message.
The sent messages are still written to `logfile` but now only once.

This may show issues with our current tests implementation that expected
this behavior.
2019-03-04 13:26:53 +01:00
Martine Lenders
4b5b5d910b dist/pythonlibs: provide unittest TestCase wrapper for testrunner
I had this idea when implementing #10382 and #10392 as I introduced a
very similar structure to python's standard unittests in those and it
could also reduce some code duplication between those two tests.
2019-01-29 21:16:39 +01:00
Martine Lenders
b2407e4583 dist/pythonlibs: expose functions to setup/teardown pexpect spawn
This allows for re-usability of those functions in other contexts.
2019-01-29 20:41:49 +01:00
cladmi
921afa0820
testrunner: fix script when RIOTBASE is not defined
If not defined it was raising a KeyError. Use the 'get' function to
handle non defined value.

It did not put the value in the `default` case as it would have changed
the behavior when `RIOTBASE` is defined but empty.
2019-01-21 12:19:34 +01:00
smlng
dd9a43bdc9 dist: move testrunner to pythonlibs as package
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
2018-08-13 14:11:22 +02:00
smlng
68a6ba8987 make: introduce common Python lib path
Introduce dist/pythonlibs directory to store RIOT python packages.
This directory is exported via PYTHONPATH by the build system to
make it commonly available.
2018-08-10 11:37:43 +02:00