diff --git a/Makefile b/Makefile index 1df191108824..229149142ac2 100644 --- a/Makefile +++ b/Makefile @@ -217,6 +217,7 @@ kernel: buildkernel installkernel # upgrade_checks: @if ! (cd ${.CURDIR}/tools/regression/usr.bin/make && \ + PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \ PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \ then \ (cd ${.CURDIR} && make make); \ diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index 777dd7f716b5..4c2389a1b098 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -21,9 +21,6 @@ NIL= SMAKE= MAKEFLAGS= ${MAKE} -C ${.CURDIR} all: - @if [ ! -x ./shell_test ] ; then \ - ${INSTALL} -m 555 ${.CURDIR}/shell_test.sh shell_test ; \ - fi @echo '1..17' @${SMAKE} C_check || { cd ${.CURDIR} ; ${MAKE} failure ; } @echo "ok 1 - C_check # Test of -C flag existence detected no regression." @@ -271,7 +268,7 @@ shell_1_sh: .if make(shell_2) # Test if we can replace the shell specification. We do this by using # a shell scripts that prints us its arguments and standard input as the shell -shell_2: +shell_2: shell_test @${SMAKE} -B shell_2B | \ diff -u ${.CURDIR}/regress.shell_2B.out - || false @${SMAKE} -j1 shell_2j | \ @@ -298,5 +295,6 @@ failure: @echo "not ok # Test failed: regression detected. See above." @false -clean: - rm -f shell_test +CLEANFILES= shell_test + +.include diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile index 777dd7f716b5..4c2389a1b098 100644 --- a/tools/regression/usr.bin/make/Makefile +++ b/tools/regression/usr.bin/make/Makefile @@ -21,9 +21,6 @@ NIL= SMAKE= MAKEFLAGS= ${MAKE} -C ${.CURDIR} all: - @if [ ! -x ./shell_test ] ; then \ - ${INSTALL} -m 555 ${.CURDIR}/shell_test.sh shell_test ; \ - fi @echo '1..17' @${SMAKE} C_check || { cd ${.CURDIR} ; ${MAKE} failure ; } @echo "ok 1 - C_check # Test of -C flag existence detected no regression." @@ -271,7 +268,7 @@ shell_1_sh: .if make(shell_2) # Test if we can replace the shell specification. We do this by using # a shell scripts that prints us its arguments and standard input as the shell -shell_2: +shell_2: shell_test @${SMAKE} -B shell_2B | \ diff -u ${.CURDIR}/regress.shell_2B.out - || false @${SMAKE} -j1 shell_2j | \ @@ -298,5 +295,6 @@ failure: @echo "not ok # Test failed: regression detected. See above." @false -clean: - rm -f shell_test +CLEANFILES= shell_test + +.include