Skip to content
Snippets Groups Projects
Commit 742da351 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/pkg_jsmn: migrate to testrunner

parent f5d2f0f5
No related branches found
No related tags found
No related merge requests found
......@@ -4,3 +4,6 @@ include ../Makefile.tests_common
USEPKG += jsmn
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
#!/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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment