From patchwork Mon Feb 8 12:38:18 2021 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: 378570 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4879476jah; Mon, 8 Feb 2021 09:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsBdz0eNkLm6txLlgLKO3cD8THxsrKyUS70LM3KVSDy1OTvoUgrbPJLVNf7PwN0zOG9U+/ X-Received: by 2002:a25:55c5:: with SMTP id j188mr26305833ybb.455.1612806139280; Mon, 08 Feb 2021 09:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612806139; cv=none; d=google.com; s=arc-20160816; b=AjCuZM/ZFCLdE3assVQycRoU3IeJJFlLXbmM+9v9F9irfEiLsKOSylwiUp7Y5wBTsC zabHTdWFuySb5HM+GBuZq6vRqXCjxxUmsDxhHrAwpdGFsgAbItZSIOUVC9Sf7KoHvf76 cjjPbQkyYoKCkrMtDiSvTMvfLJqS7sGOwQnJvjbv4mcc1WpyQ2aFqehxbD4Zql7vOIeg nZC984SsPjpE6JiJdTfk9V3lWJbPM+zBk4C83J3KLxfTnMmh0zFppzuAFClObiUPfWgq 4+phapDp1Vwi0jDFuOvUyJ7myhns0w+r7JCJ6C2/5s8+rHMYRtdpI6YtOsILoSzYuuoZ Nutw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9FElUemn7vDCwadfEV9vU0VxAeiUTnu6ontpp4bH2YE=; b=n5NG0/oIqyKFBPQAlhpNW6xO7j2uTsRWZNJ7M1rDevyXb3Mkf/bxQEKNNZhfxbxdG5 Dmh0fyCVlBHNhZCuaEyQzrrCR97Tq1i8ZkcJanAoOutyC7mDOx4iwEuwnIIkV+LYrikp kTrQgmEbM/QfzfZm/XehKvOW8195FFXG/CpuGZKyRiKWhy9PTamy5ZE2AMtjxYWvEq3N GrJwkkqaPMZVNPpKAUuVHZfeg5/89U1yk3iMMnLq0BveushVthSaYlyZAlPEfHegha8G wxkuVKjc8xTQi/2wSmKFQf+iN0d0sOJhBNmStP+MX6x0aogkFcR45yOJ53T0DPKsuho9 xDeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TSEt0WKf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id e10si2611743ybr.185.2021.02.08.09.42.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Feb 2021 09:42:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TSEt0WKf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:46702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9AYE-0005YR-LS for patch@linaro.org; Mon, 08 Feb 2021 12:42:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l95pk-0003jn-5Y for qemu-devel@nongnu.org; Mon, 08 Feb 2021 07:40:04 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l95pO-0007lC-L5 for qemu-devel@nongnu.org; Mon, 08 Feb 2021 07:39:52 -0500 Received: by mail-wr1-x435.google.com with SMTP id z6so16846773wrq.10 for ; Mon, 08 Feb 2021 04:38:48 -0800 (PST) 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=9FElUemn7vDCwadfEV9vU0VxAeiUTnu6ontpp4bH2YE=; b=TSEt0WKfL860V+xI8eED0cDdzVTqVO6pGiQDX5nO8GzQ1Rs/ZP2VuIl0xuLfUMhfvI 7W5qFsrQt7DibXY7z0bV7TO9TExJ+uDA4JvT1Gz68S72Mj5zSC65mlIHs4cqGPyjCF+M yYEriNZ/22Gl/oiCKVz5KU9yrIbcWa6TKf5dOWRU78NnDzcDPZX4Pxl+Cgvwu+AKQNKW fZdLuhFhjNnNPoxTEBzJd/FDi7Otcc2u6yIqa5wMYqQY65JTMtPH05JxA/6APhrZQbED EV5yrV1tYZMRVsTsZfpt1fey4DLY7HxlmAjQFf/l8wqeKmf1Y5nkUgJsFtW89oJRs0RO /kgA== 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=9FElUemn7vDCwadfEV9vU0VxAeiUTnu6ontpp4bH2YE=; b=XD6IpI0BjqmJDp8m8LmbpJ67oLNPzTmnsXGqHItNkfUf2u0d6vKbnrv8MsXwN6fbEo 3RvWFlN83VdYx7XdjLjgopTy4BDzNTWSeFU0/BeYbFhBR5/rijQ7X3qCGOswNXuHzgEF tczpI+Hot2qIXqMgqXTmxOwIsGgBaO2oCYY8/YWohjY5BiJqOoleKQJyKrAsplVqYt7E byIEkqdBMxPnRwbv1bi81PjO85u6nQXAVewGSRKFqV8Zp1yT7e1ncHt2ZXBp/80JrN9E Uv2u7dDziRKTjC4WQaHUo6fUnnZ7trPUDEiZLI/P0pKVMKvseu8RKrI5riSy7gdc9SHV JO+Q== X-Gm-Message-State: AOAM532AL4eq1/oSej5GpCqn9wmTrEW0Tx8sdplIvzK6njm/9Rq+ukD0 UOlUzD7j1GfNg1CS4i1uCunA/w== X-Received: by 2002:a5d:4443:: with SMTP id x3mr20464961wrr.409.1612787927285; Mon, 08 Feb 2021 04:38:47 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v11sm14236284wrr.3.2021.02.08.04.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 04:38:45 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EBF0E1FF9C; Mon, 8 Feb 2021 12:38:22 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 13/16] scripts/mtest2make.py: export all-%s-targets variable and use it Date: Mon, 8 Feb 2021 12:38:18 +0000 Message-Id: <20210208123821.19818-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210208123821.19818-1-alex.bennee@linaro.org> References: <20210208123821.19818-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Cleber Rosa , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There are some places where the conditional makefile support is the simplest solution. Now we don't expose CONFIG_TCG as a variable create a new one that can be checked for the check-help output. As check-tcg is a PHONY target we re-use check-softfloat to gate that as well. Signed-off-by: Alex Bennée Acked-by: Paolo Bonzini Message-Id: <20210202134001.25738-13-alex.bennee@linaro.org> -- 2.20.1 diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py index 25ee6887cf..cbbcba100d 100644 --- a/scripts/mtest2make.py +++ b/scripts/mtest2make.py @@ -110,6 +110,7 @@ def emit_suite(name, suite, prefix): print('ifneq ($(filter %s %s, $(MAKECMDGOALS)),)' % (target, prefix)) print('.tests += $(.test.$(SPEED).%s)' % (target, )) print('endif') + print('all-%s-targets += %s' % (prefix, target)) targets = {t['id']: [os.path.relpath(f) for f in t['filename']] for t in introspect['targets']} diff --git a/tests/Makefile.include b/tests/Makefile.include index ceaf3f0d6e..17dafdfe98 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -12,7 +12,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" -ifeq ($(CONFIG_TCG),y) +ifneq ($(filter $(all-check-targets), check-softfloat),) @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" endif