[riot-commits] [RIOT-OS/RIOT] 2dfb58: tests/mutex_unlock_and_sleep: replace modulo to sp...

Kaspar Schleiser kaspar at schleiser.de
Sat May 12 02:09:38 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2dfb5847f3cda7e794edc65c25cd651c78cbe428
      https://github.com/RIOT-OS/RIOT/commit/2dfb5847f3cda7e794edc65c25cd651c78cbe428
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M tests/mutex_unlock_and_sleep/main.c

  Log Message:
  -----------
  tests/mutex_unlock_and_sleep: replace modulo to speed up tests on wsn430

Doing a 32 bit modulo is really slow on wsn430, even when changing to a power of
two modulo.

Replace modulo by a double counter.


  Commit: 57a2397631d2045b06388f932201f57629a6ec6b
      https://github.com/RIOT-OS/RIOT/commit/57a2397631d2045b06388f932201f57629a6ec6b
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M tests/mutex_unlock_and_sleep/main.c

  Log Message:
  -----------
  tests/mutex_unlock_and_sleep: reduce number of iterations on boards

Reduce number of iterations, it allows taking less than 3 seconds on wsn430.

Tested on wsn430 and iotlab-m3 to check that speed was not too fast to read when
executing term.


  Commit: 4f2521262b5b0241d4a8ed6760aadb23c8ac745a
      https://github.com/RIOT-OS/RIOT/commit/4f2521262b5b0241d4a8ed6760aadb23c8ac745a
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M tests/mutex_unlock_and_sleep/tests/01-run.py

  Log Message:
  -----------
  tests/mutex_unlock_and_sleep: reduce number of loops in test

Globally speed up automated tests as iterating more does not add anything.

Especially usefull for wsn430 that now takes ~30 seconds instead of the double.


  Commit: 234b363e8c94f35d34e19b98b726c425475a8913
      https://github.com/RIOT-OS/RIOT/commit/234b363e8c94f35d34e19b98b726c425475a8913
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2018-05-12 (Sat, 12 May 2018)

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

  Log Message:
  -----------
  Merge pull request #9032 from cladmi/pr/fix/test/wsn430/mutex_unlock_and_sleep

tests/mutex_unlock_and_sleep: increase timeout


Compare: https://github.com/RIOT-OS/RIOT/compare/0ca4ffa6a4b7...234b363e8c94
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list