Skip to content
Snippets Groups Projects
Commit 67187e24 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/pthread_cooperation: migrate to testrunner script

parent 633be9a8
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,6 @@ USEMODULE += posix ...@@ -10,3 +10,6 @@ USEMODULE += posix
USEMODULE += pthread USEMODULE += pthread
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
#!/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 i in range(12):
child.expect('Creating thread with arg {}'.format(i + 1))
for i in range(12):
child.expect('join thread {}'.format(i + 1))
child.expect('SUCCESS')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment