From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blGDp-00046k-3u for qemu-devel@nongnu.org; Sat, 17 Sep 2016 10:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blGDn-0002fx-9u for qemu-devel@nongnu.org; Sat, 17 Sep 2016 10:04:00 -0400 Received: from mail-yb0-x243.google.com ([2607:f8b0:4002:c09::243]:35498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blGDn-0002fm-6Q for qemu-devel@nongnu.org; Sat, 17 Sep 2016 10:03:59 -0400 Received: by mail-yb0-x243.google.com with SMTP id r203so2357961yba.2 for ; Sat, 17 Sep 2016 07:03:59 -0700 (PDT) From: Pranith Kumar Date: Sat, 17 Sep 2016 10:03:48 -0400 Message-Id: <20160917140349.12431-7-bobby.prani@gmail.com> In-Reply-To: <20160917140349.12431-1-bobby.prani@gmail.com> References: <20160917140349.12431-1-bobby.prani@gmail.com> Subject: [Qemu-devel] [PATCH 6/6] tests/tcg: Add tests-tcg hook in Makefile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Eric Blake , Markus Armbruster , "Daniel P. Berrange" , "Michael S. Tsirkin" , Paolo Bonzini Cc: alex.bennee@linaro.org, rth@twiddle.net Signed-off-by: Pranith Kumar --- tests/Makefile.include | 1 + tests/tcg/Makefile.include | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/tcg/Makefile.include diff --git a/tests/Makefile.include b/tests/Makefile.include index 2f11064..5f314ed 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -803,3 +803,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..a55cb03 --- /dev/null +++ b/tests/tcg/Makefile.include @@ -0,0 +1,34 @@ +# +# linux-user TCG tests +# +# The Make is expected to be invoked in the ${BUILD_DIR} directory +# using the tests-tcg target +# +BUILD_DIR?=$(CURDIR) +include $(BUILD_DIR)/config-host.mak # brings in SRC_PATH + +UNAME_P := $(shell uname -p) + +tests-tcg: prepare $(UNAME_P) + +prepare: + mkdir -p $(BUILD_DIR)/$(UNAME_P)-linux-user/tests/ + +x86_64: + cd $(BUILD_DIR)/x86_64-linux-user/tests/ && \ + make -f $(SRC_PATH)/tests/tcg/i386/Makefile + +i386: + cd $(BUILD_DIR)/i386-linux-user/tests/ && \ + make -f $(SRC_PATH)/tests/tcg/i386/Makefile + +arm: + cd $(BUILD_DIR)/arm-linux-user/tests/ && \ + make -f $(SRC_PATH)/tests/tcg/arm/Makefile + +aarch64: + cd $(BUILD_DIR)/aarch64-linux-user/tests/ && \ + make -f $(SRC_PATH)/tests/tcg/arm/Makefile + +.PHONY: tests-tcg + -- 2.9.3