From 481dad1d7437e17a153fd0176176980481609e61 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 1 Dec 2023 08:44:55 -0500 Subject: [PATCH] testsuite: log version of shell and make as well MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/local.at b/tests/local.at index db49f84a9..7265a090f 100644 --- a/tests/local.at +++ b/tests/local.at @@ -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 -- 2.47.3