GNU bug report logs - #49309
Feature Request: Automake script based tests to print the test name before running it

Previous Next

Package: automake;

Reported by: Kasper k <kasperkantz <at> outlook.com>

Date: Thu, 1 Jul 2021 07:23:02 UTC

Severity: wishlist

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 49309 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: kasperkantz <at> outlook.com
Cc: 49309 <at> debbugs.gnu.org
Subject: Re: bug#49309: Feature Request: Automake script based tests to print
 the test name before running it
Date: Sun, 26 Sep 2021 19:40:33 -0600
Back on this suggestion ...

    It would be very helpful if a new option AM_TESTS_NAME=1 
    ...
        RUNNING $name

Looking into it now, I believe this can be done already using
AM_TESTS_ENVIRONMENT (or by an individual user with
TESTS_ENVIRONMENT). The test name is the shell variable $f at that
point. Thus:

  make AM_TESTS_ENVIRONMENT='echo RUNNING: "$$f";' check 

seems to give the desired output for me.  Although the use of $f here is
not documented, in practice it is never going to change.

Seems way simpler than adding this to Automake ... --best, karl.




This bug report was last modified 3 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.