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

This commit is contained in:
rillig 2020-11-20 00:24:21 +00:00
parent 8550207eb8
commit 92ae6bc227
1 changed files with 9 additions and 2 deletions

View File

@ -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 @@ testcase() {
&& 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 @@ testcase USE_GCC10=yes GCC10BASE=$HOME/pkg/gcc10 USER_CFLAGS="\
-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"