Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): run tests with different shells as wel...



details:   https://anonhg.NetBSD.org/src/rev/cd08e037d2f0
branches:  trunk
changeset: 957144:cd08e037d2f0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Nov 20 00:24:21 2020 +0000

description:
make(1): run tests with different shells as well, reduce output

diffstat:

 usr.bin/make/test-variants.sh |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 198bccb42f93 -r cd08e037d2f0 usr.bin/make/test-variants.sh
--- a/usr.bin/make/test-variants.sh     Thu Nov 19 23:50:26 2020 +0000
+++ b/usr.bin/make/test-variants.sh     Fri Nov 20 00:24:21 2020 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: test-variants.sh,v 1.5 2020/10/23 17:59:25 rillig Exp $
+# $NetBSD: test-variants.sh,v 1.6 2020/11/20 00:24:21 rillig Exp $
 #
 # Build several variants of make and run the tests on them.
 #
@@ -24,7 +24,8 @@
        && env -i PATH="$PATH" USETOOLS="no" "$@" \
                sh -ce "make -ks all" \
        && size *.o make \
-       && env -i PATH="$PATH" USETOOLS="no" MALLOC_OPTIONS="JA" "$@" \
+       && env -i PATH="$PATH" USETOOLS="no" MALLOC_OPTIONS="JA" \
+               _MKMSG_TEST=":" "$@" \
                sh -ce "make -s test" \
        || fail
 }
@@ -178,4 +179,10 @@
 -Wno-error=conversion -Wno-error=sign-conversion -Wno-error=unused-macros \
 -Wno-error=unused-parameter -Wno-error=duplicated-branches"
 
+for shell in /usr/pkg/bin/bash /usr/pkg/bin/dash; do
+       if [ -x "$shell" ]; then
+               testcase USER_CPPFLAGS=-DDEFSHELL_CUSTOM="\\\"$shell\\\""
+       fi
+done
+
 test "$failed" = "no"



Home | Main Index | Thread Index | Old Index