[riot-commits] [RIOT-OS/RIOT] 027426: test_utils_interactive_sync: add a helper for sync...

Francisco noreply at github.com
Thu Aug 15 19:12:14 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 027426793cc7b9fd4e721d436722284e110767bc
      https://github.com/RIOT-OS/RIOT/commit/027426793cc7b9fd4e721d436722284e110767bc
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M sys/Makefile
    M sys/Makefile.dep
    A sys/include/test_utils/interactive_sync.h
    A sys/test_utils/Makefile.dep
    A sys/test_utils/interactive_sync/Makefile
    A sys/test_utils/interactive_sync/interactive_sync.c

  Log Message:
  -----------
  test_utils_interactive_sync: add a helper for synchronizing tests

Add an implementation that waits for 's' to print 'START' and return.
If 'r' is given is prints 'READY' to allow querying for state.

The help and answered string have to be different to not match the other.
Using puts/getchar was smaller than using `stdio_read/stdio_write` on the
example I tested with `esp32`.


  Commit: e5e9d81cce20141181f446885070f73c251f275c
      https://github.com/RIOT-OS/RIOT/commit/e5e9d81cce20141181f446885070f73c251f275c
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M dist/pythonlibs/testrunner/__init__.py
    A dist/pythonlibs/testrunner/utils.py

  Log Message:
  -----------
  testrunner/utils: add helper for test_utils_interactive_sync

Add helper to do the synchronisation.


  Commit: f193ffd604d8e1e1aa2b253c0036eea7e023d343
      https://github.com/RIOT-OS/RIOT/commit/f193ffd604d8e1e1aa2b253c0036eea7e023d343
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M tests/cond_order/Makefile
    M tests/cond_order/main.c
    M tests/cond_order/tests/01-run.py

  Log Message:
  -----------
  tests/cond_order: use test_utils_interactive_sync

Use test_utils_interactive_sync for synchronizing some case treat
the output before `reset` as the start of the test,
which fails for some boards/configurations.


  Commit: 1172ca9f93590c93208166d580e13c746defd18c
      https://github.com/RIOT-OS/RIOT/commit/1172ca9f93590c93208166d580e13c746defd18c
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M tests/xtimer_usleep/Makefile
    M tests/xtimer_usleep/main.c
    M tests/xtimer_usleep/tests/01-run.py

  Log Message:
  -----------
  tests/xtimer_usleep: use test_utils_interactive_sync

Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.


  Commit: ed27d3b68b8e688c0e62738f478a62b2302ff05f
      https://github.com/RIOT-OS/RIOT/commit/ed27d3b68b8e688c0e62738f478a62b2302ff05f
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M tests/posix_time/Makefile
    M tests/posix_time/main.c
    M tests/posix_time/tests/01-run.py

  Log Message:
  -----------
  tests/posix_time: use test_utils_interactive_sync

Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.


  Commit: 4c209ab8d7efec038c8800b3fd8c3f68025967bb
      https://github.com/RIOT-OS/RIOT/commit/4c209ab8d7efec038c8800b3fd8c3f68025967bb
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M tests/libfixmath/main.c

  Log Message:
  -----------
  tests/libfixmath: explicitly import ARRAY_SIZE definition

ARRAY_SIZE is implicitly imported by "xtimer.h" which will be removed of
this file.


  Commit: ac8a6cf3a30df10dca537e0db5329f72879c7f16
      https://github.com/RIOT-OS/RIOT/commit/ac8a6cf3a30df10dca537e0db5329f72879c7f16
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M tests/libfixmath/Makefile
    M tests/libfixmath/main.c
    M tests/libfixmath/tests/01-run.py

  Log Message:
  -----------
  tests/libfixmath: use test_utils_interactive_sync

Replace the 'xtimer_sleep' hack to prevent flooding at startup to use
test_utils_interactive_sync for synchronizing.


  Commit: 5653004d52d896ea877bc38b0c8619b8f48d06c5
      https://github.com/RIOT-OS/RIOT/commit/5653004d52d896ea877bc38b0c8619b8f48d06c5
  Author: Francisco <francois-xavier.molina at inria.fr>
  Date:   2019-08-15 (Thu, 15 Aug 2019)

  Changed paths:
    M dist/pythonlibs/testrunner/__init__.py
    A dist/pythonlibs/testrunner/utils.py
    M sys/Makefile
    M sys/Makefile.dep
    A sys/include/test_utils/interactive_sync.h
    A sys/test_utils/Makefile.dep
    A sys/test_utils/interactive_sync/Makefile
    A sys/test_utils/interactive_sync/interactive_sync.c
    M tests/cond_order/Makefile
    M tests/cond_order/main.c
    M tests/cond_order/tests/01-run.py
    M tests/libfixmath/Makefile
    M tests/libfixmath/main.c
    M tests/libfixmath/tests/01-run.py
    M tests/posix_time/Makefile
    M tests/posix_time/main.c
    M tests/posix_time/tests/01-run.py
    M tests/xtimer_usleep/Makefile
    M tests/xtimer_usleep/main.c
    M tests/xtimer_usleep/tests/01-run.py

  Log Message:
  -----------
  Merge pull request #11875 from cladmi/pr/test_utils/sync

test_utils_interactive_sync: add a helper for synchronizing tests


Compare: https://github.com/RIOT-OS/RIOT/compare/3e753834e793...5653004d52d8


More information about the commits mailing list