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

tests/pthread_condition_variable: migrate to testrunner script

This commit is contained in:
Alexandre Abadie 2017-10-29 11:37:12 +01:00
parent 936928f819
commit e87314fa1e
2 changed files with 22 additions and 0 deletions

View File

@ -13,3 +13,6 @@ USEMODULE += xtimer
CFLAGS += -DNATIVE_AUTO_EXIT
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -0,0 +1,19 @@
#!/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')
child.expect('condition fulfilled.')
child.expect('SUCCESS')
if __name__ == "__main__":
# This test can take some time to complete when testing on hardware (e.g
# on samr21-xpro) and the default timeout (10s) is not enough.
sys.exit(testrunner.run(testfunc, timeout=60))