1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

tests/pkg_jsmn: migrate to testrunner

This commit is contained in:
Alexandre Abadie 2017-11-10 09:16:16 +01:00
parent f5d2f0f503
commit 742da3517f
2 changed files with 25 additions and 0 deletions

View File

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

22
tests/pkg_jsmn/tests/01-run.py Executable file
View File

@ -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('- User: johndoe')
child.expect_exact('- Admin: false')
child.expect_exact('- UID: 1000')
child.expect_exact('- Groups:')
child.expect_exact(' * users')
child.expect_exact(' * wheel')
child.expect_exact(' * audio')
child.expect_exact(' * video')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))