diff --git a/tests/sched_testing/Makefile b/tests/sched_testing/Makefile index cade2711cc5a01c60666d5d297c6c29f998194c2..a34f76a448c241af98db86c0745f8c082f6e8d9c 100644 --- a/tests/sched_testing/Makefile +++ b/tests/sched_testing/Makefile @@ -4,3 +4,6 @@ include ../Makefile.tests_common BOARD_INSUFFICIENT_MEMORY := nucleo32-f031 include $(RIOTBASE)/Makefile.include + +test: + tests/01-run.py diff --git a/tests/sched_testing/tests/01-run.py b/tests/sched_testing/tests/01-run.py new file mode 100755 index 0000000000000000000000000000000000000000..da0fd060b4a0137e6cba2fdf9718e4ab177e2878 --- /dev/null +++ b/tests/sched_testing/tests/01-run.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 + +import os +import sys +import math + +sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner')) +import testrunner + + +def testfunc(child): + child.expect_exact('The output should be: yield 1, snd_thread running, ' + 'yield 2, done') + child.expect_exact('---------------------------------------------------' + '-------------') + child.expect_exact('yield 1') + child.expect_exact('snd_thread running') + child.expect_exact('yield 2') + child.expect_exact('done') + +if __name__ == "__main__": + sys.exit(testrunner.run(testfunc))