From patchwork Wed Jan 16 20:23:49 2019 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: 1026199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="JsOanjNO"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43fzMM2dDqz9sDP for ; Thu, 17 Jan 2019 07:29:19 +1100 (AEDT) Received: from localhost ([127.0.0.1]:46183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjroL-00028T-4j for incoming@patchwork.ozlabs.org; Wed, 16 Jan 2019 15:29:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjrjD-0006xg-O7 for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjrjA-0006LA-NL for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:23:58 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:39036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjrjA-0006Dz-FM for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:23:56 -0500 Received: by mail-wr1-x443.google.com with SMTP id t27so8485957wra.6 for ; Wed, 16 Jan 2019 12:23:56 -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=+KbacgjL9JJeISDLFI0i6I7/jVit7/Pa+3F212jRkHQ=; b=JsOanjNOXjGrvRr+ygf4YMQ5kTHq3be0w5HJbw+P0JeIVrly53LcWbEIIEts0YZnRu kHVxySoCbI9cCuaXgl2MaY5Lw22LYHOp7MkSsNAL1uKwskdQ/SoT0SM8tMRkLl07k2S6 Nv+ktCJQdovNoBgTZmFVwcu/NZc3gZvkH2hXo= 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=+KbacgjL9JJeISDLFI0i6I7/jVit7/Pa+3F212jRkHQ=; b=epXvzouCZR8EwumdGKcgtsDCXxI1u9+UBeSaelo/pD3RlGOpIScf6fu9azjl67N5Gs FpOJy5WOxEQLrt5Elg8KkwXCBeeXPnBRXnfIwoUlQbc7qqR18DAwi/ZaXvTbYZy7OMb6 QgWg3KtWgB07kt7vAxSRushVaw0CojGCpqODiKOuD+vcvwafZeIERWuXD5JiafKbbW5c 26wyjn/xiIdbsw+vXDgsggKhGBF/FdMnZmiwC9PJou+qayvmUYmLyr8I2GKzQSTgTezv ZDoXyxBh2W5LvrRYD9wJykly5EkGAWUE5jxSDefHr3KgZKrU4tSn54T5ZggJVWh6syl1 v3Vw== X-Gm-Message-State: AJcUuke3nA1xMe17g0f30ZsLrg7eRVFecFTttdf4ZAVZSHbtBRN4y06S mt+BX6npR0Eckbq70iAzMkpacQ== X-Google-Smtp-Source: ALg8bN7CjGUyRf5t25kfJLr1fePRI37nMt3ZxeAQMBgUoUDzVwVYzHp0IozAiz7YjDZDE51ZqvAxqQ== X-Received: by 2002:adf:fbc8:: with SMTP id d8mr8963170wrs.318.1547670235248; Wed, 16 Jan 2019 12:23:55 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id x15sm83022140wrs.27.2019.01.16.12.23.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 12:23:53 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 002423E1185; Wed, 16 Jan 2019 20:23:50 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 16 Jan 2019 20:23:49 +0000 Message-Id: <20190116202349.29272-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116202349.29272-1-alex.bennee@linaro.org> References: <20190116202349.29272-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:4864:20::443 Subject: [Qemu-devel] [PATCH v2 7/7] tests/Makfile: add check-softfloat rule 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: cohuck@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This adds a rule to run all of our softfloat tests. It is included as a pre-requisite to check-tcg and check-unit as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/Makefile.include | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 43888f3ad5..1de4f1b7dd 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -11,6 +11,7 @@ check-help: @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-softfloat Run FPU emulation tests" @echo " $(MAKE) check-acceptance Run all acceptance (functional) tests" @echo " $(MAKE) check-report.html Generates an HTML test report" @echo " $(MAKE) check-venv Creates a Python venv for tests" @@ -993,6 +994,18 @@ SF_MATH_RULES=$(patsubst %,check-softfloat-%, $(SF_MATH_OPS)) .PHONY: check-softfloat-ops check-softfloat-ops: $(SF_MATH_RULES) +# Finally a generic rule to test all of softfoat. If TCG isnt't +# enabled we define a null operation which skips the tests. + +.PHONY: check-softfloat +ifeq ($(CONFIG_TCG),y) +check-softfloat: check-softfloat-conv check-softfloat-compare check-softfloat-ops +else +check-softfloat: + $(call quiet-command, /bin/true, "FLOAT TEST", \ + "SKIPPED for non-TCG builds") +endif + # Per guest TCG tests LINUX_USER_TARGETS=$(filter %-linux-user,$(TARGET_DIRS)) @@ -1025,7 +1038,7 @@ clean-tcg-tests-%: build-tcg: $(BUILD_TCG_TARGET_RULES) .PHONY: check-tcg -check-tcg: $(RUN_TCG_TARGET_RULES) +check-tcg: check-softfloat $(RUN_TCG_TARGET_RULES) .PHONY: clean-tcg clean-tcg: $(CLEAN_TCG_TARGET_RULES) @@ -1107,7 +1120,7 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) check-tests/qapi-schema/doc-good.texi check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS)) check-block: $(patsubst %,check-%, $(check-block-y)) -check: check-qapi-schema check-unit check-qtest check-decodetree +check: check-qapi-schema check-unit check-softfloat check-qtest check-decodetree check-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))