2002-04-20 20:57:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
DATA1= helllo
|
|
|
|
DATA2:= ${DATA1}
|
|
|
|
DATA3= ${DATA2:S/ll/rr/g}
|
|
|
|
DATA4:= ${DATA2:S/ll/rr/g}
|
|
|
|
DATA2?= allo
|
|
|
|
DATA5:= ${DATA2:S/ll/ii/g} ${DATA1:S/ll/rr/g}
|
|
|
|
DATA2= yello
|
|
|
|
DATA1:= ${DATA5:S/l/r/g}
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo "Running test variables"
|
|
|
|
@echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \
|
|
|
|
diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure
|
2002-04-27 02:26:23 +00:00
|
|
|
@echo "PASS: Test variables detected no regression, output matches."
|
2002-04-21 00:41:37 +00:00
|
|
|
@echo "Running test targets"
|
|
|
|
@${MAKE} double || ${MAKE} failure
|
2002-04-27 02:26:23 +00:00
|
|
|
@echo "PASS: Test targets detected no regression."
|
2002-04-21 00:41:37 +00:00
|
|
|
|
|
|
|
# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the
|
|
|
|
# ``right'' one.
|
|
|
|
double:
|
|
|
|
@true
|
|
|
|
|
|
|
|
double:
|
|
|
|
@false
|
2002-04-20 20:57:00 +00:00
|
|
|
|
|
|
|
failure:
|
2002-04-27 02:26:23 +00:00
|
|
|
@echo "FAIL: Test failed: regression detected. See above."
|
2002-04-20 20:57:00 +00:00
|
|
|
@false
|