]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
testsuite: log version of shell and make as well
authorZack Weinberg <zack@owlfolio.org>
Fri, 1 Dec 2023 13:44:55 +0000 (08:44 -0500)
committerZack Weinberg <zack@owlfolio.org>
Fri, 1 Dec 2023 13:44:55 +0000 (08:44 -0500)
A lot of bugs recently have been due to unexpected changes in shell
and/or make behavior, so let’s log their versions in testsuite.log
to make it easier to figure out when that’s the problem.

Some shells don’t recognize --version but we still get an indication
in the logfile of which shell it is, e.g.

$ make check TESTSUITEFLAGS=1 SHELL=/bin/dash; grep dash tests/testsuite.log
../../tests/local.at:25: /bin/dash --version
/bin/dash: 0: Illegal option --

* tests/local.at: Add ${CONFIG_SHELL-$SHELL} and $MAKE to AT_TESTED.

tests/local.at

index db49f84a9344568c957de8b4caa5dedd5e00195a..7265a090fbc5d43cce07c75c4af0fdcac62cc0d5 100644 (file)
@@ -25,7 +25,7 @@ m4_pattern_allow([^m4_(define|shift)$])
 AT_TESTED([autom4te autoconf autoheader autoupdate autoreconf ifnames])
 
 # System-provided programs that this package relies on
-AT_TESTED([$PERL $M4])
+AT_TESTED([$M4 $PERL ${CONFIG_SHELL-$SHELL} $MAKE])
 
 # Enable colored test output.
 AT_COLOR_TESTS