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

tests/thread_msg_seq: migrate to testrunner script

parent 3a7621d0
Branches
No related tags found
No related merge requests found
APPLICATION = thread_msg_seq APPLICATION = thread_msg_seq
include ../Makefile.tests_common include ../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY := nucleo32-f031 nucleo32-f042 stm32f0discovery BOARD_INSUFFICIENT_MEMORY := nucleo32-f031 nucleo32-f042
DISABLE_MODULE += auto_init DISABLE_MODULE += auto_init
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")
child.expect("THREADS CREATED")
child.expect("THREAD nr1 \(pid:3\) start")
child.expect("THREAD nr1 \(pid:3\) end.")
child.expect("THREAD nr2 \(pid:4\) start")
child.expect("THREAD nr3 \(pid:5\) start")
child.expect("Got msg from pid 3: \"nr1\"")
child.expect("THREAD nr2 \(pid:4\) end.")
child.expect("Got msg from pid 4: \"nr2\"")
child.expect("THREAD nr3 \(pid:5\) end.")
child.expect("Got msg from pid 5: \"nr3\"")
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.
Please register or to comment