Deleted Added
full compact
Makefile (138432) Makefile (138515)
1# $FreeBSD: head/tools/build/make_check/Makefile 138432 2004-12-06 08:51:30Z ru $
1# $FreeBSD: head/tools/build/make_check/Makefile 138515 2004-12-07 14:41:16Z harti $
2
3# Test for broken LHS expansion.
4# This *must* cause make(1) to detect a recursive variable, and fail as such.
5.if make(lhs_expn)
6FOO= ${BAR}
7BAR${NIL}= ${FOO}
8FOO${BAR}= ${FOO}
9.endif

--- 6 unchanged lines hidden (view full) ---

16DATA5:= ${DATA2:S/ll/ii/g} ${DATA1:S/ll/rr/g}
17DATA2= yello
18DATA1:= ${DATA5:S/l/r/g}
19NIL=
20
21SMAKE= MAKEFLAGS= ${MAKE} -C ${.CURDIR}
22
23all:
2
3# Test for broken LHS expansion.
4# This *must* cause make(1) to detect a recursive variable, and fail as such.
5.if make(lhs_expn)
6FOO= ${BAR}
7BAR${NIL}= ${FOO}
8FOO${BAR}= ${FOO}
9.endif

--- 6 unchanged lines hidden (view full) ---

16DATA5:= ${DATA2:S/ll/ii/g} ${DATA1:S/ll/rr/g}
17DATA2= yello
18DATA1:= ${DATA5:S/l/r/g}
19NIL=
20
21SMAKE= MAKEFLAGS= ${MAKE} -C ${.CURDIR}
22
23all:
24 @if [ ! -x ./shell_test ] ; then \
25 ${INSTALL} -m 555 ${.CURDIR}/shell_test.sh shell_test ; \
26 fi
27 @echo '1..17'
28 @${SMAKE} C_check || { cd ${.CURDIR} ; ${MAKE} failure ; }
29 @echo "ok 1 - C_check # Test of -C flag existence detected no regression."
30 @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \
31 diff -u ${.CURDIR}/regress.variables.out - || \
32 ${SMAKE} failure
33 @echo "ok 2 - test_variables # Test variables detected no regression, output matches."
34 @${SMAKE} double 2>/dev/null || ${SMAKE} failure

--- 231 unchanged lines hidden (view full) ---

266.SHELL: name="sh"
267shell_1_sh:
268 @ps -ax -opid,command | awk '$$1=="'$$$$'" { print $$2 }' | grep -q '^/bin/sh$$'
269.endif
270
271.if make(shell_2)
272# Test if we can replace the shell specification. We do this by using
273# a shell scripts that prints us its arguments and standard input as the shell
24 @echo '1..17'
25 @${SMAKE} C_check || { cd ${.CURDIR} ; ${MAKE} failure ; }
26 @echo "ok 1 - C_check # Test of -C flag existence detected no regression."
27 @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \
28 diff -u ${.CURDIR}/regress.variables.out - || \
29 ${SMAKE} failure
30 @echo "ok 2 - test_variables # Test variables detected no regression, output matches."
31 @${SMAKE} double 2>/dev/null || ${SMAKE} failure

--- 231 unchanged lines hidden (view full) ---

263.SHELL: name="sh"
264shell_1_sh:
265 @ps -ax -opid,command | awk '$$1=="'$$$$'" { print $$2 }' | grep -q '^/bin/sh$$'
266.endif
267
268.if make(shell_2)
269# Test if we can replace the shell specification. We do this by using
270# a shell scripts that prints us its arguments and standard input as the shell
274shell_2:
271shell_2: shell_test
275 @${SMAKE} -B shell_2B | \
276 diff -u ${.CURDIR}/regress.shell_2B.out - || false
277 @${SMAKE} -j1 shell_2j | \
278 diff -u ${.CURDIR}/regress.shell_2j.out - || false
279.endif
280
281.if make(shell_2B)
282.SHELL: name="echo" path="${.OBJDIR}/shell_test" quiet="be quiet" echo="be verbose" filter="be verbose" echoFlag="x" errFlag="y" hasErrCtl=y check="check errors" ignore="ignore errors"

--- 10 unchanged lines hidden (view full) ---

293 -@funny $$
294 funnier $$
295.endif
296
297failure:
298 @echo "not ok # Test failed: regression detected. See above."
299 @false
300
272 @${SMAKE} -B shell_2B | \
273 diff -u ${.CURDIR}/regress.shell_2B.out - || false
274 @${SMAKE} -j1 shell_2j | \
275 diff -u ${.CURDIR}/regress.shell_2j.out - || false
276.endif
277
278.if make(shell_2B)
279.SHELL: name="echo" path="${.OBJDIR}/shell_test" quiet="be quiet" echo="be verbose" filter="be verbose" echoFlag="x" errFlag="y" hasErrCtl=y check="check errors" ignore="ignore errors"

--- 10 unchanged lines hidden (view full) ---

290 -@funny $$
291 funnier $$
292.endif
293
294failure:
295 @echo "not ok # Test failed: regression detected. See above."
296 @false
297
301clean:
302 rm -f shell_test
298CLEANFILES= shell_test
299
300.include <bsd.obj.mk>