From patchwork Fri Jun 15 19:46:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 138812 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1290756lji; Fri, 15 Jun 2018 13:35:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIj7OHnaD1EST0hFsLHWoGPwQDL7X0uSP/X7Wtv2HlAjXFuubFXqtbTPRRcQ6iw84fLMFIQ X-Received: by 2002:ac8:37f2:: with SMTP id e47-v6mr2916645qtc.386.1529094952648; Fri, 15 Jun 2018 13:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529094952; cv=none; d=google.com; s=arc-20160816; b=tA0MuoeA/HsiP9qw4R+tDabBgdTKdK8VfCMBuDlrm5P88ep3s6OItAp+tBoLKwrmze +UKmCPIwvMq7JJp9F8rfVDGIdb7gpDvnYsUFtzU42TlvfsZGFORDD+mzf/zbhu0quLZL TVy/M1KbTfOGEmiu3rbJbc/sTYjD+HB4IqkRkIP5BD1MSrCw64IdmicXR2N270lbPpfn nY/Jyv3I+9tftXAPY8QvWQwBvn69cxuCYyolNHzjZ9dw3+fbSalhocfZwBDPIRd1AA7Q PbVVP3kXXEBX/hfIv/MzWU2J3EP+wkNje2eTU7amh4o3cvoLkAUs654+j8KHlH19uMcr Cwaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=lHjqVSFzUeX+WnAJ/VYqd50LEnNdVmVSM9iOy3FnyIU=; b=PEZOCDB9PJD4qYDOz7gIyUlUbjsEed2izZsKtK4BW4p5EFHkLLVLMD5HuIMJ97P50n /fPs9NDlUkd8os7WcpeMYpIRjUCK/UgzWkCL2f/60rNgFDWGdpnlCuEhiOUC/IqIYGBd sOVmRGH0/d/ECU655RtVYQYGo83mhtvCQIGbGyn4l2Gxgx5RrXfw8++WWFw8xL6edj5m CTOvsvdq4AqnFjexiaGber1YAF06BQQHgR2ecijLaHasYCypD8/A4qNTJWKj+rFKkzrG 6X+XlHp/mQrTT85C6gaIJhoD/tJJudAnaAj+yJk+yRyEoO7O/wspG8rJ1gSWKVnmFkwl O/og== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=G72d79AH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n184-v6si854524qkb.113.2018.06.15.13.35.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Jun 2018 13:35:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=G72d79AH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTvRo-0006SD-2q for patch@linaro.org; Fri, 15 Jun 2018 16:35:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuod-0000do-Iw for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuoc-0006ne-KO for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:23 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuoc-0006m1-E3 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:22 -0400 Received: by mail-wm0-x230.google.com with SMTP id v131-v6so5761470wma.1 for ; Fri, 15 Jun 2018 12:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lHjqVSFzUeX+WnAJ/VYqd50LEnNdVmVSM9iOy3FnyIU=; b=G72d79AHwKBIINsq2uhJ3DWbZ4q8noarscyhNAoQEeJvnLmoEmvSJyHSYMMNWFOC/f zxYyCX1faFhY82VwmclnzzhRzz+rp0v4ycfydUf2eNnW/RtCU8Q/DFPoItSOK6ZHYLDf oaXkayFFsUtOOcnuvSDH46yWMAi3nTm/g277U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lHjqVSFzUeX+WnAJ/VYqd50LEnNdVmVSM9iOy3FnyIU=; b=ITBseZ7WJ4k9o7qAZeby4mH7uiu+ZKpUcx7Bjhd8CvyELMsjmxtfdn3rJ52FhWiap5 FHQRg0MwxViICoARaPj7W/V8f8EtVib7aBZiyDIipWThk+D2uiluh1BJ18bzIlQyaNIg ZHTPsKd5kryIW81353QPNRshlApJKyRPJ4j1XvqRgMaslDGPzt9COr6dmAudNa5fqYqu WTAqtf/JVWNvCQCuKK15SpJgefESjjHua7ik9JOkkbP57Aen7IYSnq8nb66SapvreGJv dDcU2AvM/8/GiZSnBwiRx4mA/XrdSHxq6H8fE4/iNH3+D+b9q8iXHaOi+3FohkZHtUPw kUQQ== X-Gm-Message-State: APt69E2I2mykTHiG9iZBUqNX3j2Rjca+dwRNDCDUrQpI+/BZyIGRUlOZ N6cKa7vBpg7LobYQjNQSP6+ACA== X-Received: by 2002:a1c:9:: with SMTP id 9-v6mr2175183wma.10.1529092521285; Fri, 15 Jun 2018 12:55:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i46-v6sm17629272wra.36.2018.06.15.12.55.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:55:16 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5E7C23E0F8C; Fri, 15 Jun 2018 20:47:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:56 +0100 Message-Id: <20180615194705.28019-46-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 Subject: [Qemu-devel] [PATCH v7 45/54] tests/Makefile.include: add [build|clean|check]-tcg targets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will ensure all linux-user targets build their guest test programs and ensure check-tcg will run the respective tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - use -include instead of complex macro stuff - also include TARGET_BASE_ARCH/Makefile v3 - add build-tcg, make check-tcg actually run tests --- tests/Makefile.include | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/tests/Makefile.include b/tests/Makefile.include index ca91da26cb..c8faa01a33 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -10,6 +10,7 @@ check-help: @echo " $(MAKE) check-speed Run qobject speed tests" @echo " $(MAKE) check-qapi-schema Run QAPI schema tests" @echo " $(MAKE) check-block Run block tests" + @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-report.html Generates an HTML test report" @echo " $(MAKE) check-clean Clean the tests" @echo @@ -930,6 +931,30 @@ check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check check-report.html: check-report.xml $(call quiet-command,gtester-report $< > $@,"GEN","$@") +# Per guest TCG tests + +LINUX_USER_TARGETS=$(filter %-linux-user,$(TARGET_LIST)) +BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(LINUX_USER_TARGETS)) +CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(LINUX_USER_TARGETS)) +RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(LINUX_USER_TARGETS)) + +build-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" guest-tests,) + +run-tcg-tests-%: build-tcg-tests-% + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" run-guest-tests,) + +clean-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" clean-guest-tests,) + +.PHONY: build-tcg +build-tcg: $(BUILD_TCG_TARGET_RULES) + +.PHONY: check-tcg +check-tcg: $(RUN_TCG_TARGET_RULES) + +.PHONY: clean-tcg +clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Other tests @@ -972,7 +997,6 @@ check-speed: $(patsubst %,check-%, $(check-speed-y)) check-block: $(patsubst %,check-%, $(check-block-y)) check: check-qapi-schema check-unit check-qtest check-decodetree check-clean: - $(MAKE) -C tests/tcg clean rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y)) rm -f tests/test-qapi-gen-timestamp