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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5493FC61DA3 for ; Tue, 21 Feb 2023 17:35:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA5B8859CD; Tue, 21 Feb 2023 18:35:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Wy20hQti"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 53C9A859EE; Tue, 21 Feb 2023 18:35:45 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3EE0E858D6 for ; Tue, 21 Feb 2023 18:35:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF24961158; Tue, 21 Feb 2023 17:35:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14450C433D2; Tue, 21 Feb 2023 17:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677000940; bh=S+eg9xziYzkRrlgXW5Y1y0DBoWqsbEZR9KclgUEE7dU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wy20hQtiQvsdCXRLgjC4RjWmNdUQy9/Wjl8Ce/RPMZ7RfBXZjDrDZQeauAzmt91xg ML/SWsX/wxrhf04JrQ+2J1prOt0d4Q4TGUULon85m7C+P0l31RNQPDsFrSwzttOUtR nFOQCY1h99haHcffRwLN4AJzZ8JQHb3WOEnrhsBsnKo3oAsKecqVqAMC6st5AkYBnE msguVtc2ytz7PAWxxl0PxDAILjwyDyYMSGkq1aZZvoruuIy8BWCON1t7OIMRl98MhU nVRhSnIZ+lB3mlgPEzHGekAmric+Mupg6joUYD8Q5rV/8xgIOlWO0jZDRjivFbVlSV 3SLXBjZ92D/Fg== Received: by pali.im (Postfix) id E8CB7708; Tue, 21 Feb 2023 18:35:36 +0100 (CET) Date: Tue, 21 Feb 2023 18:35:36 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tom Rini Cc: u-boot@lists.denx.de Subject: Re: [PATCH] CI: Update test/nokia_rx51_test.sh to use prebuilt images Message-ID: <20230221173536.mcph4tucpcdbtxyw@pali> References: <20230221162229.2845021-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230221162229.2845021-1-trini@konsulko.com> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Tuesday 21 February 2023 11:22:29 Tom Rini wrote: > From: Pali Rohár > > Now that the Dockerfile creates images which have the binaries we > require included, have CI make symlinks for them and update the existing > script to support this. > > Signed-off-by: Tom Rini > --- > Pali, since you posted this in a thread as untested, can you please > reply with a S-o-b tag? I tweaked it slightly while testing. Thanks. If it works fine then OK. Signed-off-by: Pali Rohár > --- > .azure-pipelines.yml | 9 ++++++++- > .gitlab-ci.yml | 11 +++++++++-- > test/nokia_rx51_test.sh | 24 ++++++++++++++++-------- > 3 files changed, 33 insertions(+), 11 deletions(-) > > diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml > index 8327edf87aa1..30025ff7517e 100644 > --- a/.azure-pipelines.yml > +++ b/.azure-pipelines.yml > @@ -2,7 +2,7 @@ variables: > windows_vm: windows-2019 > ubuntu_vm: ubuntu-22.04 > macos_vm: macOS-12 > - ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20230126-10Feb2023 > + ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20230126-17Feb2023 > # Add '-u 0' options for Azure pipelines, otherwise we get "permission > # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer", > # since our $(ci_runner_image) user is not root. > @@ -187,6 +187,13 @@ stages: > options: $(container_option) > steps: > - script: | > + mkdir nokia_rx51_tmp > + ln -s /opt/nokia/u-boot-gen-combined nokia_rx51_tmp/ > + ln -s /opt/nokia/qemu-n900.tar.gz nokia_rx51_tmp/ > + ln -s /opt/nokia/kernel_2.6.28-20103103+0m5_armel.deb nokia_rx51_tmp/ > + ln -s /opt/nokia/libc6_2.5.1-1eglibc27+0m5_armel.deb nokia_rx51_tmp/ > + ln -s /opt/nokia/busybox_1.10.2.legal-1osso30+0m5_armel.deb nokia_rx51_tmp/ > + ln -s /opt/nokia/qemu-system-arm nokia_rx51_tmp/ > export PATH=/opt/gcc-12.2.0-nolibc/arm-linux-gnueabi/bin:$PATH > test/nokia_rx51_test.sh > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > index c3ceca2974d3..e320a24ef31e 100644 > --- a/.gitlab-ci.yml > +++ b/.gitlab-ci.yml > @@ -2,7 +2,7 @@ > > # Grab our configured image. The source for this is found > # in the u-boot tree at tools/docker/Dockerfile > -image: trini/u-boot-gitlab-ci-runner:jammy-20230126-10Feb2023 > +image: trini/u-boot-gitlab-ci-runner:jammy-20230126-17Feb2023 > > # We run some tests in different order, to catch some failures quicker. > stages: > @@ -213,7 +213,14 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites: > Run tests for Nokia RX-51 (aka N900): > stage: testsuites > script: > - - export PATH=/opt/gcc-12.2.0-nolibc/arm-linux-gnueabi/bin:$PATH; > + - mkdir nokia_rx51_tmp; > + ln -s /opt/nokia/u-boot-gen-combined nokia_rx51_tmp/; > + ln -s /opt/nokia/qemu-n900.tar.gz nokia_rx51_tmp/; > + ln -s /opt/nokia/kernel_2.6.28-20103103+0m5_armel.deb nokia_rx51_tmp/; > + ln -s /opt/nokia/libc6_2.5.1-1eglibc27+0m5_armel.deb nokia_rx51_tmp/; > + ln -s /opt/nokia/busybox_1.10.2.legal-1osso30+0m5_armel.deb nokia_rx51_tmp/; > + ln -s /opt/nokia/qemu-system-arm nokia_rx51_tmp/; > + export PATH=/opt/gcc-12.2.0-nolibc/arm-linux-gnueabi/bin:$PATH; > test/nokia_rx51_test.sh > > # Check for any pylint regressions > diff --git a/test/nokia_rx51_test.sh b/test/nokia_rx51_test.sh > index a516ec2967c3..dca9ef3027b7 100755 > --- a/test/nokia_rx51_test.sh > +++ b/test/nokia_rx51_test.sh > @@ -83,8 +83,10 @@ echo > > # Download qflasher and nolo images > # This is proprietary qemu flasher tool with first stage images, but license allows non-commercial redistribution > -wget -c http://repository.maemo.org/qemu-n900/qemu-n900.tar.gz > -tar -xf qemu-n900.tar.gz > +if ! test -f qflasher || ! test -f xloader-qemu.bin || ! test -f secondary-qemu.bin; then > + test -f qemu-n900.tar.gz || wget -c http://repository.maemo.org/qemu-n900/qemu-n900.tar.gz > + tar -xf qemu-n900.tar.gz > +fi > > # Download Maemo script u-boot-gen-combined > if ! test -f u-boot-gen-combined; then > @@ -94,16 +96,22 @@ if ! test -f u-boot-gen-combined; then > fi > > # Download Maemo fiasco kernel > -wget -c http://repository.maemo.org/pool/maemo5.0/free/k/kernel/kernel_2.6.28-20103103+0m5_armel.deb > -dpkg -x kernel_2.6.28-20103103+0m5_armel.deb kernel_2.6.28 > +if ! test -d kernel_2.6.28; then > + test -f kernel_2.6.28-20103103+0m5_armel.deb || wget -c http://repository.maemo.org/pool/maemo5.0/free/k/kernel/kernel_2.6.28-20103103+0m5_armel.deb > + dpkg -x kernel_2.6.28-20103103+0m5_armel.deb kernel_2.6.28 > +fi > > # Download Maemo libc > -wget -c http://repository.maemo.org/pool/maemo5.0/free/g/glibc/libc6_2.5.1-1eglibc27+0m5_armel.deb > -dpkg -x libc6_2.5.1-1eglibc27+0m5_armel.deb libc6_2.5.1 > +if ! test -d libc6_2.5.1; then > + test -f libc6_2.5.1-1eglibc27+0m5_armel.deb || wget -c http://repository.maemo.org/pool/maemo5.0/free/g/glibc/libc6_2.5.1-1eglibc27+0m5_armel.deb > + dpkg -x libc6_2.5.1-1eglibc27+0m5_armel.deb libc6_2.5.1 > +fi > > # Download Maemo busybox > -wget -c http://repository.maemo.org/pool/maemo5.0/free/b/busybox/busybox_1.10.2.legal-1osso30+0m5_armel.deb > -dpkg -x busybox_1.10.2.legal-1osso30+0m5_armel.deb busybox_1.10.2 > +if ! test -d busybox_1.10.2; then > + test -f busybox_1.10.2.legal-1osso30+0m5_armel.deb || wget -c http://repository.maemo.org/pool/maemo5.0/free/b/busybox/busybox_1.10.2.legal-1osso30+0m5_armel.deb > + dpkg -x busybox_1.10.2.legal-1osso30+0m5_armel.deb busybox_1.10.2 > +fi > > echo > echo "=======================================" > -- > 2.34.1 >