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

tests/pthread_rwlock: migrate to testrunner script

This commit is contained in:
Alexandre Abadie 2017-10-29 12:23:44 +01:00
parent 31ffda0a68
commit c1a08451e3
2 changed files with 25 additions and 0 deletions

View File

@ -14,3 +14,6 @@ BOARD_INSUFFICIENT_MEMORY += airfy-beacon chronos mbed_lpc1768 msb-430 msb-430h
spark-core stm32f0discovery yunjia-nrf51822
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -0,0 +1,22 @@
#!/usr/bin/env python3
import os
import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child):
child.expect('START')
for _ in range(8):
child.expect('start')
for _ in range(8):
child.expect('done')
child.expect('SUCCESS')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))