aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/directive-misspellings.mk
blob: 0014076d041fa605f12ff6c56db0f5063b36c5a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# $NetBSD: directive-misspellings.mk,v 1.4 2023/06/01 20:56:35 rillig Exp $
#
# Tests for misspelled directives.
#
# Before 2020-12-12, make didn't catch most of these misspellings.  For
# example, the directive ".exporting" was interpreted as if it were spelled
# ".export ing", which would export the variable named "ing" if that existed.
# Another misspelling, as improbable as the others, was that both ".infos" and
# ".information" were aliases to ".info" since the code for these diagnostic
# directives just skipped any letters following the "error", "warn" or "info".

# expect+1: Unknown directive "dinclud"
.dinclud "file"
.dinclude "file"
# expect+1: Unknown directive "dincludx"
.dincludx "file"
# expect+1: .include filename must be delimited by '"' or '<'
.dincludes "file"		# XXX: the 's' is not meant to be a filename

# expect+1: Unknown directive "erro"
.erro msg
# expect+1: Unknown directive "errox"
.errox msg
# no .error since that would exit immediately
# no .errors since that would exit immediately, even with the typo

# expect+1: Unknown directive "expor"
.expor varname
.export varname
# expect+1: Unknown directive "exporx"
.exporx varname
# expect+1: Unknown directive "exports"
.exports varname		# Accepted before 2020-12-13 01:07:54.

# expect+1: Unknown directive "export-en"
.export-en			# Accepted before 2020-12-13 01:07:54.
.export-env
.export-env extra argument	# XXX: undetected extra argument
# expect+1: Unknown directive "export-environment"
.export-environment		# Accepted before 2020-12-13 01:07:54.

# expect+1: Unknown directive "export-litera"
.export-litera varname		# Accepted before 2020-12-13 01:07:54.
.export-literal varname
# expect+1: Unknown directive "export-literax"
.export-literax varname		# Accepted before 2020-12-13 01:07:54.
# expect+1: Unknown directive "export-literally"
.export-literally varname	# Accepted before 2020-12-13 01:07:54.

# expect+1: Unknown directive "-includ"
.-includ "file"
.-include "file"
# expect+1: Unknown directive "-includx"
.-includx "file"
# expect+1: .include filename must be delimited by '"' or '<'
.-includes "file"		# XXX: the 's' is not meant to be a filename

# expect+1: Unknown directive "includ"
.includ "file"
# expect+1: Could not find file
.include "file"
# expect+1: Unknown directive "includx"
.includx "file"
# expect+1: .include filename must be delimited by '"' or '<'
.includex "file"		# XXX: the 's' is not meant to be a filename

# expect+1: Unknown directive "inf"
.inf msg
# expect+1: msg
.info msg
# expect+1: Unknown directive "infx"
.infx msg
# expect+1: Unknown directive "infos"
.infos msg			# Accepted before 2020-12-13 01:07:54.

# expect+1: Unknown directive "sinclud"
.sinclud "file"
.sinclude "file"
# expect+1: Unknown directive "sincludx"
.sincludx "file"
# expect+1: .include filename must be delimited by '"' or '<'
.sincludes "file"		# XXX: the 's' is not meant to be a filename

# expect+1: Unknown directive "unde"
.unde varname
.undef varname
# expect+1: Unknown directive "undex"
.undex varname
# expect+1: Unknown directive "undefs"
.undefs varname			# Accepted before 2020-12-13 01:07:54.

# expect+1: Unknown directive "unexpor"
.unexpor varname
.unexport varname
# expect+1: Unknown directive "unexporx"
.unexporx varname
# expect+1: Unknown directive "unexports"
.unexports varname		# Accepted before 2020-12-12 18:00:18.

# expect+1: Unknown directive "unexport-en"
.unexport-en			# Accepted before 2020-12-12 18:11:42.
.unexport-env
# expect+1: The directive .unexport-env does not take arguments
.unexport-env extra argument	# Accepted before 2020-12-12 18:00:18.
# expect+1: Unknown directive "unexport-enx"
.unexport-enx			# Accepted before 2020-12-12 18:00:18.
# expect+1: Unknown directive "unexport-envs"
.unexport-envs			# Accepted before 2020-12-12 18:00:18.

# expect+1: Unknown directive "warn"
.warn msg
# expect+1: Unknown directive "warnin"
.warnin msg
# expect+1: warning: msg
.warning msg
# expect+1: Unknown directive "warninx"
.warninx msg
# expect+1: Unknown directive "warnings"
.warnings msg			# Accepted before 2020-12-13 01:07:54.