From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6625507181340917760 X-Received: by 2002:a50:b7bc:: with SMTP id h57mr182236ede.5.1542891165444; Thu, 22 Nov 2018 04:52:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:9688:: with SMTP id w8-v6ls2203288ejx.9.gmail; Thu, 22 Nov 2018 04:52:45 -0800 (PST) X-Google-Smtp-Source: AJdET5esN0YZ/B2hvFp0MXENaBSa/fFUE0vSa0EcLhz9ubJ9Oo2NYRKS4GgAwr9HiT2uQ89wHoof X-Received: by 2002:a17:906:6899:: with SMTP id n25-v6mr2049969ejr.11.1542891165002; Thu, 22 Nov 2018 04:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542891164; cv=none; d=google.com; s=arc-20160816; b=I6Bbu7rxJJO+mJLxCaFfbI+BuUW7r9uXoFMvq04URzThfrGBFDV+4GEpm2DhlpWvj7 BnTHi2AvaEwYIiZBx6NmHtc2ipnObI09KLYe8CvNybwGnE9vBHhU2hAU6EzE6CtqaTbD stFrL8x6BHIUfohDi5T/2pmMOcrxjQrivkqdalHAHUpOsxOicnXrFrw2GeZOBROYQvsc 23+aWmbgFYrN6ebQQEKKisaY6JWjLCi8WKuByi0xsskSv903FPRQch/hnCgfvfQhyFWR 42j1rc6d6NRDAlfixxyMg6MNadge3ovxoum8l8hIRK50T/6RDK3/x6cfpZqcj27fdgh9 I/EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:references:to:from:subject; bh=A+7sj18jSBlsWngiyGcxM3TURNfY/5pyxJBOGEi7yJY=; b=XJQjPnhuOFfafpbHofYZ8GI5z+glQeJmFZ2luaVG6DA/pVFAYghZjyG8HqAoyf3foQ g1WhQv6CsSe/02+gjBJKxIxmp2uJJ3i5bg8Ttkf3mO4Vf4lCZFS+ouEempqfh10eFLbj TRb/AuCdH80vHJMe3kwAc50oE1NHyT1I1W+WAtBiDsqEOKby65m22x7EqNL681EIRauO C3jnKQYdThzErjvb1hgy5/efK9IvzlsFU9PRJ0h/zA/t+V3AK2CcFY6XVFJTVQ07r2X2 FhzbHPvjUNpJs9X6DDSqU1pr5BRvrgVCu2ScmRPMh4Ec43OVjuF+HA3Fn+uQixbQxB2p w7Hg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id n20-v6si1359827edt.3.2018.11.22.04.52.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 04:52:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id wAMCqgLX022986 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Thu, 22 Nov 2018 13:52:44 +0100 Subject: Re: [PATCH] ci: Add option to build/test a reduced set of configurations From: "Maxim Yu. Osipov" To: isar-users@googlegroups.com References: <20181119095122.7010-1-mosipov@ilbers.de> Organization: ilbers GmbH Message-ID: Date: Thu, 22 Nov 2018 15:52:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181119095122.7010-1-mosipov@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: vk7D60Q4NPRR On 11/19/18 12:51 PM, Maxim Yu. Osipov wrote: > Signed-off-by: Maxim Yu. Osipov Applied to the 'next'. > --- > scripts/ci_build.sh | 18 ++++++++++++------ > scripts/vm_smoke_test | 26 ++++++++++++++++++-------- > 2 files changed, 30 insertions(+), 14 deletions(-) > > diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh > index d2ed6fe..d5e4d41 100755 > --- a/scripts/ci_build.sh > +++ b/scripts/ci_build.sh > @@ -19,7 +19,7 @@ BUILD_DIR=./build > BB_ARGS="-v" > > show_help() { > - echo "This script builds all the default Isar images." > + echo "This script builds the default Isar images." > echo > echo "Usage:" > echo " $0 [params]" > @@ -29,6 +29,7 @@ show_help() { > echo " the build will be started in current path." > echo " -c, --cross enable cross-compilation." > echo " -d, --debug enable debug bitbake output." > + echo " -f, --fast build reduced set of configurations." > echo " -q, --quiet suppress verbose bitbake output." > echo " --help display this message and exit." > echo > @@ -57,6 +58,9 @@ do > -d|--debug) > BB_ARGS="$BB_ARGS -d" > ;; > + -f|--fast) > + FAST_BUILD="1" > + ;; > -q|--quiet) > BB_ARGS="" > ;; > @@ -77,14 +81,16 @@ source isar-init-build-env $BUILD_DIR > > if [ -n "$CROSS_BUILD" ]; then > sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf > +fi > + > +if [ -n "$FAST_BUILD" ]; then > + # Start build for the reduced set of configurations > + # Enforce cross-compilation to speed up the build > + sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf > bitbake $BB_ARGS \ > - multiconfig:qemuarm-jessie:isar-image-base \ > multiconfig:qemuarm-stretch:isar-image-base \ > - multiconfig:qemuarm-buster:isar-image-base \ > multiconfig:qemuarm64-stretch:isar-image-base \ > - multiconfig:qemuamd64-jessie:isar-image-base \ > - multiconfig:qemuamd64-stretch:isar-image-base \ > - multiconfig:qemuamd64-buster:isar-image-base > + multiconfig:qemuamd64-stretch:isar-image-base > else > # Start build for all possible configurations > bitbake $BB_ARGS \ > diff --git a/scripts/vm_smoke_test b/scripts/vm_smoke_test > index 76c2e16..d497653 100755 > --- a/scripts/vm_smoke_test > +++ b/scripts/vm_smoke_test > @@ -84,12 +84,13 @@ run_test () { > } > > show_help() { > - echo "This script tests all the default Isar images in QEMU." > + echo "This script tests the Isar images for default targets in QEMU." > echo > echo "Usage:" > echo " $0 [params]" > echo > echo "Parameters:" > + echo " -f,--fast test reduced set of supported targets." > echo " -o,--output FILE specify file to store console output." > echo " The default is: /tmp/isar_console" > echo " -p,--pid-file FILE specify file to store QEMU process PID." > @@ -125,6 +126,9 @@ do > PID_FILE=$2 > shift > ;; > + -f|--fast) > + FAST_BUILD="1" > + ;; > -q|--quiet) > VERBOSE=0 > ;; > @@ -142,19 +146,25 @@ do > done > > # ARM machine > -run_test arm jessie > +if [ -z "$FAST_BUILD" ]; then > + run_test arm jessie > + run_test arm buster > +fi > run_test arm stretch > -run_test arm buster > > # AMD64 machine > -run_test amd64 jessie > +if [ -z "$FAST_BUILD" ]; then > + run_test amd64 jessie > + run_test amd64 buster > +fi > run_test amd64 stretch > -run_test amd64 buster > > # i386 machine > -run_test i386 jessie > -run_test i386 stretch > -run_test i386 buster > +if [ -z "$FAST_BUILD" ]; then > + run_test i386 jessie > + run_test i386 stretch > + run_test i386 buster > +fi > > # ARM64 machine > run_test arm64 stretch > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov