diff options
Diffstat (limited to 'tools/build/make_check/Makefile')
-rw-r--r-- | tools/build/make_check/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile new file mode 100644 index 0000000..97ecdb5 --- /dev/null +++ b/tools/build/make_check/Makefile @@ -0,0 +1,20 @@ +# $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 + @echo "Test variables detected no regression, output matches." + +failure: + @echo "Test failed: regression detected. See above." + @false |