diff --git a/tests/fmt_print/Makefile b/tests/fmt_print/Makefile index 810f36de745c9bd5078c1177be38360a4df2e09c..14dc534ce7ae6481b05f68c3669a3a3f94397337 100644 --- a/tests/fmt_print/Makefile +++ b/tests/fmt_print/Makefile @@ -4,3 +4,6 @@ include ../Makefile.tests_common USEMODULE += fmt include $(RIOTBASE)/Makefile.include + +test: + tests/01-run.py diff --git a/tests/fmt_print/tests/01-run.py b/tests/fmt_print/tests/01-run.py new file mode 100755 index 0000000000000000000000000000000000000000..7d6707a0f35b4e90c74546740306e4ebd081391b --- /dev/null +++ b/tests/fmt_print/tests/01-run.py @@ -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))