From c1056e2e6a31784ae1efd8b003d8984c2e81d5cb Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Thu, 9 Nov 2017 18:09:27 +0100
Subject: [PATCH] tests/fmt_print: migrate to testrunner

---
 tests/fmt_print/Makefile        |  3 +++
 tests/fmt_print/tests/01-run.py | 15 +++++++++++++++
 2 files changed, 18 insertions(+)
 create mode 100755 tests/fmt_print/tests/01-run.py

diff --git a/tests/fmt_print/Makefile b/tests/fmt_print/Makefile
index 810f36de74..14dc534ce7 100644
--- a/tests/fmt_print/Makefile
+++ b/tests/fmt_print/Makefile
@@ -4,3 +4,6 @@ include ../Makefile.tests_common
 USEMODULE += fmt
 
 include $(RIOTBASE)/Makefile.include
+
+test:
+	tests/01-run.py
diff --git a/tests/fmt_print/tests/01-run.py b/tests/fmt_print/tests/01-run.py
new file mode 100755
index 0000000000..7d6707a0f3
--- /dev/null
+++ b/tests/fmt_print/tests/01-run.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
+import testrunner
+
+
+def testfunc(child):
+    child.expect_exact('If you can read this:')
+    child.expect_exact('Test successful.')
+
+if __name__ == "__main__":
+    sys.exit(testrunner.run(testfunc))
-- 
GitLab