public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] ci: Add option to build/test a reduced set of configurations
Date: Thu, 22 Nov 2018 15:52:37 +0300	[thread overview]
Message-ID: <fb2b2792-92f3-765c-b4e5-1379f54950a2@ilbers.de> (raw)
In-Reply-To: <20181119095122.7010-1-mosipov@ilbers.de>

On 11/19/18 12:51 PM, Maxim Yu. Osipov wrote:
> Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>

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

      reply	other threads:[~2018-11-22 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-19  9:51 Maxim Yu. Osipov
2018-11-22 12:52 ` Maxim Yu. Osipov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb2b2792-92f3-765c-b4e5-1379f54950a2@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox