diff mbox

[v2,4/4] tests/tcg: Add tests-tcg hook in Makefile

Message ID 20160829224920.16686-5-bobby.prani@gmail.com
State New
Headers show

Commit Message

Pranith Kumar Aug. 29, 2016, 10:49 p.m. UTC
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
 tests/Makefile.include     |  1 +
 tests/tcg/Makefile.include | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 tests/tcg/Makefile.include
diff mbox

Patch

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 14be491..141281b 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -776,3 +776,4 @@  all: $(QEMU_IOTESTS_HELPERS-y)
 
 -include $(wildcard tests/*.d)
 -include $(wildcard tests/libqos/*.d)
+-include $(SRC_PATH)/tests/tcg/Makefile.include
diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include
new file mode 100644
index 0000000..563a097
--- /dev/null
+++ b/tests/tcg/Makefile.include
@@ -0,0 +1,20 @@ 
+UNAME_P := $(shell uname -p)
+
+tests-tcg: misc
+
+x86_64:
+	cd $(SRC_PATH)/tests/tcg/i386 && make
+i386:
+	cd $(SRC_PATH)/tests/tcg/i386 && make
+
+arm:
+	cd $(SRC_PATH)/tests/tcg/arm && make
+aarch64:
+	cd $(SRC_PATH)/tests/tcg/arm && make
+
+misc:
+	cd $(SRC_PATH)/tests/tcg/misc && make
+	make $(UNAME_P)
+
+.PHONY: tests-tcg
+