[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific fo
From: |
Pranith Kumar |
Subject: |
[Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder |
Date: |
Thu, 1 Dec 2016 00:14:24 -0500 |
Signed-off-by: Pranith Kumar <address@hidden>
---
tests/tcg/arm/Makefile | 45 +++++++++++++++++++++++++++++++++++
tests/tcg/{ => arm}/hello-arm.c | 0
tests/tcg/{ => arm}/test-arm-iwmmxt.s | 0
3 files changed, 45 insertions(+)
create mode 100644 tests/tcg/arm/Makefile
rename tests/tcg/{ => arm}/hello-arm.c (100%)
rename tests/tcg/{ => arm}/test-arm-iwmmxt.s (100%)
diff --git a/tests/tcg/arm/Makefile b/tests/tcg/arm/Makefile
new file mode 100644
index 0000000..c2ae491
--- /dev/null
+++ b/tests/tcg/arm/Makefile
@@ -0,0 +1,45 @@
+BUILD_DIR?=$(CURDIR)
+SRC_PATH=../../../
+include $(BUILD_DIR)/config-host.mak
+include $(SRC_PATH)/rules.mak
+
+$(call set-vpath, $(SRC_PATH)/tests/tcg/arm)
+
+QEMU=$(BUILD_DIR)/arm-linux-user/qemu-arm
+
+QEMU_INCLUDES += -I$(BUILD_DIR)
+CFLAGS=-Wall -O2 -g -fno-strict-aliasing
+LDFLAGS=
+
+# TODO: automatically detect ARM and MIPS compilers, and run those too
+
+# runcom maps page 0, so it requires root privileges
+# also, pi_10.com runs indefinitely
+
+TESTS=hello-arm arm-iwmmxt
+
+all: $(patsubst %,run-%,$(TESTS))
+test: all
+
+# rules to run tests
+
+run-%: %
+ $(QEMU) ./$*
+
+#.PHONY: $(patsubst %,run-%,$(TESTS))
+
+run-hello-arm: hello-arm
+run-arm-iwmmxt: arm-iwmmxt
+
+# arm test
+hello-arm: hello-arm.o
+ arm-linux-gnueabi-ld -o $@ $<
+
+hello-arm.o: hello-arm.c
+ arm-linux-gnueabi-gcc -Wall -g -O2 -c -o $@ $<
+
+arm-iwmmxt: test-arm-iwmmxt.s
+ cpp < $< | arm-linux-gnueabi-gcc -Wall -static -march=iwmmxt
-mabi=aapcs -x assembler - -o $@
+
+clean:
+ rm -f *~ *.o $(TESTS)
diff --git a/tests/tcg/hello-arm.c b/tests/tcg/arm/hello-arm.c
similarity index 100%
rename from tests/tcg/hello-arm.c
rename to tests/tcg/arm/hello-arm.c
diff --git a/tests/tcg/test-arm-iwmmxt.s b/tests/tcg/arm/test-arm-iwmmxt.s
similarity index 100%
rename from tests/tcg/test-arm-iwmmxt.s
rename to tests/tcg/arm/test-arm-iwmmxt.s
--
2.10.2
- Re: [Qemu-devel] [PATCH 01/19] linux-user: fix settime old value location, (continued)
- [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 03/19] check-help: add some hint to run a single test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 07/19] linux-test: fix set/getitimer returned timer check, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 06/19] linux-test: fix build, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 08/19] Fix test-i386-fprem compilation, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder,
Pranith Kumar <=
- [Qemu-devel] [PATCH 12/19] tests/tcg: Add tests-tcg hook in Makefile, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 14/19] tests/tcg: Move i386 tests to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 11/19] tests/tcg: Move mips test to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 13/19] tests/tcg/i386: Fix hello-i386 test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 16/19] tests/tcg: Fix compilation of linux-test.c, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 15/19] tests/tcg/i386: Fix test-i386 compilation, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 17/19] tests/tcg: Move independent tests to misc dir, Pranith Kumar, 2016/12/01