From: Alex Bennée Date: Mon, 29 Apr 2019 14:41:46 +0000 (+0100) Subject: tests/tcg/multiarch: add hello world system test X-Git-Tag: qemu-xen-4.13.0-rc1~154^2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=49d755d02ef24df43747bbbbfd073f347f343ddf;p=qemu-xen.git tests/tcg/multiarch: add hello world system test This is not really i386 only, we can have the same test for all architectures supporting system tests. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- diff --git a/tests/tcg/i386/Makefile.softmmu-target b/tests/tcg/i386/Makefile.softmmu-target index 53c9c5ece0..c31bbbf39a 100644 --- a/tests/tcg/i386/Makefile.softmmu-target +++ b/tests/tcg/i386/Makefile.softmmu-target @@ -27,7 +27,7 @@ CFLAGS+=-m32 LINK_SCRIPT=$(I386_SYSTEM_SRC)/kernel.ld LDFLAGS=-Wl,-T$(LINK_SCRIPT) -Wl,-melf_i386 # FIXME: move to common once x86_64 is bootstrapped -TESTS+=$(X86_TESTS) +TESTS+=$(X86_TESTS) $(MULTIARCH_TESTS) endif CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc diff --git a/tests/tcg/i386/system/hello.c b/tests/tcg/i386/system/hello.c deleted file mode 100644 index 821dc0ef09..0000000000 --- a/tests/tcg/i386/system/hello.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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; -} diff --git a/tests/tcg/multiarch/system/hello.c b/tests/tcg/multiarch/system/hello.c new file mode 100644 index 0000000000..821dc0ef09 --- /dev/null +++ b/tests/tcg/multiarch/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; +}