From 8c8dbd7cf43d681e9fc656382fef468789758ecd Mon Sep 17 00:00:00 2001 From: smlng Date: Wed, 22 Mar 2017 12:07:53 +0100 Subject: [PATCH] tests, msg_avail: add test script --- tests/msg_avail/Makefile | 3 +++ tests/msg_avail/tests/01-run.py | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 tests/msg_avail/tests/01-run.py diff --git a/tests/msg_avail/Makefile b/tests/msg_avail/Makefile index 4d2887674f..121d8e9835 100644 --- a/tests/msg_avail/Makefile +++ b/tests/msg_avail/Makefile @@ -3,4 +3,7 @@ include ../Makefile.tests_common DISABLE_MODULE += auto_init +test: + tests/01-run.py + include $(RIOTBASE)/Makefile.include diff --git a/tests/msg_avail/tests/01-run.py b/tests/msg_avail/tests/01-run.py new file mode 100755 index 0000000000..eace7ab6ba --- /dev/null +++ b/tests/msg_avail/tests/01-run.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +# Copyright (C) 2016 Kaspar Schleiser +# 2017 Sebastian Meiling +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. + +import os +import sys + +sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner')) +import testrunner + +def testfunc(child): + child.expect_exact(u"[SUCCESS]") + +if __name__ == "__main__": + sys.exit(testrunner.run(testfunc))