From patchwork Mon Oct 31 14:00:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bertrand Marquis X-Patchwork-Id: 13025961 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6ABF8FA3744 for ; Mon, 31 Oct 2022 14:01:44 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.432889.685610 (Exim 4.92) (envelope-from ) id 1opVM6-0005MV-Tu; Mon, 31 Oct 2022 14:01:34 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 432889.685610; Mon, 31 Oct 2022 14:01:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1opVM6-0005LU-Qn; Mon, 31 Oct 2022 14:01:34 +0000 Received: by outflank-mailman (input) for mailman id 432889; Mon, 31 Oct 2022 14:01:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1opVM4-0004Ib-Oq for xen-devel@lists.xenproject.org; Mon, 31 Oct 2022 14:01:32 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 83ff3c8c-5924-11ed-8fd0-01056ac49cbb; Mon, 31 Oct 2022 15:01:28 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DDE911FB; Mon, 31 Oct 2022 07:01:37 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A3373F5A1; Mon, 31 Oct 2022 07:01:30 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 83ff3c8c-5924-11ed-8fd0-01056ac49cbb From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: michal.orzel@amd.com, Doug Goldstein , Stefano Stabellini Subject: [PATCH v3 4/4] automation: Add CI test jobs for Yocto Date: Mon, 31 Oct 2022 14:00:56 +0000 Message-Id: <00335fd0abaee077c09a33ec6c3ae93ddce30f5b.1667224593.git.bertrand.marquis@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 From: Michal Orzel Populate test jobs for Yocto based tests using the provided containers. Due to the size restrictions, it is currently not possible to split the build and run tasks, therefore everything is done in a single step. Test jobs for the supported Yocto targets are generic to avoid the necessity to add new ones after each Yocto release. The only thing required to be changed after updating the containers is the variable YOCTO_VERSION stored in a .yocto-test template. Signed-off-by: Michal Orzel --- Changes in v3: - patch added --- automation/gitlab-ci/test.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index fc0884b12082..44febcf97262 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -52,6 +52,18 @@ tags: - x86_64 +.yocto-test: + extends: .test-jobs-common + script: + - ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD} + variables: + YOCTO_VERSION: kirkstone + CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD} + artifacts: + paths: + - 'logs/*' + when: always + # Test jobs build-each-commit-gcc: extends: .test-jobs-common @@ -186,3 +198,25 @@ qemu-smoke-x86-64-clang-pvh: - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee ${LOGFILE} needs: - debian-unstable-clang-debug + +# Yocto test jobs +yocto-qemuarm64: + extends: .yocto-test + variables: + YOCTO_BOARD: qemuarm64 + tags: + - arm64 + +yocto-qemuarm: + extends: .yocto-test + variables: + YOCTO_BOARD: qemuarm + tags: + - arm32 + +yocto-qemux86-64: + extends: .yocto-test + variables: + YOCTO_BOARD: qemux86-64 + tags: + - x86_64