tests/fmt_print: migrate to testrunner

This commit is contained in:
Alexandre Abadie 2017-11-09 18:09:27 +01:00
parent 1a0f4940fd
commit c1056e2e6a
2 changed files with 18 additions and 0 deletions

View File

@ -4,3 +4,6 @@ include ../Makefile.tests_common
USEMODULE += fmt
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

15
tests/fmt_print/tests/01-run.py Executable file
View File

@ -0,0 +1,15 @@
#!/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_exact('If you can read this:')
child.expect_exact('Test successful.')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))