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:
parent
f5d2f0f503
commit
742da3517f
@ -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
22
tests/pkg_jsmn/tests/01-run.py
Executable 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))
|
||||
Loading…
x
Reference in New Issue
Block a user