From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7203376969598107648 X-Received: by 2002:a05:6808:3007:b0:37d:815b:c352 with SMTP id ay7-20020a056808300700b0037d815bc352mr1900726oib.22.1677166900316; Thu, 23 Feb 2023 07:41:40 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:4811:0:b0:690:d969:257b with SMTP id c17-20020a9d4811000000b00690d969257bls1261507otf.4.-pod-prod-gmail; Thu, 23 Feb 2023 07:41:39 -0800 (PST) X-Google-Smtp-Source: AK7set+yOK/vUhgZSNqGYr+mSmMiywDyFJ2VrARRnp6NssHMgnV2VlYIuW38c33wjvsuw+CEadnO X-Received: by 2002:a9d:150:0:b0:68b:c92f:9017 with SMTP id 74-20020a9d0150000000b0068bc92f9017mr2909793otu.34.1677166899753; Thu, 23 Feb 2023 07:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677166899; cv=none; d=google.com; s=arc-20160816; b=UFMlgai8GqJq8E46sBvjt/+aB9vYO0oD8aGBnKgQ3DQW/D1Va0MML84TFkPDXWdwcP zLVjEhPMwE97bCd5fX0bSrtLHuUvaECoTi42+NR6SYjF795v2y3iNZi6TkP+o0R0yw4n JRKSJMh2K39RbIVGcj3DsoIMppKnEcXPf2bz8EjD5JYsfRsuOvbIWFwsEy5eZjlyNj61 aFAsUYs9cJnGnVcsfNk7V8yhibWtRPdqLUEq1ADVKoVz7qQ1vNJ+vWPEqE+h1zkCrOu6 6xB7IfGFY8bbtKhyakBUZulAC/bF1PxkG/73gYg8r8N6wNkStC+b/6LjX7ZKVzm8cZlb V5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=pL0ujZOCjXuBBw+ELSIJqyx3lgxlKbXdD4TdaBia/gk=; b=NuM9VhWT6JlUiB7mIwxtOSmqZmNWLfjoQ2ZDyhQrE6SecaALFiPWqmtpMXKIDARVSf JOzGkkh/a4O57xTDTwwhDZEVtn8cbQJNL8buv+rCL9DM2L85T6EFvy6nMWbb3FlQG8Eh NbEjpGcW8zyOv1+RF5wYzOBPEdqYf6YBgKRDglWkCjBuvsB80StHRP8eZ6kGiTjbN1ET ELMREn4H1fO9XqJATb+pcNCgfN+zIS2UCHnQdD8pLPfgmTI3Kc3h6Xm9W4p0G2j9fLEI ogVHR38lB2L5kIZlK67uXlExeRDsP2aZ/ykNZrzMcDSrLCPwFHoIiA5fcRKHoxxMTQVi rJ+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id cy21-20020a056830699500b00686566f6f48si839405otb.0.2023.02.23.07.41.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 07:41:39 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from user-B660.. ([85.254.74.12]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 31NFfWLO020691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 16:41:38 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Uladzimir Bely Subject: [PATCH 03/11] scripts: Add option to directly specify avocado tags Date: Thu, 23 Feb 2023 17:41:23 +0200 Message-Id: <20230223154131.132362-4-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230223154131.132362-1-amikan@ilbers.de> References: <20230223154131.132362-1-amikan@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: VNIkqhVUkiFa From: Uladzimir Bely Add to "ci_build.sh" option to specify avocado tags directly by passing "--tags=" option. For compatibility reasons, tread "-f" as "--tags=fast", if user did not specify "--tags" option directly. Signed-off-by: Uladzimir Bely --- scripts/ci_build.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index e37114b..7382862 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -49,7 +49,7 @@ show_help() { echo " -b, --base BASE_DIR set path to base directory. If not set," echo " the tests will be started in current path." echo " -d, --debug enable debug bitbake output." - echo " -f, --fast cross build reduced set of configurations." + echo " -T, --tags specify basic avocado tags." echo " -q, --quiet suppress verbose bitbake output." echo " -n, --norun do not execute QEMU run tests." echo " -t, --timeout SEC specify time in seconds to wait before stop QEMU." @@ -61,7 +61,6 @@ show_help() { echo " 3 if invalid parameters are passed." } -TAGS="full" QUIET="0" TIMEOUT=300 @@ -82,9 +81,14 @@ do -d|--debug) VERBOSE="--show=app,test" ;; + -T|--tags) + TAGS="$2" + shift + ;; -f|--fast) # Start build for the reduced set of configurations - TAGS="fast" + FAST="1" + echo "warning: deprecated parameter '$key', consider using '-T fast' instead" ;; -q|--quiet) QUIET="1" @@ -109,6 +113,14 @@ do shift done +if [ -z "$TAGS" ]; then + if [ -n "$FAST" ]; then + TAGS="fast" + else + TAGS="full" + fi +fi + if [ -n "$NORUN" ]; then TAGS="$TAGS,-startvm" else -- 2.34.1