public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Uladzimir Bely <ubely@ilbers.de>
Subject: [PATCH v2 03/12] scripts: Add option to directly specify avocado tags
Date: Fri,  3 Mar 2023 16:47:18 +0200	[thread overview]
Message-ID: <20230303144727.481716-4-amikan@ilbers.de> (raw)
In-Reply-To: <20230303144727.481716-1-amikan@ilbers.de>

From: Uladzimir Bely <ubely@ilbers.de>

Add to "ci_build.sh" option to specify avocado tags directly by passing
"--tags=<tags>" option.

For compatibility reasons, treat "-f" as "--tags=fast", if user
did not specify "--tags" option directly.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 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


  parent reply	other threads:[~2023-03-03 14:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03 14:47 [PATCH v2 00/12] Next avocado improvements​ Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 01/12] CI: Update Avocado version Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 02/12] CI: Add avocado version checking Anton Mikanovich
2023-03-03 14:47 ` Anton Mikanovich [this message]
2023-03-03 14:47 ` [PATCH v2 04/12] gitlab-ci.yml: Run dev tests set on push Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 05/12] CI: Set default QEMU timeout to 10 minutes Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 06/12] CI: Make quiet option to be set by default Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 07/12] CI: Remove norun option Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 08/12] CI: Enable sstate dir sharing Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 09/12] CI: Enable ccache " Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 10/12] CI: Add Jenkins pipeline configuration Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 11/12] CI: Update avocado install documentation Anton Mikanovich
2023-03-03 14:47 ` [PATCH v2 12/12] CI: Add documentation for test case creation Anton Mikanovich
2023-03-07  4:10 ` [PATCH v2 00/12] Next avocado improvements​ Uladzimir Bely

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=20230303144727.481716-4-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=ubely@ilbers.de \
    /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