xref: /minix3/usr.bin/make/unit-tests/moderrs.mk (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# $Id: moderrs.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
2*0a6a1f1dSLionel Sambuc#
3*0a6a1f1dSLionel Sambuc# various modifier error tests
4*0a6a1f1dSLionel Sambuc
5*0a6a1f1dSLionel SambucVAR=TheVariable
6*0a6a1f1dSLionel Sambuc# incase we have to change it ;-)
7*0a6a1f1dSLionel SambucMOD_UNKN=Z
8*0a6a1f1dSLionel SambucMOD_TERM=S,V,v
9*0a6a1f1dSLionel SambucMOD_S:= ${MOD_TERM},
10*0a6a1f1dSLionel Sambuc
11*0a6a1f1dSLionel Sambucall:	modunkn modunknV varterm vartermV modtermV
12*0a6a1f1dSLionel Sambuc
13*0a6a1f1dSLionel Sambucmodunkn:
14*0a6a1f1dSLionel Sambuc	@echo "Expect: Unknown modifier 'Z'"
15*0a6a1f1dSLionel Sambuc	@echo "VAR:Z=${VAR:Z}"
16*0a6a1f1dSLionel Sambuc
17*0a6a1f1dSLionel SambucmodunknV:
18*0a6a1f1dSLionel Sambuc	@echo "Expect: Unknown modifier 'Z'"
19*0a6a1f1dSLionel Sambuc	@echo "VAR:${MOD_UNKN}=${VAR:${MOD_UNKN}}"
20*0a6a1f1dSLionel Sambuc
21*0a6a1f1dSLionel Sambucvarterm:
22*0a6a1f1dSLionel Sambuc	@echo "Expect: Unclosed variable specification for VAR"
23*0a6a1f1dSLionel Sambuc	@echo VAR:S,V,v,=${VAR:S,V,v,
24*0a6a1f1dSLionel Sambuc
25*0a6a1f1dSLionel SambucvartermV:
26*0a6a1f1dSLionel Sambuc	@echo "Expect: Unclosed variable specification for VAR"
27*0a6a1f1dSLionel Sambuc	@echo VAR:${MOD_TERM},=${VAR:${MOD_S}
28*0a6a1f1dSLionel Sambuc
29*0a6a1f1dSLionel SambucmodtermV:
30*0a6a1f1dSLionel Sambuc	@echo "Expect: Unclosed substitution for VAR (, missing)"
31*0a6a1f1dSLionel Sambuc	-@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}"
32