testsuite: log version of shell and make as well

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.
This commit is contained in:
Zack Weinberg 2023-12-01 08:44:55 -05:00
parent 544875cc6e
commit 481dad1d74

View 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