diff options
author | Alex Bennée | 2019-03-01 17:37:02 +0100 |
---|---|---|
committer | Alex Bennée | 2019-03-12 18:05:21 +0100 |
commit | 40d6ee9450b966f56a7df9874939b05f33040c74 (patch) | |
tree | 3c6873071c3d990e11755ee63408109fbec0ddef /tests/tcg/i386/system/hello.c | |
parent | tests/tcg: provide a minilib for system tests (diff) | |
download | qemu-40d6ee9450b966f56a7df9874939b05f33040c74.tar.gz qemu-40d6ee9450b966f56a7df9874939b05f33040c74.tar.xz qemu-40d6ee9450b966f56a7df9874939b05f33040c74.zip |
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 <alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/i386/system/hello.c')
-rw-r--r-- | tests/tcg/i386/system/hello.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <minilib.h> + +int main(void) +{ + ml_printf("Hello World\n"); + return 0; +} |