diff --git a/tests/vfs_plus_stdio/Makefile b/tests/vfs_plus_stdio/Makefile new file mode 100644 index 0000000000..86625c0bea --- /dev/null +++ b/tests/vfs_plus_stdio/Makefile @@ -0,0 +1,7 @@ +DEVELHELP=0 +include ../Makefile.tests_common + +USEMODULE += vfs +USEMODULE += fmt + +include $(RIOTBASE)/Makefile.include diff --git a/tests/vfs_plus_stdio/main.c b/tests/vfs_plus_stdio/main.c new file mode 100644 index 0000000000..48890c09e8 --- /dev/null +++ b/tests/vfs_plus_stdio/main.c @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2019 Freie Universität Berlin + * + * 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 Tests VFS together with stdio on a board + * + * @author Martine S. Lenders + * + * @} + */ + +#include "fmt.h" + +int main(void) +{ + print_str("SUCCESS\n"); + return 0; +} diff --git a/tests/vfs_plus_stdio/tests/01-run.py b/tests/vfs_plus_stdio/tests/01-run.py new file mode 100755 index 0000000000..d16f4a5268 --- /dev/null +++ b/tests/vfs_plus_stdio/tests/01-run.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +# Copyright (C) 2019 Freie Universität Berlin +# +# 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 sys +from testrunner import run + + +def testfunc(child): + child.expect_exact('SUCCESS') + + +if __name__ == "__main__": + sys.exit(run(testfunc, timeout=1))