mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/thread_exit: migrate to testrunner script
This commit is contained in:
parent
663bd8a71c
commit
95bb6d48d8
@ -6,3 +6,6 @@ BOARD_INSUFFICIENT_MEMORY := nucleo32-f031
|
||||
DISABLE_MODULE += auto_init
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
test:
|
||||
tests/01-run.py
|
||||
|
22
tests/thread_exit/tests/01-run.py
Executable file
22
tests/thread_exit/tests/01-run.py
Executable 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("main: starting")
|
||||
child.expect("main: exiting")
|
||||
child.expect("2nd: starting")
|
||||
child.expect("3rd: starting")
|
||||
child.expect("3rd: exiting")
|
||||
child.expect("2nd: exiting")
|
||||
child.expect("4th: starting")
|
||||
child.expect("4th: exiting")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
Loading…
Reference in New Issue
Block a user