tests/tcg/multiarch: add hello world system test
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 29 Apr 2019 14:41:46 +0000 (15:41 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 28 May 2019 09:28:51 +0000 (10:28 +0100)
This is not really i386 only, we can have the same test for all
architectures supporting system tests.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/tcg/i386/Makefile.softmmu-target
tests/tcg/i386/system/hello.c [deleted file]
tests/tcg/multiarch/system/hello.c [new file with mode: 0644]

index 53c9c5ece0641806bb0e92c51d02f0266f22a24b..c31bbbf39a740225289b5d8c1b3d1cfa328cba66 100644 (file)
@@ -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 (file)
index 821dc0e..0000000
+++ /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 <minilib.h>
-
-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 (file)
index 0000000..821dc0e
--- /dev/null
@@ -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;
+}