All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Hannes Diethelm <hannes.diethelm@gmail.com>
Cc: xenomai@lists.linux.dev
Subject: Re: [PATCH] utils: test: show test name before running it
Date: Tue, 07 Jul 2026 15:43:21 +0200	[thread overview]
Message-ID: <87bjcix6di.fsf@xenomai.org> (raw)
In-Reply-To: <20260707110109.10253-1-hannes.diethelm@gmail.com> (Hannes Diethelm's message of "Tue, 7 Jul 2026 13:01:09 +0200")

Hannes Diethelm <hannes.diethelm@gmail.com> writes:

> This way, the running test is visible. This helps for longer running or
> freezed tests.
>
> The log is now shown after the test name.
>
> Signed-off-by: Hannes Diethelm <hannes.diethelm@gmail.com>
> ---
>  utils/evl-test | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/utils/evl-test b/utils/evl-test
> index fa3ef73..5139d09 100644
> --- a/utils/evl-test
> +++ b/utils/evl-test
> @@ -83,22 +83,23 @@ result=0
>  while : ; do
>        for t in $test_list; do
>  	  test \! -x $t && echo "$(basename $0): $(basename $t): no such test" && exit 2
> +	  echo -n "$(basename $t):"
>  	  # Swap stdout<->stderr for the test, capturing stderr into $log.
>  	  log=$($t $test_arg_list 3>&1 1>&2 2>&3)
>  	  status=$?
>  	  if test $status = 43; then
> -	      echo "$(basename $t): $log"
> +	      echo " $log"
>  	  else
> -	      test -n "$log" && echo "$log"
>  	      if test $status = 0; then
> -		  echo "$(basename $t): OK"
> +		  echo " OK"
>  	      elif test $status = 42; then
> -		  echo "$(basename $t): no kernel support"
> +		  echo " no kernel support"
>  	      else
> -		  echo "** $(basename $t): BROKEN"
> +		  echo " ** BROKEN"
>  		  result=$status
> -		  test x$keep_going = xfalse && break
>  	      fi
> +	      test -n "$log" && echo "$log"
> +	      test $result -ne 0 && test x$keep_going = xfalse && break
>  	  fi
>        done
>        test x$repeat = xfalse && break

Merged, thanks.

-- 
Philippe.

      reply	other threads:[~2026-07-07 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 11:01 [PATCH] utils: test: show test name before running it Hannes Diethelm
2026-07-07 13:43 ` Philippe Gerum [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=87bjcix6di.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=hannes.diethelm@gmail.com \
    --cc=xenomai@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.