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:
parent
936928f819
commit
e87314fa1e
@ -13,3 +13,6 @@ USEMODULE += xtimer
|
||||
CFLAGS += -DNATIVE_AUTO_EXIT
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
test:
|
||||
tests/01-run.py
|
||||
|
19
tests/pthread_condition_variable/tests/01-run.py
Executable file
19
tests/pthread_condition_variable/tests/01-run.py
Executable 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))
|
Loading…
Reference in New Issue
Block a user