From dc1187ac6f65dbfe1d7e39af3f6f52a77e0e0765 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Thu, 19 Nov 2015 15:43:06 +0100 Subject: [PATCH] tests: fmt_print: initial commit --- tests/fmt_print/Makefile | 6 ++++++ tests/fmt_print/main.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/fmt_print/Makefile create mode 100644 tests/fmt_print/main.c diff --git a/tests/fmt_print/Makefile b/tests/fmt_print/Makefile new file mode 100644 index 0000000000..810f36de74 --- /dev/null +++ b/tests/fmt_print/Makefile @@ -0,0 +1,6 @@ +APPLICATION = fmt_print +include ../Makefile.tests_common + +USEMODULE += fmt + +include $(RIOTBASE)/Makefile.include diff --git a/tests/fmt_print/main.c b/tests/fmt_print/main.c new file mode 100644 index 0000000000..1b5ecfba27 --- /dev/null +++ b/tests/fmt_print/main.c @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de> + * + * 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. + */ + +/** + * @ingroup tests + * @{ + * + * @file + * @brief fmt print test application + * + * This test is supposed to check for "compilabilty" of the fmt print_* instructions. + * + * @author Kaspar Schleiser <kaspar@schleiser.de> + * + * @} + */ + +#include "fmt.h" + +int main(void) +{ + print_str("If you can read this:\n"); + print_str("Test successful.\n"); + + return 0; +} -- GitLab