From 40d6ee9450b966f56a7df9874939b05f33040c74 Mon Sep 17 00:00:00 2001 From: Alex Bennée Date: Fri, 1 Mar 2019 16:37:02 +0000 Subject: tests/tcg/i386: add system mode Hello World test This introduces the build framework for simple i386 system tests. The first test is the eponymous "Hello World" which simply outputs the text on the serial port and then exits. I've included the framework for x86_64 but it is not in this series as it is a work in progress. Signed-off-by: Alex Bennée --- tests/tcg/i386/system/hello.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/tcg/i386/system/hello.c (limited to 'tests/tcg/i386/system/hello.c') diff --git a/tests/tcg/i386/system/hello.c b/tests/tcg/i386/system/hello.c new file mode 100644 index 0000000000..821dc0ef09 --- /dev/null +++ b/tests/tcg/i386/system/hello.c @@ -0,0 +1,14 @@ +/* + * Hello World, system test version + * + * We don't have the benefit of libc, just builtin C primitives and + * whatever is in minilib. + */ + +#include + +int main(void) +{ + ml_printf("Hello World\n"); + return 0; +} -- cgit v1.2.3-55-g7522