xref: /freebsd/contrib/bmake/unit-tests/directive-misspellings.mk (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1# $NetBSD: directive-misspellings.mk,v 1.3 2020/12/13 01:10:22 rillig Exp $
2#
3# Tests for misspelled directives.
4#
5# Before 2020-12-12, make didn't catch most of these misspellings.  For
6# example, the directive ".exporting" was interpreted as if it were spelled
7# ".export ing", which would export the variable named "ing" if that existed.
8# Another misspelling, as improbable as the others, was that both ".infos" and
9# ".information" were aliases to ".info" since the code for these diagnostic
10# directives just skipped any letters following the "error", "warn" or "info".
11
12.dinclud "file"
13.dinclude "file"
14.dincludx "file"
15.dincludes "file"		# XXX: the 's' is not meant to be a filename
16
17.erro msg
18.errox msg
19# no .error since that would exit immediately
20# no .errors since that would exit immediately, even with the typo
21
22.expor varname
23.export varname
24.exporx varname
25.exports varname		# Accepted before 2020-12-13 01:07:54.
26
27.export-en			# Accepted before 2020-12-13 01:07:54.
28.export-env
29.export-env extra argument	# XXX: undetected extra argument
30.export-environment		# Accepted before 2020-12-13 01:07:54.
31
32.export-litera varname		# Accepted before 2020-12-13 01:07:54.
33.export-literal varname
34.export-literax varname		# Accepted before 2020-12-13 01:07:54.
35.export-literally varname	# Accepted before 2020-12-13 01:07:54.
36
37.-includ "file"
38.-include "file"
39.-includx "file"
40.-includes "file"		# XXX: the 's' is not meant to be a filename
41
42.includ "file"
43.include "file"
44.includx "file"
45.includex "file"		# XXX: the 's' is not meant to be a filename
46
47.inf msg
48.info msg
49.infx msg
50.infos msg			# Accepted before 2020-12-13 01:07:54.
51
52.sinclud "file"
53.sinclude "file"
54.sincludx "file"
55.sincludes "file"		# XXX: the 's' is not meant to be a filename
56
57.unde varname
58.undef varname
59.undex varname
60.undefs varname			# Accepted before 2020-12-13 01:07:54.
61
62.unexpor varname
63.unexport varname
64.unexporx varname
65.unexports varname		# Accepted before 2020-12-12 18:00:18.
66
67.unexport-en			# Accepted before 2020-12-12 18:11:42.
68.unexport-env
69.unexport-env extra argument	# Accepted before 2020-12-12 18:00:18.
70.unexport-enx			# Accepted before 2020-12-12 18:00:18.
71.unexport-envs			# Accepted before 2020-12-12 18:00:18.
72
73.warn msg
74.warnin msg
75.warning msg
76.warninx msg
77.warnings msg			# Accepted before 2020-12-13 01:07:54.
78
79all:
80