xref: /freebsd/contrib/bmake/unit-tests/moderrs.mk (revision 3416500aef140042c64bc149cb1ec6620483bc44)
1# $Id: moderrs.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
2#
3# various modifier error tests
4
5VAR=TheVariable
6# incase we have to change it ;-)
7MOD_UNKN=Z
8MOD_TERM=S,V,v
9MOD_S:= ${MOD_TERM},
10
11all:	modunkn modunknV varterm vartermV modtermV
12
13modunkn:
14	@echo "Expect: Unknown modifier 'Z'"
15	@echo "VAR:Z=${VAR:Z}"
16
17modunknV:
18	@echo "Expect: Unknown modifier 'Z'"
19	@echo "VAR:${MOD_UNKN}=${VAR:${MOD_UNKN}}"
20
21varterm:
22	@echo "Expect: Unclosed variable specification for VAR"
23	@echo VAR:S,V,v,=${VAR:S,V,v,
24
25vartermV:
26	@echo "Expect: Unclosed variable specification for VAR"
27	@echo VAR:${MOD_TERM},=${VAR:${MOD_S}
28
29modtermV:
30	@echo "Expect: Unclosed substitution for VAR (, missing)"
31	-@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}"
32