From 742da3517f0d2d2255bb1a899741352da60f080d Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Fri, 10 Nov 2017 09:16:16 +0100
Subject: [PATCH] tests/pkg_jsmn: migrate to testrunner

---
 tests/pkg_jsmn/Makefile        |  3 +++
 tests/pkg_jsmn/tests/01-run.py | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100755 tests/pkg_jsmn/tests/01-run.py

diff --git a/tests/pkg_jsmn/Makefile b/tests/pkg_jsmn/Makefile
index 9721c5b336..f12a7b906b 100644
--- a/tests/pkg_jsmn/Makefile
+++ b/tests/pkg_jsmn/Makefile
@@ -4,3 +4,6 @@ include ../Makefile.tests_common
 USEPKG += jsmn
 
 include $(RIOTBASE)/Makefile.include
+
+test:
+	tests/01-run.py
diff --git a/tests/pkg_jsmn/tests/01-run.py b/tests/pkg_jsmn/tests/01-run.py
new file mode 100755
index 0000000000..f4c8a7d1d7
--- /dev/null
+++ b/tests/pkg_jsmn/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('- 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))
-- 
GitLab