From patchwork Tue Apr 10 19:39:19 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: 133101 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1636105ljb; Tue, 10 Apr 2018 12:45:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rHiWx8/yILQwtOXt9utwSaAj7VJFCxGwrk/8XEjxUsGXxp83PYM5Sd6odo3ZYl0ElsNE/ X-Received: by 10.55.52.4 with SMTP id b4mr2628717qka.315.1523389538835; Tue, 10 Apr 2018 12:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523389538; cv=none; d=google.com; s=arc-20160816; b=flyDq6S3WQ1XSWjbAgu5D7elC7tgyRqC1c6ih+zkm8id8WauNnYrCf6WwXqlCOyAGL uWarUoCL8U0UptgSz/dLb4MPKbIfEmUwxym/+RFo9Ob3BBWiCe8vTgZbFUKQCDogcuSC FOLTD2+zqWh7IeF6vLD2Bnwgh3+QWrBK2FoMwyOVUjidQolqafxS1pD/Jqa6plTVpHzJ t5oUPqeCVZkpvk5+QSs8c6ohO+DAyJhk20uv8KG328COXpzSb/GJ+SwoiN1fvLgR+2hu 5g07ddK1Coy+wunEQpt/yQNq1Du+nFsE+kw5xOQCQ1eu2kqklBoQau0ZZNJXPoWAODHz GaFA== 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=y8zCWNlr/3bCibEJUw/1+uHiIddqYfXo6iyrFuOWTE0=; b=iqnb5xlu0NrL/x5MG9rWrghr1Okf7mY5IT5OIalM28nZPMAJeW+kpoL04fq+ylm59B ZVy5cfo79Z54NUIdfLicl0zOfxdCbUaKM7KuTyo5FTL8zw6Ye1Kg03C/xxwjSOo3W9Ja hdJDd2mDLwElGgEggYl7xpBRsc1DdISs3cXjQEGkLQMNR7u2hOn7DdFkdrVT18EP9C6P vPXKWLxT9etgAtHCMpqoIYMoxb0DUyL7IC7zCaUGAt/dTChN9vrBY7Cy2FWheusglg5Z cPfToyuDx2cHx7RMis1TMzV7OdLjI+oxhsfPzinhYXGZJcumtEzEVAwk/vUWGMbpYiQT wv5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ddb7oX2d; 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 k67si4171072qkd.372.2018.04.10.12.45.38 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 10 Apr 2018 12:45:38 -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=Ddb7oX2d; 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]:39713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5zD0-0004T0-AI for patch@linaro.org; Tue, 10 Apr 2018 15:45:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z7C-0000Kz-EY for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z7B-0006Rm-Ep for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:38 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z7B-0006R5-7M for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:37 -0400 Received: by mail-wm0-x243.google.com with SMTP id x82so25426771wmg.1 for ; Tue, 10 Apr 2018 12:39:37 -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=y8zCWNlr/3bCibEJUw/1+uHiIddqYfXo6iyrFuOWTE0=; b=Ddb7oX2dsdxWdh1QOVWv0qPgdY0/jqI4lRnnN7gKF6ohqkDPYvjrwSUcqsMNRr7LoX OztBv9RPHhFq7TERKGyQ/7jWQs+S/vYujkesu55R5QBpBS0QDnnS9/Gvjfoy4mcClZzx +uWYKoiIuXD51oJxcAGAWFwu838/kofPbbAjY= 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=y8zCWNlr/3bCibEJUw/1+uHiIddqYfXo6iyrFuOWTE0=; b=jJOnCTcs0ud2tbloTHT6UKf3D7IO2Xh4YRU72LKhxsn1QkY9CIUFz9DXumwsenPzn/ lHvQ1lBXW4QB9W72OzhW0BxGTr3x+jlweYa34geLM9OSQ5FN1f5mEcLOUI5Iul5r9Awn 2AFAA53y5l0cP8N8/+WAnHOsZgb5JM1cwRnsOoLUSHL1WX2llTa1O8GLaQPTyWGJ0slD MgpGpxPh5HCjVDnAa9VEDN/RPvll2hd8PrFfjjiL9Nv0le5uECZz/gLH7eLCHoeRnrh1 bAwabgjLt7nfUYh8K3jrGhSJK8YVvrC/DRDmwiF9d46FAaAH//QCP9+yWXQMVaKuxNIo 1geA== X-Gm-Message-State: ALQs6tCZmbk3G7O8rFKuntKB+jCtoUS7uAJHCaLw5xD8/8oZVZa01kZE or1YwnPfDrUY1/Jldx7/1aUdGg== X-Received: by 10.28.14.204 with SMTP id 195mr568231wmo.27.1523389176133; Tue, 10 Apr 2018 12:39:36 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b203sm1886769wmh.2.2018.04.10.12.39.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:34 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2930C3E10B8; Tue, 10 Apr 2018 20:39:21 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:39:19 +0100 Message-Id: <20180410193919.28026-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-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::243 Subject: [Qemu-devel] [PATCH v1 24/24] tests/Makefile.include: add (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?= , famz@redhat.com, cota@braap.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. Signed-off-by: Alex Bennée --- tests/Makefile.include | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) -- 2.16.2 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/Makefile.include b/tests/Makefile.include index 3d2f0458ab..c402de901e 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 @@ -916,6 +917,23 @@ 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 %,tcg-tests-%, $(LINUX_USER_TARGETS)) +CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(LINUX_USER_TARGETS)) + +tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" guest-tests,) + +clean-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" clean-guest-tests,) + +.PHONY: check-tcg +check-tcg: $(BUILD_TCG_TARGET_RULES) + +.PHONY: clean-tcg +clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Other tests @@ -958,7 +976,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