From nobody Tue Feb 10 05:41:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1594107091; cv=none; d=zohomail.com; s=zohoarc; b=c2Dppn+213ui0KpF1qkBI1xAw9ZlPavFfmS5dR5Xkk4ayC1ZUb0PHbDpEitXuDjl+t79EwvdbMa+InR62FX6kyuVA/Pl9rEkoFmCF01fqVp8va2EJnErDCx1plBHWCCPYGzW7Wo+DfaPwCtyFQ4xRhT55lJLmiEGJvg19m/zu98= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594107091; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9byPofvUmGL/7sYy1T9aOuk75YT7bXG4EnLPH7NVVfk=; b=YpE7tiFq8EhwEAbvtw4VHcayVR+VEkrbankIcj3FR4Gle3ITGRlr36qjLRVtOXG8tppZ4E3BHphJY6Vzni8dZOrMk8S/ZOkQKbHjBL6qXNkrFANTBcVCj5iavMwWrJUFLWiELj5EVJFPtOH0eLn6QB7D/1qiN5WI+ylXi2FN9Jk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594107091515363.5584087297326; Tue, 7 Jul 2020 00:31:31 -0700 (PDT) Received: from localhost ([::1]:46506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsi4g-0004BR-9R for importer@patchew.org; Tue, 07 Jul 2020 03:31:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jshxw-0001gq-So for qemu-devel@nongnu.org; Tue, 07 Jul 2020 03:24:32 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:37243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jshxv-0006hX-1K for qemu-devel@nongnu.org; Tue, 07 Jul 2020 03:24:32 -0400 Received: by mail-wm1-x32e.google.com with SMTP id o2so45353069wmh.2 for ; Tue, 07 Jul 2020 00:24:30 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q3sm2154570wmq.22.2020.07.07.00.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 00:24:27 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2B77B1FFBE; Tue, 7 Jul 2020 08:09:02 +0100 (BST) 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=9byPofvUmGL/7sYy1T9aOuk75YT7bXG4EnLPH7NVVfk=; b=XmVYKRqfcRhuzuspcfM/XBV0n8dIDh9HipAQyYLUW1AXX4ATrKaskTzLkU0nQISf6L xHvqxtodYQDnnA7rU4EUXN4smvRkrBgOi6++goUgglCGg/KVovPX9WltL8pEeQxQhRFy CffZWt4rd8mC5jofSAb+EnYHI0jA3wCDQIjVcyiPC9BN6NZ+5dH0Z+sNFJohXbhgP65u DmoVGRQ7vILfLM/gKjgFRlBnblzAdvtHu9lvN1Qt3/o6uPi5FIksPB3nOkSud5jSbqhT 09pR07LPh8lGKrkHPIiKvS93uXaXWhrwkdizNrgczJh4aTEolbQY+rV0mQE5mHrhfhlu V11w== 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=9byPofvUmGL/7sYy1T9aOuk75YT7bXG4EnLPH7NVVfk=; b=Ikzp3JnehjkfWNY52frI9vQlvahlawwWFbaBSTHu/7QWCsMV3mQcoHbuL+7ifLsxUv PZ2xygSUaZUrbOCbZCU4KpSsmLxiTB6U1TPOxpHyJp3wZZmYs7MlRDMYmGl4nAYFODpp lUFGbkFNxnaKNETr0ZIgJdAIOI82XoRfkQ6nH5FNhMEtJgzZ9mtCneka92LzeB1LC9HG hc0eT041bbblTm0Toofu+EE0dPkSy9yrvammzrL2X2arUDs/ivMAKZ9afLvAkgnGUgjq rBzFH2aLSCetYVb/mmzOAJsnmaqCpAcD0XYkyVo4DuR4olLr/x/hMNwAeKJitTQgWcgB eKsA== X-Gm-Message-State: AOAM533N0Y1G1OSFXvMo80v7NUcTANs6nr6qDUF0XhbA1AN4Vjxz1bWB j9TAf0/CmG4q+yHQJcaRVczefQ== X-Google-Smtp-Source: ABdhPJzoAOMhDvTlY6iKCJdeGotulybCr2cANQYvYm5kgOhbHJpXArRyfF6qV6FTcHcY6kE+Pfte3w== X-Received: by 2002:a1c:96ce:: with SMTP id y197mr2649506wmd.86.1594106669604; Tue, 07 Jul 2020 00:24:29 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 37/41] testing: add check-build target Date: Tue, 7 Jul 2020 08:08:54 +0100 Message-Id: <20200707070858.6622-38-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200707070858.6622-1-alex.bennee@linaro.org> References: <20200707070858.6622-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=_AUTOLEARN 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: Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) If we want to continue to split build and check phase it seems like a good idea to allow building of the tests during our multi-threaded build phase. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Cc: Daniel P. Berrang=C3=A9 Message-Id: <20200701135652.1366-40-alex.bennee@linaro.org> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83e38ea19f3d..b0e5417146bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,7 @@ include: - make -j"$JOBS" - if test -n "$MAKE_CHECK_ARGS"; then - make $MAKE_CHECK_ARGS ; + make -j"$JOBS" $MAKE_CHECK_ARGS ; fi =20 .native_test_job_template: &native_test_job_definition @@ -60,6 +60,7 @@ build-system-ubuntu-main: TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu lm32-= softmmu moxie-softmmu microblazeel-softmmu mips64el-softmmu m68k-softmmu ppc= -softmmu riscv64-softmmu sparc-softmmu + MAKE_CHECK_ARGS: check-build artifacts: paths: - build @@ -90,6 +91,7 @@ build-system-fedora-alt: TARGETS: tricore-softmmu unicore32-softmmu microblaze-softmmu mips-sof= tmmu riscv32-softmmu s390x-softmmu sh4-softmmu sparc64-softmmu x86_64-sof= tmmu xtensa-softmmu nios2-softmmu or1k-softmmu + MAKE_CHECK_ARGS: check-build artifacts: paths: - build @@ -124,6 +126,7 @@ build-system-fedora-disabled: --disable-qom-cast-debug --disable-spice --disable-vhost-vsock --disable-vhost-net --disable-vhost-crypto --disable-vhost-user TARGETS: i386-softmmu ppc64-softmmu mips64-softmmu i386-linux-user + MAKE_CHECK_ARGS: check-build artifacts: paths: - build diff --git a/tests/Makefile.include b/tests/Makefile.include index c316e0d66475..94b1cc8302ed 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -22,6 +22,8 @@ endif @echo " $(MAKE) check-venv Creates a Python venv for tests" @echo " $(MAKE) check-clean Clean the tests and related data" @echo + @echo "The following are useful for CI builds" + @echo " $(MAKE) check-build Build most test binaris" @echo " $(MAKE) get-vm-images Downloads all images used by accepta= nce tests, according to configured targets (~350 MB each, 1.5 GB max)" @echo @echo @@ -649,6 +651,10 @@ $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-= qtest-%: %-softmmu/all $(c QTEST_QEMU_BINARY=3D$*-softmmu/qemu-system-$* \ QTEST_QEMU_IMG=3Dqemu-img$(EXESUF)) =20 +build-qtest: $(patsubst %, %-softmmu/all, $(QTEST_TARGETS)) $(check-qtest-= y) + +build-unit: $(check-unit-y) + check-unit: $(check-unit-y) $(call do_test_human, $^) =20 @@ -680,7 +686,6 @@ check-report.tap: $(patsubst %,check-report-qtest-%.tap= , $(QTEST_TARGETS)) check FP_TEST_BIN=3D$(BUILD_DIR)/tests/fp/fp-test =20 # the build dir is created by configure -.PHONY: $(FP_TEST_BIN) $(FP_TEST_BIN): config-host.h $(test-util-obj-y) $(call quiet-command, \ $(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V=3D"$(V)" $(notdir $@), \ @@ -814,9 +819,10 @@ check-softfloat-ops: $(SF_MATH_RULES) =20 .PHONY: check-softfloat ifeq ($(CONFIG_TCG),y) -check-softfloat: check-softfloat-conv check-softfloat-compare check-softfl= oat-ops +build-softfloat: $(FP_TEST_BIN) +check-softfloat: build-softfloat check-softfloat-conv check-softfloat-comp= are check-softfloat-ops else -check-softfloat: +build-softfloat check-softfloat: $(call quiet-command, /bin/true, "FLOAT TEST", \ "SKIPPED for non-TCG builds") endif @@ -955,7 +961,8 @@ check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGET= S)) ifeq ($(CONFIG_TOOLS),y) check-block: $(patsubst %,check-%, $(check-block-y)) endif -check: check-block check-qapi-schema check-unit check-softfloat check-qtes= t check-decodetree +check-build: build-unit build-softfloat build-qtest + check-clean: rm -rf $(check-unit-y) tests/*.o tests/*/*.o $(QEMU_IOTESTS_HELPERS-y) rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(tar= get)-y:%=3Dtests/qtest/%$(EXESUF))) $(check-qtest-generic-y:%=3Dtests/qtest= /%$(EXESUF))) @@ -963,6 +970,8 @@ check-clean: rm -f tests/qtest/dbus-vmstate1-gen-timestamp rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR) =20 +check: check-block check-qapi-schema check-unit check-softfloat check-qtes= t check-decodetree + clean: check-clean =20 # Build the help program automatically --=20 2.20.1