~vcs-imports/gawk/master

28 by Arnold D. Robbins
Move to gawk-3.1.0.
1
#
2
# test/Makefile.am --- automake input file for gawk
3
#
1073 by Arnold D. Robbins
Update copyright year in many dates.
4
# Copyright (C) 1988-2019 the Free Software Foundation, Inc.
28 by Arnold D. Robbins
Move to gawk-3.1.0.
5
#
6
# This file is part of GAWK, the GNU implementation of the
7
# AWK Programming Language.
8
#
9
# GAWK is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
34 by Arnold D. Robbins
Move to gawk-3.1.6.
11
# the Free Software Foundation; either version 3 of the License, or
28 by Arnold D. Robbins
Move to gawk-3.1.0.
12
# (at your option) any later version.
13
#
14
# GAWK is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
# GNU General Public License for more details.
18
#
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
33 by Arnold D. Robbins
Move to gawk 3.1.5.
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
28 by Arnold D. Robbins
Move to gawk-3.1.0.
22
#
23
24
## process this file with automake to produce Makefile.in
25
26
EXTRA_DIST = \
27
	reg \
28
	lib \
277 by Arnold D. Robbins
Fix vms version stuff. Get the tarball really right.
29
	ChangeLog.0 \
1146.1.3 by Arnold D. Robbins
Ensure that ChangeLog.1 gets into the distribution.
30
	ChangeLog.1 \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
31
	Gentests \
32
	Maketests \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
33
	README \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
34
	aadelete1.awk \
35
	aadelete1.ok \
36
	aadelete2.awk \
37
	aadelete2.ok \
38
	aarray1.awk \
39
	aarray1.ok \
40
	aasort.awk \
41
	aasort.ok \
42
	aasorti.awk \
43
	aasorti.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
44
	addcomma.awk \
45
	addcomma.in \
46
	addcomma.ok \
47
	anchgsub.awk \
48
	anchgsub.in \
49
	anchgsub.ok \
408.26.74 by Arnold D. Robbins
Use dfa's new ability to handle anchors.
50
	anchor.awk \
51
	anchor.in \
52
	anchor.ok \
408.30.14 by Andrew J. Schorr
Optimization: support unterminated field strings inside gawk, but make terminated copies for the API.
53
	apiterm.awk \
54
	apiterm.in \
55
	apiterm.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
56
	argarray.awk \
57
	argarray.in \
58
	argarray.ok \
59
	argtest.awk \
60
	argtest.ok \
408.19.169 by Arnold D. Robbins
Fix array indexing to disallow numeric string.
61
	arrayind1.awk \
62
	arrayind1.in \
63
	arrayind1.ok \
408.24.42 by Arnold D. Robbins
New test, arrayind2.
64
	arrayind2.awk \
65
	arrayind2.ok \
408.30.1 by Andrew J. Schorr
It is OK to use a strnum as a string array subscript, since we now respect the string value.
66
	arrayind3.awk \
67
	arrayind3.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
68
	arrayparm.awk \
69
	arrayparm.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
70
	arrayprm2.awk \
71
	arrayprm2.ok \
72
	arrayprm3.awk \
73
	arrayprm3.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
74
	arrayref.awk \
75
	arrayref.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
76
	arraysort.awk \
77
	arraysort.ok \
731.11.386 by Arnold D. Robbins
Fix coredump from IGNORECASE array sorting.
78
	arraysort2.awk \
79
	arraysort2.ok \
1053 by Andrew J. Schorr
Implement optional second array arg to type of returning info on variable internals.
80
	arraytype.awk \
81
	arraytype.ok \
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
82
	arrdbg.awk \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
83
	arrymem1.awk \
84
	arrymem1.ok \
85
	arryref2.awk \
86
	arryref2.ok \
87
	arryref3.awk \
88
	arryref3.ok \
89
	arryref4.awk \
90
	arryref4.ok \
91
	arryref5.awk \
92
	arryref5.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
93
	arynasty.awk \
94
	arynasty.ok \
95
	arynocls.awk \
96
	arynocls.in \
97
	arynocls.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
98
	aryprm1.awk \
99
	aryprm1.ok \
100
	aryprm2.awk \
101
	aryprm2.ok \
102
	aryprm3.awk \
103
	aryprm3.ok \
104
	aryprm4.awk \
105
	aryprm4.ok \
106
	aryprm5.awk \
107
	aryprm5.ok \
108
	aryprm6.awk \
109
	aryprm6.ok \
110
	aryprm7.awk \
111
	aryprm7.ok \
112
	aryprm8.awk \
113
	aryprm8.ok \
408.19.73 by Arnold D. Robbins
Fix for extra parameters going down the call chain.
114
	aryprm9.awk \
115
	aryprm9.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
116
	arysubnm.awk \
117
	arysubnm.ok \
731.11.108 by Arnold D. Robbins
Fix test suite for make distcheck.
118
	aryunasgn.awk \
119
	aryunasgn.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
120
	asgext.awk \
121
	asgext.in \
122
	asgext.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
123
	asort.awk \
124
	asort.ok \
125
	asorti.awk \
126
	asorti.ok \
731.11.388 by Arnold D. Robbins
Fix assigning $0 from a number.
127
	assignnumfield.awk \
128
	assignnumfield.in \
129
	assignnumfield.ok \
1146.1.13 by Andrew J. Schorr
Add another numeric field assignment test.
130
	assignnumfield2.awk \
131
	assignnumfield2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
132
	awkpath.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
133
	back89.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
134
	back89.in \
135
	back89.ok \
136
	backgsub.awk \
137
	backgsub.in \
138
	backgsub.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
139
	backw.awk \
140
	backw.in \
141
	backw.ok \
408.4.43 by Arnold D. Robbins
Fix multibyte \s and \S in dfa.c from GNU grep.
142
	backbigs1.awk \
143
	backbigs1.in \
144
	backbigs1.ok \
145
	backsmalls1.awk \
146
	backsmalls1.in \
147
	backsmalls1.ok \
408.4.60 by Arnold D. Robbins
Addtional fix for \s in multibyte locales.
148
	backsmalls2.awk \
149
	backsmalls2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
150
	badargs.ok \
408.4.42 by Arnold D. Robbins
Bug fix for $i++ = 3.
151
	badassign1.awk \
152
	badassign1.ok \
408.13.30 by Arnold D. Robbins
New test for bad builds (with non-bison).
153
	badbuild.awk \
154
	badbuild.in \
155
	badbuild.ok \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
156
	beginfile1.awk \
157
	beginfile1.ok \
277.1.21 by Arnold D. Robbins
BEGINFILE/ENDFILE code redone.
158
	beginfile2.in \
159
	beginfile2.ok \
160
	beginfile2.sh \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
161
	binmode1.ok \
408.13.59 by Arnold D. Robbins
Disallow calling a function parameter. Check params are not function names.
162
	callparam.awk \
163
	callparam.ok \
277.1.153 by Arnold D. Robbins
Fix bug with --characters-as-bytes.
164
	charasbytes.awk \
165
	charasbytes.in \
166
	charasbytes.ok \
408.19.12 by Arnold D. Robbins
Improve negtime test.
167
	checknegtime.awk \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
168
	childin.awk \
169
	childin.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
170
	childin.ok \
171
	clobber.awk \
172
	clobber.ok \
173
	clos1way.awk \
174
	clos1way.ok \
408.19.135 by Arnold D. Robbins
Add new tests for read/write closed end of 2 way pipe.
175
	clos1way2.awk \
176
	clos1way2.in \
177
	clos1way2.ok \
178
	clos1way3.awk \
179
	clos1way3.ok \
180
	clos1way4.awk \
181
	clos1way4.ok \
182
	clos1way5.awk \
183
	clos1way5.ok \
408.24.14 by Arnold D. Robbins
Test case for nonfatal close one end of two way pipe.
184
	clos1way6.awk \
185
	clos1way6.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
186
	closebad.awk \
187
	closebad.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
188
	clsflnam.awk \
189
	clsflnam.in \
190
	clsflnam.ok \
277.1.215 by Arnold D. Robbins
Fix a bug with ] as real char in regexps.
191
	colonwarn.awk \
192
	colonwarn.in \
193
	colonwarn.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
194
	compare.awk \
195
	compare.in \
196
	compare.ok \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
197
	compare2.awk \
198
	compare2.ok \
199
	concat1.awk \
200
	concat1.in \
201
	concat1.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
202
	concat2.awk \
203
	concat2.ok \
204
	concat3.awk \
205
	concat3.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
206
	concat4.awk \
207
	concat4.in \
208
	concat4.ok \
408.19.278 by Andrew J. Schorr
Fix bug in string concatenation optimization.
209
	concat5.awk \
210
	concat5.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
211
	convfmt.awk \
212
	convfmt.ok \
408.13.86 by Arnold D. Robbins
Fix line continuation with CR-LF.
213
	crlf.awk \
214
	crlf.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
215
	datanonl.awk \
216
	datanonl.in \
217
	datanonl.ok \
408.5.169 by Arnold D. Robbins
Further fix to eval "" in debugger.
218
	dbugeval.in \
408.5.170 by Arnold D. Robbins
Add dbugeval.ok to EXTRADIST in Makefile.am.
219
	dbugeval.ok \
408.20.60 by Arnold D. Robbins
Debugger fix, eval for builtin extensions + test.
220
	dbugeval2.awk \
221
	dbugeval2.in \
222
	dbugeval2.ok \
1104 by Arnold D. Robbins
Fix calling user defined functions from eval.
223
	dbugeval3.awk \
224
	dbugeval3.in \
225
	dbugeval3.ok \
408.20.53 by Arnold D. Robbins
Add new debugger test.
226
	dbugtypedre1.awk \
227
	dbugtypedre1.in \
228
	dbugtypedre1.ok \
229
	dbugtypedre2.awk \
230
	dbugtypedre2.in \
231
	dbugtypedre2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
232
	defref.awk \
233
	defref.ok \
218 by Arnold D. Robbins
Day one bug fix, z/OS fix, new test.
234
	delargv.awk \
235
	delargv.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
236
	delarpm2.awk \
237
	delarpm2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
238
	delarprm.awk \
239
	delarprm.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
240
	delfunc.awk \
241
	delfunc.ok \
203 by Arnold D. Robbins
Fix problem with subarray of deleted array.
242
	delsub.awk \
243
	delsub.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
244
	devfd.in1 \
245
	devfd.in2 \
246
	devfd.in4 \
247
	devfd.in5 \
248
	devfd.ok \
249
	devfd1.awk \
250
	devfd1.ok \
251
	devfd2.ok \
1068 by Arnold D. Robbins
Changes after make distcheck.
252
	dfacheck1.awk \
253
	dfacheck1.in \
254
	dfacheck1.ok \
408.4.7 by Arnold D. Robbins
New test case for dfa problem fixed earlier.
255
	dfamb1.awk \
256
	dfamb1.in \
257
	dfamb1.ok \
272 by Arnold D. Robbins
Add fix for crash from grep, add test case.
258
	dfastress.awk \
259
	dfastress.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
260
	double1.awk \
261
	double1.ok \
262
	double2.awk \
263
	double2.ok \
60 by Arnold D. Robbins
Clean up sprintf return type. Add tests for pgawk.
264
	dtdgport.awk \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
265
	dumpvars.in \
266
	dumpvars.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
267
	dynlj.awk \
268
	dynlj.ok \
1146.1.39 by Arnold D. Robbins
Fix /\{/ to not warn if --posix.
269
	escapebrace.awk \
1190 by Arnold D. Robbins
Fix typos in test/Makefile.am.
270
	escapebrace.in \
271
	escapebrace.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
272
	eofsplit.awk \
273
	eofsplit.ok \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
274
	eofsrc1a.awk \
275
	eofsrc1b.awk \
276
	eofsrc1.ok \
408.12.39 by Andrew J. Schorr
Add new errno test to make sure PROCINFO["errno"] is working.
277
	errno.awk \
278
	errno.in \
279
	errno.ok \
168 by Arnold D. Robbins
Add tests for next and exit to test suite.
280
	exit.ok \
281
	exit.sh \
408.2.121 by Arnold D. Robbins
Fix corner case use of exit.
282
	exit2.awk \
283
	exit2.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
284
	exitval1.awk \
285
	exitval1.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
286
	exitval2.awk \
287
	exitval2.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
288
	exitval2.w32 \
408.13.106 by Andrew J. Schorr
Fix bug where exit with no argument was setting the exit status to zero.
289
	exitval3.awk \
290
	exitval3.ok \
36 by Arnold D. Robbins
Move to 3.1.8.
291
	fcall_exit.awk \
292
	fcall_exit.ok \
293
	fcall_exit2.awk \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
294
	fcall_exit2.in \
36 by Arnold D. Robbins
Move to 3.1.8.
295
	fcall_exit2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
296
	fflush.ok \
297
	fflush.sh \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
298
	fieldwdth.awk \
299
	fieldwdth.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
300
	fieldwdth.ok \
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
301
	filefuncs.awk \
302
	filefuncs.ok \
731.11.376 by Arnold D. Robbins
Output +inf, +nan etc. also, so that output can be input. Doc, tests, fixed.
303
	fix-fmtspcl.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
304
	fldchg.awk \
305
	fldchg.in \
306
	fldchg.ok \
307
	fldchgnf.awk \
308
	fldchgnf.in \
309
	fldchgnf.ok \
408.30.14 by Andrew J. Schorr
Optimization: support unterminated field strings inside gawk, but make terminated copies for the API.
310
	fldterm.awk \
311
	fldterm.in \
312
	fldterm.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
313
	fmtspcl-mpfr.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
314
	fmtspcl.awk \
315
	fmtspcl.tok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
316
	fmttest.awk \
317
	fmttest.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
318
	fnamedat.awk \
319
	fnamedat.in \
320
	fnamedat.ok \
321
	fnarray.awk \
322
	fnarray.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
323
	fnarray2.awk \
281.1.1 by john haque
Speed/memory performance improvements.
324
	fnarray2.in \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
325
	fnarray2.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
326
	fnarydel-mpfr.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
327
	fnarydel.awk \
328
	fnarydel.ok \
329
	fnaryscl.awk \
330
	fnaryscl.ok \
331
	fnasgnm.awk \
332
	fnasgnm.in \
333
	fnasgnm.ok \
319.2.55 by Arnold D. Robbins
Add fnmatch extension.
334
	fnmatch.awk \
335
	fnmatch.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
336
	fnmisc.awk \
337
	fnmisc.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
338
	fnparydl-mpfr.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
339
	fnparydl.awk \
340
	fnparydl.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
341
	forcenum.awk \
342
	forcenum.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
343
	fordel.awk \
344
	fordel.ok \
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
345
	fork.awk \
299.3.20 by Andrew J. Schorr
Add some missing test .ok files to EXTRA_DIST.
346
	fork.ok \
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
347
	fork2.awk \
299.3.20 by Andrew J. Schorr
Add some missing test .ok files to EXTRA_DIST.
348
	fork2.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
349
	forref.awk \
350
	forref.ok \
351
	forsimp.awk \
352
	forsimp.ok \
37 by Arnold D. Robbins
Bring in development gawk changes.
353
	fpat1.awk \
354
	fpat1.in \
355
	fpat1.ok \
246 by Arnold D. Robbins
Fix FPAT / NF interaction, update test suites.
356
	fpat2.awk \
357
	fpat2.ok \
277.1.22 by Arnold D. Robbins
Fix bug with FPAT.
358
	fpat3.awk \
359
	fpat3.in \
360
	fpat3.ok \
408.13.98 by Arnold D. Robbins
Add additional fpat test.
361
	fpat4.awk \
362
	fpat4.ok \
408.19.40 by Arnold D. Robbins
Bug fix to FPAT field parsing.
363
	fpat5.awk \
364
	fpat5.in \
365
	fpat5.ok \
731.8.38 by Arnold D. Robbins
Fix FPAT problems.
366
	fpat6.awk \
367
	fpat6.in \
368
	fpat6.ok \
236 by Arnold D. Robbins
Bug fixes for FPAT.
369
	fpatnull.awk \
370
	fpatnull.in \
371
	fpatnull.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
372
	fsbs.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
373
	fsbs.in \
374
	fsbs.ok \
1146.1.8 by Arnold D. Robbins
Fix bug with ^ in FS.
375
	fscaret.awk \
376
	fscaret.in \
377
	fscaret.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
378
	fsfwfs.awk \
379
	fsfwfs.in \
380
	fsfwfs.ok \
408.19.185 by Arnold D. Robbins
Allow FS = "\0" if RS = "".
381
	fsnul1.awk \
382
	fsnul1.in \
383
	fsnul1.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
384
	fsrs.awk \
385
	fsrs.in \
386
	fsrs.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
387
	fsspcoln.awk \
388
	fsspcoln.in \
389
	fsspcoln.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
390
	fstabplus.awk \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
391
	fstabplus.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
392
	fstabplus.ok \
319.2.97 by Arnold D. Robbins
Add fts() extension, support, doc, and test.
393
	fts.awk \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
394
	functab1.awk \
395
	functab1.ok \
396
	functab2.awk \
397
	functab2.ok \
398
	functab3.awk \
399
	functab3.ok \
400
	functab4.awk \
401
	functab4.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
402
	funlen.awk \
403
	funlen.in \
404
	funlen.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
405
	funsemnl.awk \
406
	funsemnl.ok \
407
	funsmnam.awk \
408
	funsmnam.ok \
409
	funstack.awk \
410
	funstack.in \
411
	funstack.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
412
	fwtest.awk \
413
	fwtest.in \
414
	fwtest.ok \
415
	fwtest2.awk \
416
	fwtest2.in \
417
	fwtest2.ok \
277.1.20 by Arnold D. Robbins
Fix problem with FIELDWIDTHS.
418
	fwtest3.awk \
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
419
	fwtest3.in \
277.1.20 by Arnold D. Robbins
Fix problem with FIELDWIDTHS.
420
	fwtest3.ok \
731.6.22 by Arnold D. Robbins
Revise fwtest* test names and files to match.
421
	fwtest4.awk \
422
	fwtest4.in \
423
	fwtest4.ok \
731.9.7 by Arnold D. Robbins
Greatly improve FIELDWIDTHS behavior, doc, and tests.
424
	fwtest5.awk \
425
	fwtest5.in \
426
	fwtest5.ok \
427
	fwtest6.awk \
428
	fwtest6.in \
429
	fwtest6.ok \
430
	fwtest7.awk \
431
	fwtest7.in \
432
	fwtest7.ok \
731.9.10 by Arnold D. Robbins
Additional robustness in FIELDWIDTHS parsing.
433
	fwtest8.awk \
434
	fwtest8.in \
435
	fwtest8.ok \
408.5.297 by Arnold D. Robbins
Fix --gen-pot with long strings.
436
	genpot.awk \
437
	genpot.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
438
	gensub.awk \
439
	gensub.in \
440
	gensub.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
441
	gensub2.awk \
442
	gensub2.ok \
408.19.283 by Arnold D. Robbins
Fix assignment from gensub to $0.
443
	gensub3.awk \
444
	gensub3.in \
445
	gensub3.ok \
408.12.44 by Andrew J. Schorr
Add test of get_file API.
446
	getfile.awk \
447
	getfile.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
448
	getline.awk \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
449
	getline.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
450
	getline.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
451
	getline2.awk \
452
	getline2.ok \
453
	getline3.awk \
454
	getline3.ok \
277.1.11 by Arnold D. Robbins
Fix gsub and getline pass by reference. Add tests.
455
	getline4.awk \
456
	getline4.in \
457
	getline4.ok \
277.1.157 by Arnold D. Robbins
Doc update and new test on getline with side effects.
458
	getline5.awk \
459
	getline5.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
460
	getlnbuf.awk \
461
	getlnbuf.in \
462
	getlnbuf.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
463
	getlndir.awk \
464
	getlndir.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
465
	getlnhd.awk \
466
	getlnhd.ok \
467
	getnr2tb.awk \
468
	getnr2tb.in \
469
	getnr2tb.ok \
470
	getnr2tm.awk \
471
	getnr2tm.in \
472
	getnr2tm.ok \
473
	gnuops2.awk \
474
	gnuops2.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
475
	gnuops3.awk \
476
	gnuops3.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
477
	gnureops.awk \
478
	gnureops.ok \
479
	gsubasgn.awk \
480
	gsubasgn.ok \
408.20.42 by Arnold D. Robbins
Cleanup files and fix up tests for typed regexes and typeof.
481
	gsubind.awk \
482
	gsubind.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
483
	gsubtest.awk \
484
	gsubtest.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
485
	gsubtst2.awk \
486
	gsubtst2.ok \
487
	gsubtst3.awk \
488
	gsubtst3.in \
489
	gsubtst3.ok \
490
	gsubtst4.awk \
491
	gsubtst4.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
492
	gsubtst5.awk \
493
	gsubtst5.in \
494
	gsubtst5.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
495
	gsubtst6.awk \
496
	gsubtst6.ok \
277.1.2 by Arnold D. Robbins
Fix gsub losing white space when working on fields.
497
	gsubtst7.awk \
498
	gsubtst7.in \
499
	gsubtst7.ok \
277.1.11 by Arnold D. Robbins
Fix gsub and getline pass by reference. Add tests.
500
	gsubtst8.awk \
501
	gsubtst8.in \
502
	gsubtst8.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
503
	gtlnbufv.awk \
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
504
	hello.awk \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
505
	hex.awk \
506
	hex.ok \
408.19.189 by Arnold D. Robbins
Disallow negative hex numbers in input data.
507
	hex2.awk \
508
	hex2.in \
509
	hex2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
510
	hsprint.awk \
511
	hsprint.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
512
	icasefs.awk \
513
	icasefs.ok \
514
	icasers.awk \
515
	icasers.in \
516
	icasers.ok \
408.13.158 by Arnold D. Robbins
Make call-by-value work again for $0.
517
	inpref.awk \
518
	inpref.in \
519
	inpref.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
520
	id.awk \
521
	id.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
522
	igncdym.awk \
523
	igncdym.in \
524
	igncdym.ok \
525
	igncfs.awk \
526
	igncfs.in \
527
	igncfs.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
528
	ignrcas2.awk \
529
	ignrcas2.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
530
	ignrcas3.awk \
531
	ignrcas3.ok \
408.26.43 by Arnold D. Robbins
Merge branch 'gawk-4.1-stable'
532
	ignrcas4.awk \
533
	ignrcas4.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
534
	ignrcase.awk \
535
	ignrcase.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
536
	ignrcase.ok \
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
537
	incdupe.ok \
538
	incdupe2.ok \
539
	incdupe3.ok \
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
540
	incdupe4.ok \
541
	incdupe5.ok \
542
	incdupe6.ok \
543
	incdupe7.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
544
	inchello.awk \
545
	inclib.awk \
546
	include.awk \
547
	include.ok \
548
	include2.ok \
408.15.7 by Arnold D. Robbins
Add tests for indirect call of builtins.
549
	indirectbuiltin.awk \
550
	indirectbuiltin.ok \
37 by Arnold D. Robbins
Bring in development gawk changes.
551
	indirectcall.awk \
552
	indirectcall.in \
553
	indirectcall.ok \
408.5.264 by Arnold D. Robbins
New test, indirect call of builtin functions.
554
	indirectcall2.awk \
555
	indirectcall2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
556
	inftest.awk \
557
	inftest.ok \
365 by Andrew J. Schorr
Add tests for inplace extension.
558
	inplace.in \
559
	inplace.1.in \
560
	inplace.2.in \
561
	inplace1.ok \
562
	inplace1.1.ok \
563
	inplace1.2.ok \
564
	inplace2.ok \
565
	inplace2.1.ok \
566
	inplace2.1.bak.ok \
567
	inplace2.2.ok \
568
	inplace2.2.bak.ok \
1146.1.48 by Arnold D. Robbins
Add backwards compatibility tests for inplace extension.
569
	inplace2bcomp.1.ok \
570
	inplace2bcomp.1.orig.ok \
571
	inplace2bcomp.2.ok \
572
	inplace2bcomp.2.orig.ok \
573
	inplace2bcomp.ok \
365 by Andrew J. Schorr
Add tests for inplace extension.
574
	inplace3.ok \
575
	inplace3.1.ok \
576
	inplace3.1.bak.ok \
577
	inplace3.2.ok \
578
	inplace3.2.bak.ok \
1146.1.48 by Arnold D. Robbins
Add backwards compatibility tests for inplace extension.
579
	inplace3bcomp.1.ok \
580
	inplace3bcomp.1.orig.ok \
581
	inplace3bcomp.2.ok \
582
	inplace3bcomp.2.orig.ok \
583
	inplace3bcomp.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
584
	inputred.awk \
585
	inputred.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
586
	intarray.awk \
587
	intarray.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
588
	intest.awk \
589
	intest.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
590
	intformat.awk \
591
	intformat.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
592
	intprec.awk \
593
	intprec.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
594
	iobug1.awk \
595
	iobug1.ok \
731.11.274 by Arnold D. Robbins
Fix isarray to take unset variable.
596
	isarrayunset.awk \
597
	isarrayunset.ok \
277.1.145 by Arnold D. Robbins
Add test for gsub in JP-EUC-JP locale.
598
	jarebug.awk \
599
	jarebug.in \
600
	jarebug.ok \
319.1.28 by Andrew J. Schorr
Detect readdir test failures, and add some missing files to the distro tarball.
601
	jarebug.sh \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
602
	lc_num1.awk \
603
	lc_num1.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
604
	leaddig.awk \
605
	leaddig.ok \
606
	leadnl.awk \
607
	leadnl.in \
608
	leadnl.ok \
609
	lint.awk \
610
	lint.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
611
	lintexp.awk \
612
	lintexp.ok \
613
	lintindex.awk \
614
	lintindex.ok \
615
	lintint.awk \
616
	lintint.ok \
617
	lintlength.awk \
618
	lintlength.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
619
	lintold.awk \
620
	lintold.in \
621
	lintold.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
622
	lintset.awk \
623
	lintset.ok \
150 by Arnold D. Robbins
Fix line numbers in lint warnings.
624
	lintwarn.awk \
625
	lintwarn.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
626
	litoct.awk \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
627
	litoct.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
628
	litoct.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
629
	localenl.ok \
630
	localenl.sh \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
631
	longsub.awk \
632
	longsub.in \
633
	longsub.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
634
	longwrds.awk \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
635
	longwrds.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
636
	longwrds.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
637
	manglprm.awk \
638
	manglprm.in \
639
	manglprm.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
640
	manyfiles.awk \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
641
	manyfiles.ok \
408.19.42 by Arnold D. Robbins
Fatal with --posix on multidimensional arrays.
642
	muldimposix.awk \
643
	muldimposix.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
644
	match1.awk \
645
	match1.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
646
	match2.awk \
647
	match2.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
648
	match3.awk \
649
	match3.in \
650
	match3.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
651
	math.awk \
652
	math.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
653
	mbfw1.awk \
654
	mbfw1.in \
655
	mbfw1.ok \
656
	mbprintf1.awk \
657
	mbprintf1.in \
658
	mbprintf1.ok \
659
	mbprintf2.awk \
660
	mbprintf2.ok \
661
	mbprintf3.awk \
662
	mbprintf3.in \
663
	mbprintf3.ok \
408.4.12 by Arnold D. Robbins
Fix for %c in multibyte locale + new tests.
664
	mbprintf4.awk \
665
	mbprintf4.in \
666
	mbprintf4.ok \
731.9.18 by Arnold D. Robbins
Fix multibyte char printf problem, add test.
667
	mbprintf5.awk \
668
	mbprintf5.in \
669
	mbprintf5.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
670
	mbstr1.awk \
671
	mbstr1.ok \
408.19.37 by Arnold D. Robbins
Improve handling of invalid data in UTF locales.
672
	mbstr2.awk \
673
	mbstr2.in \
674
	mbstr2.ok \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
675
	membug1.awk \
676
	membug1.in \
677
	membug1.ok \
731.7.9 by Arnold D. Robbins
Add new memleak test.
678
	memleak.awk \
679
	memleak.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
680
	messages.awk \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
681
	minusstr.awk \
682
	minusstr.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
683
	mixed1.ok \
731.3.51 by Andrew J. Schorr
Add optional 2nd argument to mktime to request UTC instead of local time.
684
	mktime.awk \
685
	mktime.in \
686
	mktime.ok \
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
687
	mmap8k.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
688
	mmap8k.in \
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
689
	mmap8k.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
690
	mpfrbigint.awk \
691
	mpfrbigint.ok \
731.17.42 by Arnold D. Robbins
Fix problem with MPFR conversion to int from hex numbers.
692
	mpfrbigint2.awk \
693
	mpfrbigint2.in \
694
	mpfrbigint2.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
695
	mpfrexprange.awk \
696
	mpfrexprange.ok \
731.11.338 by Arnold D. Robbins
Copy MPZ/MPFR bits also, in r_dupnode.
697
	mpfrfield.awk \
698
	mpfrfield.in \
699
	mpfrfield.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
700
	mpfrieee.awk \
701
	mpfrieee.ok \
408.13.102 by Arnold D. Robbins
Fix bad allocs -M and profiling.
702
	mpfrmemok1.awk \
703
	mpfrmemok1.ok \
408.5.42 by Arnold D. Robbins
Fix -0 for MPFR.
704
	mpfrnegzero.awk \
705
	mpfrnegzero.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
706
	mpfrnr.awk \
707
	mpfrnr.in \
708
	mpfrnr.ok \
408.5.234 by Arnold D. Robbins
Bug fix to MPFR mod operation for negative numerator.
709
	mpfrrem.awk \
710
	mpfrrem.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
711
	mpfrrnd.awk \
712
	mpfrrnd.ok \
731.11.254 by Arnold D. Robbins
Changes to ROUNDMODE now invalidate cached string values.
713
	mpfrrndeval.awk \
714
	mpfrrndeval.ok \
392 by Arnold D. Robbins
Fix dist to include mpfr tests and fix reginttrad.
715
	mpfrsort.awk \
716
	mpfrsort.ok \
408.5.233 by Arnold D. Robbins
Bug fix in MPFR that manifested in sqrt().
717
	mpfrsqrt.awk \
718
	mpfrsqrt.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
719
	mpfrstrtonum.awk \
720
	mpfrstrtonum.ok \
731.11.303 by Andrew J. Schorr
Fix bug printing +"01" in regular and MPFR mode.
721
	mpfruplus.ok \
1215 by Arnold D. Robbins
New test: mpfranswer42.
722
	mpfranswer42.awk \
723
	mpfranswer42.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
724
	mpgforcenum.awk \
725
	mpgforcenum.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
726
	mtchi18n.awk \
727
	mtchi18n.in \
728
	mtchi18n.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
729
	nasty.awk \
730
	nasty.ok \
731
	nasty2.awk \
732
	nasty2.ok \
204 by Arnold D. Robbins
Bug fixes and new test, see nastyparm.
733
	nastyparm.awk \
734
	nastyparm.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
735
	negexp.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
736
	negexp.ok \
127 by Arnold D. Robbins
Regex bug fix and token bug fix. See ChangeLog.
737
	negrange.awk \
738
	negrange.ok \
408.13.133 by Arnold D. Robbins
Remove fatal error if strftime timestamp < 0.
739
	negtime.awk \
740
	negtime.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
741
	nested.awk \
742
	nested.in \
743
	nested.ok \
168 by Arnold D. Robbins
Add tests for next and exit to test suite.
744
	next.ok \
745
	next.sh \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
746
	nfldstr.awk \
747
	nfldstr.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
748
	nfldstr.ok \
408.4.34 by Arnold D. Robbins
Fix problem when extending NF. See test/nfloop.
749
	nfloop.awk \
750
	nfloop.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
751
	nfneg.awk \
752
	nfneg.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
753
	nfset.awk \
754
	nfset.in \
755
	nfset.ok \
756
	nlfldsep.awk \
757
	nlfldsep.in \
758
	nlfldsep.ok \
759
	nlinstr.awk \
760
	nlinstr.in \
761
	nlinstr.ok \
762
	nlstrina.awk \
763
	nlstrina.ok \
731.11.268 by Arnold D. Robbins
Add nlstringtest.
764
	nlstringtest.awk \
765
	nlstringtest.ok \
731.11.272 by Arnold D. Robbins
Add nlstringtest files.
766
	nlstringtest.po \
731.11.328 by Arnold D. Robbins
Make nlstringtest work if gawk was compiled without gettext.
767
	nlstringtest-nogettext.ok \
731.11.268 by Arnold D. Robbins
Add nlstringtest.
768
	fr \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
769
	noeffect.awk \
770
	noeffect.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
771
	nofile.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
772
	nofmtch.awk \
773
	nofmtch.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
774
	noloop1.awk \
775
	noloop1.in \
776
	noloop1.ok \
777
	noloop2.awk \
778
	noloop2.in \
779
	noloop2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
780
	nondec.awk \
781
	nondec.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
782
	nondec2.awk \
783
	nondec2.ok \
408.14.8 by Arnold D. Robbins
Add tests for non fatal i/o.
784
	nonfatal1.awk \
785
	nonfatal1.ok \
786
	nonfatal2.awk \
787
	nonfatal2.ok \
408.14.17 by Andrew J. Schorr
Improve testing for nonfatal socket connection attempts.
788
	nonfatal3.awk \
789
	nonfatal3.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
790
	nonl.awk \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
791
	nonl.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
792
	nonl.ok \
793
	noparms.awk \
794
	noparms.ok \
795
	nors.in \
796
	nors.ok \
1146.1.45 by Arnold D. Robbins
Fix a problem when using awk::var kinds of names.
797
	nsawk1.awk \
798
	nsawk1a.ok \
799
	nsawk1b.ok \
800
	nsawk1c.ok \
801
	nsawk2.awk \
802
	nsawk2a.ok \
803
	nsawk2b.ok \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
804
	nsbad.awk \
805
	nsbad.ok \
806
	nsbad_cmd.ok \
1056.2.8 by Arnold D. Robbins
Rework namespace handling to make simpler and correct. Add two test cases.
807
	nsforloop.awk \
808
	nsforloop.ok \
809
	nsfuncrecurse.awk \
810
	nsfuncrecurse.ok \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
811
	nsindirect1.awk \
812
	nsindirect1.ok \
813
	nsindirect2.awk \
814
	nsindirect2.ok \
815
	nsprof1.awk \
816
	nsprof1.ok \
817
	nsprof2.awk \
818
	nsprof2.ok \
408.19.54 by Arnold D. Robbins
Disallow nul bytes in source code no matter what.
819
	nulinsrc.awk \
820
	nulinsrc.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
821
	nulrsend.awk \
822
	nulrsend.in \
823
	nulrsend.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
824
	numindex.awk \
825
	numindex.in \
826
	numindex.ok \
731.11.369 by Andrew J. Schorr
Huge numeric values that overflow should convert to infinity instead of zero.
827
	numrange.awk \
828
	numrange.ok \
731.11.261 by Arnold D. Robbins
New test, numstr1.
829
	numstr1.awk \
830
	numstr1.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
831
	numsubstr.awk \
832
	numsubstr.in \
833
	numsubstr.ok \
834
	octsub.awk \
835
	octsub.ok \
836
	ofmt.awk \
837
	ofmt.in \
838
	ofmt.ok \
178 by Arnold D. Robbins
Add new test from John Haque.
839
	ofmta.awk \
840
	ofmta.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
841
	ofmtbig.awk \
842
	ofmtbig.in \
843
	ofmtbig.ok \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
844
	ofmtfidl.awk \
845
	ofmtfidl.in \
846
	ofmtfidl.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
847
	ofmts.awk \
848
	ofmts.in \
849
	ofmts.ok \
408.19.228 by Arnold D. Robbins
Fix do_print for use with strnums.
850
	ofmtstrnum.awk \
851
	ofmtstrnum.ok \
277.1.159 by Arnold D. Robbins
New test for OFS from Nelson Beebe.
852
	ofs1.awk \
853
	ofs1.in \
854
	ofs1.ok \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
855
	onlynl.awk \
856
	onlynl.in \
857
	onlynl.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
858
	opasnidx.awk \
859
	opasnidx.ok \
860
	opasnslf.awk \
861
	opasnslf.ok \
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
862
	ordchr.awk \
863
	ordchr.ok \
299.3.20 by Andrew J. Schorr
Add some missing test .ok files to EXTRA_DIST.
864
	ordchr2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
865
	out1.ok \
866
	out2.ok \
867
	out3.ok \
408.13.59 by Arnold D. Robbins
Disallow calling a function parameter. Check params are not function names.
868
	paramasfunc1.awk \
869
	paramasfunc1.ok \
870
	paramasfunc2.awk \
871
	paramasfunc2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
872
	paramdup.awk \
873
	paramdup.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
874
	paramres.awk \
875
	paramres.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
876
	paramtyp.awk \
877
	paramtyp.ok \
277.1.193 by Arnold D. Robbins
Bug fixes from John Haque.
878
	paramuninitglobal.awk \
879
	paramuninitglobal.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
880
	parse1.awk \
881
	parse1.in \
882
	parse1.ok \
883
	parsefld.awk \
884
	parsefld.in \
885
	parsefld.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
886
	parseme.awk \
887
	parseme.ok \
37 by Arnold D. Robbins
Bring in development gawk changes.
888
	patsplit.awk \
889
	patsplit.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
890
	pcntplus.awk \
891
	pcntplus.ok \
892
	pid.awk \
893
	pid.ok \
894
	pid.sh \
895
	pipeio1.awk \
896
	pipeio1.ok \
897
	pipeio2.awk \
898
	pipeio2.in \
899
	pipeio2.ok \
900
	posix.awk \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
901
	posix.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
902
	posix.ok \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
903
	posix2008sub.awk \
904
	posix2008sub.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
905
	poundbang.awk \
906
	prdupval.awk \
907
	prdupval.in \
908
	prdupval.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
909
	prec.awk \
910
	prec.ok \
911
	printf0.awk \
912
	printf0.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
913
	printf1.awk \
914
	printf1.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
915
	printfbad1.awk \
916
	printfbad1.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
917
	printfbad2.awk \
918
	printfbad2.in \
919
	printfbad2.ok \
277.1.120 by Arnold D. Robbins
Minor printf bug fix + new test for it everywhere.
920
	printfbad3.awk \
921
	printfbad3.ok \
408.13.35 by Arnold D. Robbins
Fix count$ in printf for dynamic width/precision.
922
	printfbad4.awk \
923
	printfbad4.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
924
	printfchar.awk \
925
	printfchar.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
926
	printfloat.awk \
408.5.218 by Arnold D. Robbins
Bug fix when sprintf %c on huge values in multibyte locales.
927
	printhuge.awk \
928
	printhuge.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
929
	printlang.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
930
	prmarscl.awk \
931
	prmarscl.ok \
932
	prmreuse.awk \
933
	prmreuse.ok \
934
	procinfs.awk \
935
	procinfs.ok \
408.13.72 by Arnold D. Robbins
Add new profile test.
936
	profile0.awk \
408.13.88 by Arnold D. Robbins
Fixes for building a tarball.
937
	profile0.in \
408.13.72 by Arnold D. Robbins
Add new profile test.
938
	profile0.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
939
	profile2.ok \
940
	profile3.awk \
941
	profile3.ok \
408.2.118 by Arnold D. Robbins
Additional profiling tests.
942
	profile4.awk \
943
	profile4.ok \
944
	profile5.awk \
945
	profile5.ok \
408.5.321 by Arnold D. Robbins
Fixes in pretty-printer.
946
	profile6.awk \
947
	profile6.ok \
408.5.324 by Arnold D. Robbins
Additional profiling fix.
948
	profile7.awk \
949
	profile7.ok \
408.19.69 by Arnold D. Robbins
Bug fix for pretty printing empty else part.
950
	profile8.awk \
951
	profile8.ok \
408.20.120 by Arnold D. Robbins
Make building a working tarball work again.
952
	profile9.awk \
953
	profile9.ok \
408.24.5 by Arnold D. Robbins
New profile test.
954
	profile10.awk \
955
	profile10.ok \
1028 by Arnold D. Robbins
Continue polishing comments. New test.
956
	profile11.awk \
957
	profile11.ok \
1100 by Arnold D. Robbins
Fix plain `print' to work if profiling.
958
	profile12.awk \
959
	profile12.in \
960
	profile12.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
961
	prt1eval.awk \
962
	prt1eval.ok \
963
	prtoeval.awk \
964
	prtoeval.ok \
277.1.18 by Arnold D. Robbins
Fix for ptys for coprocesses.
965
	pty1.awk \
966
	pty1.ok \
731.11.256 by Arnold D. Robbins
Fix pty handling on non-AIX, non-HP-UX systems.
967
	pty2.awk \
968
	pty2.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
969
	rand-mpfr.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
970
	rand.awk \
971
	rand.ok \
408.2.164 by Arnold D. Robbins
Improvements in the random number generator.
972
	randtest.sh \
973
	randtest.ok \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
974
	range1.awk \
975
	range1.in \
976
	range1.ok \
1136 by Arnold D. Robbins
Single-byte locales use locale settings for ignoring case.
977
	range2.awk \
978
	range2.ok \
408.19.48 by Arnold D. Robbins
Bug fix, invalid read in yylex.
979
	readbuf.awk \
980
	readbuf.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
981
	readdir.awk \
319.2.85 by Arnold D. Robbins
Finish work on iop management. New readdir test.
982
	readdir0.awk \
731.11.343 by Arnold D. Robbins
Fix problem with rebuilding records if using API parser.
983
	readdir_retest.awk \
408.5.122 by Arnold D. Robbins
Add input parser to readfile extension, document it and test it.
984
	readfile2.awk \
408.5.132 by Arnold D. Robbins
Fix test/Makefile.am for making dists.
985
	readfile2.ok \
408.13.166 by Arnold D. Robbins
Fix parsing brackets in regexps (again).
986
	rebrackloc.awk \
987
	rebrackloc.in \
988
	rebrackloc.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
989
	rebt8b1.awk \
990
	rebt8b1.ok \
991
	rebt8b2.awk \
992
	rebt8b2.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
993
	rebuf.awk \
994
	rebuf.in \
995
	rebuf.ok \
408.26.28 by Andrew J. Schorr
Fix bug where STRING flag was disabled during record reconstruction, and add test case.
996
	rebuild.awk \
997
	rebuild.in \
998
	rebuild.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
999
	redfilnm.awk \
1000
	redfilnm.in \
1001
	redfilnm.ok \
1002
	regeq.awk \
1003
	regeq.in \
1004
	regeq.ok \
408.13.34 by Arnold D. Robbins
Bug fix in regexp parsing.
1005
	regexpbrack.awk \
1006
	regexpbrack.in \
1007
	regexpbrack.ok \
408.13.156 by Arnold D. Robbins
Fix to Jan 7 2015 regexp parsing fix.
1008
	regexpbrack2.awk \
1009
	regexpbrack2.in \
1010
	regexpbrack2.ok \
277.1.163 by Arnold D. Robbins
Fix doc on ranges and locales again. Add test.
1011
	regexprange.awk \
1012
	regexprange.ok \
277.1.208 by Arnold D. Robbins
Fix bug with --traditional + --re-interval.
1013
	reginttrad.awk \
1014
	reginttrad.ok \
408.5.190 by Arnold D. Robbins
New tests for regex match against NUL byte.
1015
	regnul1.awk \
1016
	regnul1.ok \
1017
	regnul2.awk \
1018
	regnul2.ok \
253 by Arnold D. Robbins
Rationalize range expansion in regexps.
1019
	regrange.awk \
1020
	regrange.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1021
	regtest.sh \
1022
	regx8bit.awk \
1023
	regx8bit.ok \
1024
	reindops.awk \
1025
	reindops.in \
1026
	reindops.ok \
1027
	reint.awk \
1028
	reint.in \
1029
	reint.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1030
	reint2.awk \
1031
	reint2.in \
1032
	reint2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1033
	reparse.awk \
1034
	reparse.in \
1035
	reparse.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1036
	resplit.awk \
1037
	resplit.in \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1038
	resplit.ok \
319.1.20 by Arnold D. Robbins
Add output and two-way processors to API. Update Mac config stuff.
1039
	revout.awk \
1040
	revout.ok \
1041
	revtwoway.awk \
1042
	revtwoway.ok \
277.1.85 by Arnold D. Robbins
Finish RRI changes per points from Paolo Bonzini.
1043
	rri1.awk \
1044
	rri1.in \
1045
	rri1.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1046
	rs.awk \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1047
	rs.in \
1048
	rs.ok \
408.19.161 by Arnold D. Robbins
Fix multicharacter RS in traditional/posix modes.
1049
	rscompat.awk \
1050
	rscompat.in \
1051
	rscompat.ok \
408.5.167 by Arnold D. Robbins
Fix in read_a_record for short file with RS=regex.
1052
	rsgetline.awk \
1053
	rsgetline.in \
1054
	rsgetline.ok \
408.5.168 by Arnold D. Robbins
Additional fix for TERMNEAREND.
1055
	rsglstdin.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1056
	rsnul1nl.awk \
1057
	rsnul1nl.in \
1058
	rsnul1nl.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1059
	rsnulbig.ok \
1060
	rsnulbig2.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
1061
	rsstart1.awk \
1062
	rsstart1.in \
1063
	rsstart1.ok \
1064
	rsstart2.awk \
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
1065
	rsstart2.in \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
1066
	rsstart2.ok \
1067
	rsstart3.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1068
	rstest1.awk \
1069
	rstest1.ok \
1070
	rstest2.awk \
1071
	rstest2.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1072
	rstest3.awk \
1073
	rstest3.ok \
1074
	rstest4.awk \
1075
	rstest4.ok \
1076
	rstest5.awk \
1077
	rstest5.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1078
	rstest6.awk \
1079
	rstest6.in \
1080
	rstest6.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1081
	rswhite.awk \
1082
	rswhite.in \
1083
	rswhite.ok \
277.1.33 by Arnold D. Robbins
Fix RT handling if partial terminators.
1084
	rtlen.ok \
1085
	rtlen.sh \
376 by Arnold D. Robbins
Fix test/Makefile.am to get new file for tarballs.
1086
	rtlenmb.ok \
277.1.33 by Arnold D. Robbins
Fix RT handling if partial terminators.
1087
	rtlen01.ok \
1088
	rtlen01.sh \
319.2.45 by Arnold D. Robbins
Add rwarray to extension tests.
1089
	rwarray.awk \
1090
	rwarray.in \
1091
	rwarray.ok \
1146.1.22 by Arnold D. Robbins
Improve sandbox mode.
1092
	sandbox1.awk \
1093
	sandbox1.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1094
	scalar.awk \
1095
	scalar.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1096
	sclforin.awk \
1097
	sclforin.ok \
1098
	sclifin.awk \
1099
	sclifin.ok \
731.11.221 by Andrew J. Schorr
Fix field corruption when $0 is reassigned with open $n references.
1100
	setrec0.awk \
1101
	setrec0.in \
1102
	setrec0.ok \
1103
	setrec1.awk \
1104
	setrec1.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1105
	shadow.awk \
1106
	shadow.ok \
408.18.2 by Arnold D. Robbins
Make builtin shadowing work. Add test and doc.
1107
	shadowbuiltin.awk \
1108
	shadowbuiltin.ok \
408.19.170 by Arnold D. Robbins
Fix issues with SIGPIPE.
1109
	sigpipe1.awk \
1110
	sigpipe1.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1111
	sort1.awk \
1112
	sort1.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1113
	sortempty.awk \
1114
	sortempty.ok \
112 by Arnold D. Robbins
Add controlled array sorting in for loop. Needs documenting.
1115
	sortfor.awk \
1116
	sortfor.in \
1117
	sortfor.ok \
408.19.235 by Arnold D. Robbins
New test for sorted for.
1118
	sortfor2.awk \
1119
	sortfor2.in \
1120
	sortfor2.ok \
408.13.1 by Arnold D. Robbins
Add field reference changes. Currently breaks sortglos test.
1121
	sortglos.awk \
1122
	sortglos.in \
1123
	sortglos.ok \
183 by Arnold D. Robbins
User function sorting added, documented, tested.
1124
	sortu.awk \
1125
	sortu.ok \
731.9.1 by Arnold D. Robbins
Additional fix for --source, and add test case.
1126
	sourcesplit.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1127
	space.ok \
731.11.357 by Arnold D. Robbins
New test: spacere.
1128
	spacere.awk \
1129
	spacere.ok \
408.5.29 by Arnold D. Robbins
Bug fix to do_split().
1130
	split_after_fpat.awk \
1131
	split_after_fpat.in \
1132
	split_after_fpat.ok \
37 by Arnold D. Robbins
Bring in development gawk changes.
1133
	splitarg4.awk \
1134
	splitarg4.in \
1135
	splitarg4.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1136
	splitargv.awk \
1137
	splitargv.in \
1138
	splitargv.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1139
	splitarr.awk \
1140
	splitarr.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1141
	splitdef.awk \
1142
	splitdef.ok \
1143
	splitvar.awk \
1144
	splitvar.in \
1145
	splitvar.ok \
1146
	splitwht.awk \
1147
	splitwht.ok \
1148
	sprintfc.awk \
1149
	sprintfc.in \
1150
	sprintfc.ok \
408.26.42 by Arnold D. Robbins
Make return status of close on a pipe like system.
1151
	status-close.awk \
1152
	status-close.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1153
	strcat1.awk \
1154
	strcat1.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
1155
	strftime.awk \
1156
	strftlng.awk \
1157
	strftlng.ok \
731.8.2 by Andrew J. Schorr
Fix bug in strftime when format argument is an unterminated field string.
1158
	strftfld.awk \
1159
	strftfld.in \
1160
	strftfld.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
1161
	strnum1.awk \
1162
	strnum1.ok \
408.26.11 by Andrew J. Schorr
Call fixtype in a few more places to make sure we check types properly.
1163
	strnum2.awk \
1164
	strnum2.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1165
	strtod.awk \
1166
	strtod.in \
1167
	strtod.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1168
	strtonum.awk \
1169
	strtonum.ok \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
1170
	strtonum1.awk \
1171
	strtonum1.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1172
	subamp.awk \
1173
	subamp.in \
1174
	subamp.ok \
408.19.200 by Arnold D. Robbins
Fix long runs of backslashes in sub/gsub.
1175
	subback.awk \
1176
	subback.in \
1177
	subback.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1178
	subi18n.awk \
1179
	subi18n.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1180
	subsepnm.awk \
1181
	subsepnm.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1182
	subslash.awk \
1183
	subslash.ok \
1184
	substr.awk \
1185
	substr.ok \
1186
	swaplns.awk \
1187
	swaplns.in \
1188
	swaplns.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1189
	switch2.awk \
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
1190
	switch2.ok \
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
1191
	symtab1.awk \
1192
	symtab1.ok \
1193
	symtab2.awk \
1194
	symtab2.ok \
1195
	symtab3.awk \
1196
	symtab3.ok \
319.1.96 by Arnold D. Robbins
Bug fixes for SYMTAB.
1197
	symtab4.awk \
1198
	symtab4.in \
1199
	symtab4.ok \
1200
	symtab5.awk \
1201
	symtab5.in \
1202
	symtab5.ok \
1203
	symtab6.awk \
1204
	symtab6.ok \
336 by Arnold D. Robbins
Two new SYMTAB tests.
1205
	symtab7.awk \
1206
	symtab7.in \
1207
	symtab7.ok \
1208
	symtab8.awk \
1209
	symtab8.in \
1210
	symtab8.ok \
347 by Arnold D. Robbins
Make indirectly updated vars accessable to SYMTAB, API.
1211
	symtab9.awk \
1212
	symtab9.ok \
408.19.191 by Arnold D. Robbins
Bug fix in symbol lookup, could break watchpoints.
1213
	symtab10.awk \
1214
	symtab10.in \
1215
	symtab10.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1216
	synerr1.awk \
1217
	synerr1.ok \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1218
	synerr2.awk \
1219
	synerr2.ok \
1146.1.5 by Arnold D. Robbins
Fix core dump upon syntax error.
1220
	synerr3.awk \
1221
	synerr3.ok \
731.11.335 by Arnold D. Robbins
Remove the tail recursion optimization.
1222
	tailrecurse.awk \
1223
	tailrecurse.ok \
319.2.31 by Arnold D. Robbins
Add testext to list of shared library tests.
1224
	testext.ok \
319.4.3 by Andrew J. Schorr
Add time extension providing gettimeofday and sleep.
1225
	time.awk \
1226
	time.ok \
408.12.41 by Andrew J. Schorr
Add read timeout/retry test.
1227
	timeout.awk \
1228
	timeout.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1229
	tradanch.awk \
1230
	tradanch.in \
1231
	tradanch.ok \
731.17.38 by Arnold D. Robbins
Bug fix for trailing backslash in dynamic regexp.
1232
	trailbs.awk \
1233
	trailbs.in \
1234
	trailbs.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1235
	tweakfld.awk \
1236
	tweakfld.in \
1237
	tweakfld.ok \
408.20.42 by Arnold D. Robbins
Cleanup files and fix up tests for typed regexes and typeof.
1238
	typedregex1.awk \
1239
	typedregex1.ok \
408.20.58 by Arnold D. Robbins
Additional memory fixes and test for typedregex.
1240
	typedregex2.awk \
1241
	typedregex2.ok \
408.20.61 by Arnold D. Robbins
Typed regex fix, if in an array.
1242
	typedregex3.awk \
1243
	typedregex3.ok \
731.18.14 by Arnold D. Robbins
Add test for command line typed regexp assignment.
1244
	typedregex4.awk \
1245
	typedregex4.ok \
1222 by Arnold D. Robbins
Fix assigning typed regex to FS and RS.
1246
	typedregex5.awk \
1247
	typedregex5.in \
1248
	typedregex5.ok \
1249
	typedregex6.awk \
1250
	typedregex6.in \
1251
	typedregex6.ok \
408.20.42 by Arnold D. Robbins
Cleanup files and fix up tests for typed regexes and typeof.
1252
	typeof1.awk \
1253
	typeof1.ok \
408.20.44 by Arnold D. Robbins
Fix typeof to not change untyped param to scalar.
1254
	typeof2.awk \
1255
	typeof2.ok \
408.20.48 by Arnold D. Robbins
More work straightening out typeof, including tests.
1256
	typeof3.awk \
1257
	typeof3.ok \
1258
	typeof4.awk \
1259
	typeof4.ok \
731.3.49 by Arnold D. Robbins
Fix typeof on null fields.
1260
	typeof5.awk \
1261
	typeof5.in \
1262
	typeof5.ok \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1263
	uninit2.awk \
1264
	uninit2.ok \
1265
	uninit3.awk \
1266
	uninit3.ok \
1267
	uninit4.awk \
1268
	uninit4.ok \
36 by Arnold D. Robbins
Move to 3.1.8.
1269
	uninit5.awk \
1270
	uninit5.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1271
	uninitialized.awk \
1272
	uninitialized.ok \
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1273
	unterm.awk \
1274
	unterm.ok \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1275
	uparrfs.awk \
1276
	uparrfs.in \
1277
	uparrfs.ok \
731.11.303 by Andrew J. Schorr
Fix bug printing +"01" in regular and MPFR mode.
1278
	uplus.awk \
1279
	uplus.ok \
408.19.275 by Arnold D. Robbins
Add valgrind.awk to EXTRA_DIST in test/Makefile.am.
1280
	valgrind.awk \
408.19.59 by Arnold D. Robbins
Make watchpoints fire before breakpoints in the debugger.
1281
	watchpoint1.awk \
1282
	watchpoint1.in \
1283
	watchpoint1.ok \
1284
	watchpoint1.script \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1285
	wideidx.awk \
1286
	wideidx.in \
1287
	wideidx.ok \
1288
	wideidx2.awk \
1289
	wideidx2.ok \
1290
	widesub.awk \
1291
	widesub.ok \
1292
	widesub2.awk \
1293
	widesub2.ok \
1294
	widesub3.awk \
1295
	widesub3.in \
1296
	widesub3.ok \
1297
	widesub4.awk \
1298
	widesub4.ok \
33 by Arnold D. Robbins
Move to gawk 3.1.5.
1299
	wjposer1.awk \
1300
	wjposer1.in \
1301
	wjposer1.ok \
60 by Arnold D. Robbins
Clean up sprintf return type. Add tests for pgawk.
1302
	xref.awk \
1303
	xref.original \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1304
	zero2.awk \
1305
	zero2.ok \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1306
	zeroe0.awk \
1307
	zeroe0.ok \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1308
	zeroflag.awk \
1309
	zeroflag.ok
1310
319.9.4 by Arnold D. Robbins
Add tests for SYMTAB and FUNCTAB.
1311
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1312
# Get rid of core files when cleaning and generated .ok file
1313
CLEANFILES = core core.* fmtspcl.ok
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1314
277.1.101 by Arnold D. Robbins
General prep for release. (Copyrights, etc.)
1315
# try to keep these sorted. each letter starts a new line
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1316
BASIC_TESTS = \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1317
	addcomma anchgsub anchor argarray arrayind1 arrayind2 arrayind3 arrayparm \
1318
	arrayprm2 arrayprm3 arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 \
1319
	arynasty arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
1146.1.13 by Andrew J. Schorr
Add another numeric field assignment test.
1320
	aryprm8 aryprm9 arysubnm aryunasgn asgext awkpath \
1321
	assignnumfield assignnumfield2 \
408.13.30 by Arnold D. Robbins
New test for bad builds (with non-bison).
1322
	back89 backgsub badassign1 badbuild \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1323
	callparam childin clobber closebad clsflnam compare compare2 \
1324
	concat1 concat2 concat3 concat4 concat5 convfmt \
408.4.7 by Arnold D. Robbins
New test case for dfa problem fixed earlier.
1325
	datanonl defref delargv delarpm2 delarprm delfunc dfamb1 dfastress dynlj \
1146.1.39 by Arnold D. Robbins
Fix /\{/ to not warn if --posix.
1326
	escapebrace eofsplit eofsrc1 exit2 exitval1 exitval2 exitval3 \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1327
	fcall_exit fcall_exit2 fldchg fldchgnf fldterm fnamedat fnarray fnarray2 \
1146.1.8 by Arnold D. Robbins
Fix bug with ^ in FS.
1328
	fnaryscl fnasgnm fnmisc fordel forref forsimp fsbs fscaret fsnul1 \
1329
	fsrs fsspcoln fstabplus funsemnl funsmnam funstack \
277.1.157 by Arnold D. Robbins
Doc update and new test on getline with side effects.
1330
	getline getline2 getline3 getline4 getline5 getlnbuf getnr2tb getnr2tm \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1331
	gsubasgn gsubtest gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 gsubtst7 \
1332
	gsubtst8 \
408.19.189 by Arnold D. Robbins
Disallow negative hex numbers in input data.
1333
	hex hex2 hsprint \
408.13.158 by Arnold D. Robbins
Make call-by-value work again for $0.
1334
	inpref inputred intest intprec iobug1 \
277.1.101 by Arnold D. Robbins
General prep for release. (Copyrights, etc.)
1335
	leaddig leadnl litoct longsub longwrds \
731.11.310 by Arnold D. Robbins
Move mtchi18n test into locale tests.
1336
	manglprm math membug1 memleak messages minusstr mmap8k \
408.4.34 by Arnold D. Robbins
Fix problem when extending NF. See test/nfloop.
1337
	nasty nasty2 negexp negrange nested nfldstr nfloop nfneg nfset nlfldsep \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1338
	nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl noparms \
731.11.369 by Andrew J. Schorr
Huge numeric values that overflow should convert to infinity instead of zero.
1339
	nors nulinsrc nulrsend numindex numrange numstr1 numsubstr \
408.19.228 by Arnold D. Robbins
Fix do_print for use with strnums.
1340
	octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofmtstrnum ofs1 onlynl \
1341
	opasnidx opasnslf \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1342
	paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \
1343
	parse1 parsefld parseme pcntplus posix2008sub prdupval prec printf0 \
1344
	printf1 printfchar prmarscl prmreuse prt1eval prtoeval \
1136 by Arnold D. Robbins
Single-byte locales use locale settings for ignoring case.
1345
	rand randtest range1 range2 readbuf rebrackloc rebt8b1 rebuild redfilnm regeq \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1346
	regexpbrack regexpbrack2 regexprange regrange reindops reparse resplit \
1347
	rri1 rs rscompat rsnul1nl rsnulbig rsnulbig2 rstest1 rstest2 rstest3 \
1348
	rstest4 rstest5 rswhite \
731.11.221 by Andrew J. Schorr
Fix field corruption when $0 is reassigned with open $n references.
1349
	scalar sclforin sclifin setrec0 setrec1 \
731.11.357 by Arnold D. Robbins
New test: spacere.
1350
	sigpipe1 sortempty sortglos spacere splitargv splitarr \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1351
	splitdef splitvar splitwht status-close strcat1 strnum1 strnum2 strtod \
1146.1.5 by Arnold D. Robbins
Fix core dump upon syntax error.
1352
	subamp subback subi18n subsepnm subslash substr swaplns synerr1 synerr2 synerr3 \
731.17.38 by Arnold D. Robbins
Bug fix for trailing backslash in dynamic regexp.
1353
	tailrecurse tradanch trailbs tweakfld \
731.11.303 by Andrew J. Schorr
Fix bug printing +"01" in regular and MPFR mode.
1354
	uninit2 uninit3 uninit4 uninit5 uninitialized unterm uparrfs uplus \
277.1.101 by Arnold D. Robbins
General prep for release. (Copyrights, etc.)
1355
	wideidx wideidx2 widesub widesub2 widesub3 widesub4 wjposer1 \
1356
	zero2 zeroe0 zeroflag
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1357
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1358
UNIX_TESTS = \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1359
	fflush getlnhd localenl pid pipeio1 pipeio2 poundbang rtlen rtlen01 \
1360
	space strftlng
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1361
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
1362
GAWK_EXT_TESTS = \
731.11.386 by Arnold D. Robbins
Fix coredump from IGNORECASE array sorting.
1363
	aadelete1 aadelete2 aarray1 aasort aasorti argtest arraysort arraysort2 \
1053 by Andrew J. Schorr
Implement optional second array arg to type of returning info on variable internals.
1364
	arraytype \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1365
	backw badargs beginfile1 beginfile2 binmode1 \
1366
	charasbytes colonwarn clos1way clos1way2 clos1way3 clos1way4 clos1way5 \
1367
	clos1way6 crlf \
1104 by Arnold D. Robbins
Fix calling user defined functions from eval.
1368
	dbugeval dbugeval2 dbugeval3 dbugtypedre1 dbugtypedre2 delsub \
731.18.29 by Arnold D. Robbins
Bug fix in dfa, with test.
1369
	devfd devfd1 devfd2 dfacheck1 dumpvars \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1370
	errno exit \
1371
	fieldwdth forcenum fpat1 fpat2 fpat3 fpat4 fpat5 fpat6 fpatnull fsfwfs \
1372
	funlen functab1 functab2 functab3 fwtest fwtest2 fwtest3 fwtest4 \
1373
	fwtest5 fwtest6 fwtest7 fwtest8 \
731.3.38 by Arnold D. Robbins
Merge branch 'gawk-4.1-stable'
1374
	genpot gensub gensub2 gensub3 getlndir gnuops2 gnuops3 gnureops gsubind \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1375
	icasefs icasers id igncdym igncfs ignrcas2 ignrcas4 ignrcase incdupe \
1376
	incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 include include2 \
731.11.274 by Arnold D. Robbins
Fix isarray to take unset variable.
1377
	indirectbuiltin indirectcall indirectcall2 intarray isarrayunset \
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
1378
	lint lintexp lintindex lintint lintlength lintold lintset lintwarn \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1379
	manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1380
	nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \
1146.1.45 by Arnold D. Robbins
Fix a problem when using awk::var kinds of names.
1381
	nsawk1a nsawk1b nsawk1c nsawk2a nsawk2b \
1056.2.8 by Arnold D. Robbins
Rework namespace handling to make simpler and correct. Add two test cases.
1382
	nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1383
	patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge \
1384
	procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \
1100 by Arnold D. Robbins
Fix plain `print' to work if profiling.
1385
	profile7 profile8 profile9 profile10 profile11 profile12 pty1 pty2 \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1386
	rebuf regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin \
1387
	rsstart1 rsstart2 rsstart3 rstest6 \
1146.1.22 by Arnold D. Robbins
Improve sandbox mode.
1388
	sandbox1 shadow shadowbuiltin sortfor sortfor2 sortu \
1389
	sourcesplit split_after_fpat \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1390
	splitarg4 strftfld strftime strtonum strtonum1 switch2 symtab1 symtab2 \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1391
	symtab3 symtab4 symtab5 symtab6 symtab7 symtab8 symtab9 symtab10 \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1392
	timeout typedregex1 typedregex2 typedregex3 typedregex4 \
1222 by Arnold D. Robbins
Fix assigning typed regex to FS and RS.
1393
	typedregex5 typedregex6 \
731.18.16 by Arnold D. Robbins
Layout improvement in test/Makefile.am.
1394
	typeof1 typeof2 typeof3 typeof4 typeof5 \
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1395
	watchpoint1
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1396
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
1397
ARRAYDEBUG_TESTS = arrdbg
1398
408.19.240 by Arnold D. Robbins
Move ignrcas3 test out of the line of fire.
1399
EXTRA_TESTS = inftest regtest ignrcas3 
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1400
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1401
INET_TESTS = inetdayu inetdayt inetechu inetecht
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1402
731.17.19 by Arnold D. Robbins
Disable fmtspcl test.
1403
MACHINE_TESTS = double1 double2 intformat
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1404
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1405
LOCALE_CHARSET_TESTS = \
408.4.60 by Arnold D. Robbins
Addtional fix for \s in multibyte locales.
1406
	asort asorti backbigs1 backsmalls1 backsmalls2 \
408.4.43 by Arnold D. Robbins
Fix multibyte \s and \S in dfa.c from GNU grep.
1407
	fmttest fnarydel fnparydl jarebug lc_num1 mbfw1 \
731.9.18 by Arnold D. Robbins
Fix multibyte char printf problem, add test.
1408
	mbprintf1 mbprintf2 mbprintf3 mbprintf4 mbprintf5 \
731.11.310 by Arnold D. Robbins
Move mtchi18n test into locale tests.
1409
	mtchi18n nlstringtest rebt8b2 rtlenmb sort1 sprintfc
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1410
319.2.45 by Arnold D. Robbins
Add rwarray to extension tests.
1411
SHLIB_TESTS = \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1412
	apiterm \
1413
	filefuncs fnmatch fork fork2 fts functab4 \
1414
	getfile \
1146.1.48 by Arnold D. Robbins
Add backwards compatibility tests for inplace extension.
1415
	inplace1 inplace2 inplace2bcomp inplace3 inplace3bcomp \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1416
	ordchr ordchr2 \
731.11.343 by Arnold D. Robbins
Fix problem with rebuilding records if using API parser.
1417
	readdir readdir_test readdir_retest readfile readfile2 revout \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1418
	revtwoway rwarray \
1419
	testext time
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
1420
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1421
# List of the tests which should be run with --debug option:
1104 by Arnold D. Robbins
Fix calling user defined functions from eval.
1422
NEED_DEBUG = dbugtypedre1 dbugtypedre2 dbugeval2 dbugeval3 symtab10
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1423
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1424
# List of the tests which should be run with --lint option:
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1425
NEED_LINT = \
731.11.102 by Arnold D. Robbins
Sort and prettify the lists of tests.
1426
	defref fmtspcl lintexp lintindex lintint lintlength lintwarn \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1427
	noeffect nofmtch nonl shadow uninit2 uninit3 uninit4 uninit5 uninitialized
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1428
1429
# List of the tests which should be run with --lint-old option:
1430
NEED_LINT_OLD = lintold
1431
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1432
# List of tests that must be run with -M
731.17.42 by Arnold D. Robbins
Fix problem with MPFR conversion to int from hex numbers.
1433
NEED_MPFR = mpfrbigint mpfrbigint2 mpfrexprange mpfrfield mpfrieee mpfrmemok1 \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1434
	mpfrnegzero mpfrnr mpfrrem mpfrrnd mpfrrndeval mpfrsort mpfrsqrt \
1215 by Arnold D. Robbins
New test: mpfranswer42.
1435
	mpfrstrtonum mpgforcenum mpfruplus mpfranswer42
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1436
1437
# List of tests that need --non-decimal-data
731.17.42 by Arnold D. Robbins
Fix problem with MPFR conversion to int from hex numbers.
1438
NEED_NONDEC = mpfrbigint2 nondec2 intarray forcenum
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1439
1440
# List of tests that need --posix
1146.1.39 by Arnold D. Robbins
Fix /\{/ to not warn if --posix.
1441
NEED_POSIX = escapebrace printf0 posix2008sub paramasfunc1 paramasfunc2 muldimposix
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1442
1443
# List of tests that need --pretty-print
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
1444
NEED_PRETTY = nsprof1 nsprof2 \
1445
	profile4 profile5 profile8 profile9 profile10 profile11
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1446
1447
# List of tests that need --re-interval
1448
NEED_RE_INTERVAL = gsubtst3 reint reint2
1449
1146.1.22 by Arnold D. Robbins
Improve sandbox mode.
1450
# List of tests that need --sandbox
1451
NEED_SANDBOX = sandbox1
1452
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1453
# List of tests that need --traditional
1454
NEED_TRADITIONAL = litoct tradanch rscompat
1455
1456
# Lists of tests that run a shell script
1457
RUN_SHELL = exit fflush localenl next randtest rtlen rtlen01
1458
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1459
# List of the tests which fail with EXIT CODE 1
206 by Arnold D. Robbins
PROCINFO sorting only if not posix. Doc updates.
1460
FAIL_CODE1 = \
408.19.201 by Arnold D. Robbins
Update FAIL_CODE1 in Makefile.am.
1461
	badassign1 badbuild callparam delfunc fcall_exit fcall_exit2 \
1462
	fnamedat fnarray fnarray2 fnasgnm fnmisc funsmnam gsubasgn \
1463
	incdupe2 lintwarn match2 mixed1 noparms paramasfunc1 paramasfunc2 \
1464
	paramdup paramres parseme readbuf synerr1 synerr2 unterm
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1465
303 by Arnold D. Robbins
Make MPRF tests pass too.
1466
# List of files which have .ok versions for MPFR
1467
CHECK_MPFR = \
1468
	rand fnarydel fnparydl
1469
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1470
# Lists of tests that need particular locales
1471
NEED_LOCALE_C = \
1136 by Arnold D. Robbins
Single-byte locales use locale settings for ignoring case.
1472
	clos1way gsubtst6 range2
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1473
1474
NEED_LOCALE_EN = \
1475
	backbigs1 backsmalls1 backsmalls2 concat4 dfamb1 ignrcas2 lc_num1 \
1476
	mbfw1 mbprintf1 mbprintf3 mbprintf4 mbstr1 mbstr2 printhuge reint2 \
1477
	rri1 subamp subi18n wideidx wideidx2 widesub widesub2 widesub3 widesub4
1478
1479
# Unused at the moment, since nlstringtest has additional stufff it does
1480
# NEED_LOCALE_FR =
1481
# Same for ignrcas3
1482
# NEED_LOCALE_GR =
1483
1484
NEED_LOCALE_JP = mbprintf2
1485
1486
NEED_LOCALE_RU = mtchi18n
1487
1488
# List of tests that fail on DJGPP
1489
EXPECTED_FAIL_DJGPP = \
1490
	backbigs1 backsmalls1 backw beginfile1 clos1way clos1way2 \
1491
	clos1way3 clos1way4 clos1way5 clos1way6 errno getlndir \
1492
	getlnhd gnuops3 gnureops id ignrcas3 inetdayt inetdayu \
1493
	inetecht inetechu inftest jarebug mbfw1 mbprintf1 mbprintf4 \
1494
	mbstr1 mbstr2 mpfrsqrt nonfatal1 nonfatal2 nonfatal3 pid pty1 pty2 \
1089 by Arnold D. Robbins
Updates for DJGPP.
1495
	randtest regx8bit strtod sigpipe1 symtab6 timeout
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1496
1497
# List of tests that fail on MinGW
1498
EXPECTED_FAIL_MINGW = \
1499
	backbigs1 backsmalls1 clos1way6 devfd devfd1 devfd2 \
1500
	errno exitval2 fork fork2 fts getfile getlnhd ignrcas3 inetdayt \
1501
	inetecht mbfw1 mbprintf1 mbprintf4 mbstr1 mbstr2 pid pipeio2 \
1107 by Eli Zaretskii
readdir_test and readdir_retest tests no longer fail on MinGW.
1502
	pty1 pty2 readdir rstest4 rstest5 status-close timeout
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1503
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1504
# List of tests that fail on z/OS
1505
EXPECTED_FAIL_ZOS = \
1506
	aasort aasorti arraysort asort asorti backbigs1 backsmalls1 \
1507
	backsmalls2 charasbytes concat4 dfamb1 double1 double2 fmttest \
1508
	forcenum gsubtst5 ignrcas2 lc_num1 localenl mbfw1 mbprintf1 \
1509
	mbprintf2 mbprintf3 mbprintf4 mbprintf5 mbstr1 mbstr2 numrange \
1510
	printhuge profile5 regrange reint2 rri1 sigpipe1 sortfor sortu \
1511
	subamp subi18n symtab1 symtab8 timeout wideidx wideidx2 \
1512
	widesub widesub2 widesub3 widesub4 \
1513
	beginfile1 beginfile2 clos1way6 errno getlndir nofile nonfatal2 space
1514
1515
ZOS_FAIL = @ZOS_FAIL@
1516
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1517
# List of the files that appear in manual tests or are for reserve testing:
731.17.19 by Arnold D. Robbins
Disable fmtspcl test.
1518
GENTESTS_UNUSED = Makefile.in checknegtime.awk dtdgport.awk fix-fmtspcl.awk \
1519
	fmtspcl-mpfr.ok fmtspcl.awk fmtspcl.tok gtlnbufv.awk hello.awk \
1520
	inchello.awk inclib.awk inplace.1.in inplace.2.in inplace.in \
1521
	printfloat.awk readdir0.awk valgrind.awk xref.awk
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1522
1523
# List of tests on MinGW or DJGPP that need a different cmp program
1524
NEED_TESTOUTCMP = \
1525
	beginfile2 double2 exit fmttest hsprint posix profile5 space
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1526
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1527
CMP = cmp
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1528
AWKPROG = ../gawk$(EXEEXT)
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1529
SORT = sort
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1530
299.3.22 by Andrew J. Schorr
Protect against environment VALGRIND value.
1531
# Default for VALGRIND is empty unless overridden by a command-line argument.
1532
# This protects against cruft in the environment.
1533
VALGRIND = 
1534
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1535
# This business forces the locale to be C for running the tests,
1536
# unless we override it to something else for testing.
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1537
#
1538
# This can also be done in individual tests where we wish to
1539
# check things specifically not in the C locale.
319.1.6 by Arnold D. Robbins
Merge branch 'xgawk'
1540
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
1541
#
1542
# And we set AWKLIBPATH to find the extension libraries we built.
731.11.297 by Arnold D. Robbins
Improve locale independence of the tests.
1543
LOCALES = LANGUAGE= LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C}
408.2.56 by Arnold D. Robbins
Fix 'next' test to be locale-independent.
1544
AWK = $(LOCALES) AWKLIBPATH=../extension/.libs $(VALGRIND) $(AWKPROG)
302 by john haque
Finish builtins for MPFR.
1545
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1546
# Message stuff is to make it a little easier to follow.
1547
# Make the pass-fail last and dependent on others to avoid
1548
# spurious errors if `make -j' in effect.
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1549
check:	msg \
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1550
	printlang \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1551
	basic-msg-start  basic           basic-msg-end \
1552
	unix-msg-start   unix-tests      unix-msg-end \
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
1553
	extend-msg-start gawk-extensions arraydebug-tests extend-msg-end \
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1554
	machine-msg-start machine-tests machine-msg-end \
408.13.128 by Arnold D. Robbins
Robustify the charset tests against missing locales.
1555
	charset-tests-all \
390 by Arnold D. Robbins
Run MPFR tests is MPFR is available.
1556
	shlib-msg-start  shlib-tests     shlib-msg-end \
395 by Andrew J. Schorr
Use gawk --version to decide whether to run MPFR tests.
1557
	mpfr-msg-start   mpfr-tests      mpfr-msg-end
408.13.29 by Arnold D. Robbins
If a test fails, run make diffout and exit 1.
1558
	@$(MAKE) pass-fail || { $(MAKE) diffout; exit 1; }
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1559
1560
basic:	$(BASIC_TESTS)
1561
1562
unix-tests: $(UNIX_TESTS)
1563
1564
gawk-extensions: $(GAWK_EXT_TESTS)
1565
408.13.128 by Arnold D. Robbins
Robustify the charset tests against missing locales.
1566
charset-tests-all:
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1567
	@case `uname` in \
1568
	*MINGW* | *MS-DOS*) \
1569
		$(MAKE) charset-msg-start charset-tests charset-msg-end ;; \
1570
	*) \
1571
		if locale -a | grep -i 'en_US.UTF.*8' > /dev/null && \
1572
		   locale -a | grep -i 'fr_FR.UTF.*8' > /dev/null && \
1573
		   locale -a | grep -i 'ru_RU.UTF.*8' > /dev/null && \
1574
		   locale -a | grep -i 'ja_JP.UTF.*8' > /dev/null  ; \
1575
		then \
1576
			$(MAKE) charset-msg-start charset-tests charset-msg-end; \
1577
		else \
1578
			echo %%%%%%%%%% Inadequate locale support: skipping charset tests. ; \
1579
			echo %%%%%%%%%% At least en_US.UTF-8, fr_FR.UTF-8, ru_RU.UTF-8 and ja_JP.UTF-8 are needed. ; \
1580
		fi ;; \
1581
	esac
408.13.128 by Arnold D. Robbins
Robustify the charset tests against missing locales.
1582
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1583
charset-tests: $(LOCALE_CHARSET_TESTS)
1584
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1585
extra:	$(EXTRA_TESTS) inet
1586
1587
inet:	inetmesg $(INET_TESTS)
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1588
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1589
machine-tests: $(MACHINE_TESTS)
1590
408.2.105 by Arnold D. Robbins
Move Makefile.in fix to Makefile.am.
1591
# The blank between ' and /MPFR/ is for running tests on Windows under
1592
# MSYS, which thinks /MPFR is a Unix-style file name and converts it
1593
# to Windows format, butchering it in the process.  Likewise for /API/
1594
# in the next shlib-tests.
395 by Andrew J. Schorr
Use gawk --version to decide whether to run MPFR tests.
1595
mpfr-tests:
408.2.105 by Arnold D. Robbins
Move Makefile.in fix to Makefile.am.
1596
	@if $(AWK) --version | $(AWK) ' /MPFR/ { exit 1 }' ; then \
395 by Andrew J. Schorr
Use gawk --version to decide whether to run MPFR tests.
1597
	echo MPFR tests not supported on this system ; \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1598
	else $(MAKE) $(NEED_MPFR) ; \
395 by Andrew J. Schorr
Use gawk --version to decide whether to run MPFR tests.
1599
	fi
305 by john haque
Bug fixes and tests for MPFR.
1600
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
1601
arraydebug-tests:
1602
	@if echo $(CFLAGS) | grep ARRAYDEBUG > /dev/null ; then \
1603
	$(MAKE) $(ARRAYDEBUG_TESTS) ; \
1604
	else echo gawk is not compiled to support the array debug tests ; \
1605
	fi
1606
319.1.37 by Arnold D. Robbins
Only run shlib tests on systems that support them.
1607
shlib-tests:
408.2.105 by Arnold D. Robbins
Move Makefile.in fix to Makefile.am.
1608
	@if $(AWK) --version | $(AWK) ' /API/ { exit 1 }' ; then \
401 by Arnold D. Robbins
Add API to --version output. Use it for shlib tests.
1609
	echo shlib tests not supported on this system ; \
1610
	else $(MAKE) shlib-real-tests ; \
319.1.37 by Arnold D. Robbins
Only run shlib tests on systems that support them.
1611
	fi
1612
1613
shlib-real-tests: $(SHLIB_TESTS)
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
1614
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1615
msg::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1616
	@echo ''
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1617
	@echo 'Any output from "$(CMP)" is bad news, although some differences'
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1618
	@echo 'in floating point values are probably benign -- in particular,'
1619
	@echo 'some systems may omit a leading zero and the floating point'
1620
	@echo 'precision may lead to slightly different output in a few cases.'
1621
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1622
printlang::
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1623
	@$(AWK) -f "$(srcdir)"/printlang.awk
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1624
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1625
basic-msg-start:
1626
	@echo "======== Starting basic tests ========"
1627
1628
basic-msg-end:
1629
	@echo "======== Done with basic tests ========"
1630
1631
unix-msg-start:
1632
	@echo "======== Starting Unix tests ========"
1633
1634
unix-msg-end:
1635
	@echo "======== Done with Unix tests ========"
1636
1637
extend-msg-start:
1638
	@echo "======== Starting gawk extension tests ========"
1639
1640
extend-msg-end:
1641
	@echo "======== Done with gawk extension tests ========"
1642
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1643
machine-msg-start:
1644
	@echo "======== Starting machine-specific tests ========"
1645
1646
machine-msg-end:
1647
	@echo "======== Done with machine-specific tests ========"
1648
1649
charset-msg-start:
1650
	@echo "======== Starting tests that can vary based on character set or locale support ========"
408.13.128 by Arnold D. Robbins
Robustify the charset tests against missing locales.
1651
	@echo "**************************************************************************"
1652
	@echo "* Some or all of these tests may fail if you have inadequate or missing  *"
731.11.273 by Arnold D. Robbins
Improve messages in Makefile.am about French locale now needed.
1653
	@echo "* locale support. At least en_US.UTF-8, fr_FR.UTF-8, ru_RU.UTF-8 and     *"
1654
	@echo "* ja_JP.UTF-8 are needed. The el_GR.iso88597 is optional but helpful.    *"
1655
	@echo "* However, if you see this message, the Makefile thinks you have what    *"
1656
	@echo "* you need ...                                                           *"
408.13.128 by Arnold D. Robbins
Robustify the charset tests against missing locales.
1657
	@echo "**************************************************************************"
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1658
1659
charset-msg-end:
1660
	@echo "======== Done with tests that can vary based on character set or locale support ========"
1661
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
1662
shlib-msg-start:
1663
	@echo "======== Starting shared library tests ========"
1664
1665
shlib-msg-end:
1666
	@echo "======== Done with shared library tests ========"
1667
390 by Arnold D. Robbins
Run MPFR tests is MPFR is available.
1668
mpfr-msg-start:
1669
	@echo "======== Starting MPFR tests ========"
1670
1671
mpfr-msg-end:
1672
	@echo "======== Done with MPFR tests ========"
1673
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1674
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1675
# This test is a PITA because increasingly, /tmp is getting
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1676
# mounted noexec.  So, we'll test it locally.  Sigh.
1677
#
1678
# More PITA; some systems have medium short limits on #! paths,
1679
# so this can still fail
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1680
poundbang::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1681
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1682
	@sed "s;/tmp/gawk;`pwd`/$(AWKPROG);" < "$(srcdir)"/poundbang.awk > ./_pbd.awk
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1683
	@chmod +x ./_pbd.awk
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1684
	@if ./_pbd.awk "$(srcdir)"/poundbang.awk > _`basename $@` ; \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1685
	then : ; \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1686
	else \
408.5.210 by Arnold D. Robbins
Bug fix for poundbang test.
1687
		sed "s;/tmp/gawk;$(AWKPROG);" < "$(srcdir)"/poundbang.awk > ./_pbd.awk ; \
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1688
		chmod +x ./_pbd.awk ; \
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1689
		LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C} ./_pbd.awk "$(srcdir)"/poundbang.awk > _`basename $@`;  \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1690
	fi
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1691
	@-$(CMP) "$(srcdir)"/poundbang.awk _`basename $@` && rm -f _`basename $@` _pbd.awk
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1692
1693
messages::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1694
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1695
	@$(AWK) -f "$(srcdir)"/messages.awk >_out2 2>_out3 || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1696
	@-$(CMP) "$(srcdir)"/out1.ok _out1 && $(CMP) "$(srcdir)"/out2.ok _out2 && $(CMP) "$(srcdir)"/out3.ok _out3 && rm -f _out1 _out2 _out3
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1697
1698
argarray::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1699
	@echo $@
408.19.286 by Andrew J. Schorr
Patch argarray test to work regardless of how configure is invoked.
1700
	@cp "$(srcdir)"/argarray.in ./argarray.input
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1701
	@TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk ./argarray.input - >_$@ || echo EXIT CODE: $$? >> _$@
408.19.286 by Andrew J. Schorr
Patch argarray test to work regardless of how configure is invoked.
1702
	@rm -f ./argarray.input
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1703
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1704
1705
regtest::
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1706
	@echo $@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1707
	@echo 'Some of the output from regtest is very system specific, do not'
1708
	@echo 'be distressed if your output differs from that distributed.'
1709
	@echo 'Manual inspection is called for.'
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1710
	@AWK=$(AWKPROG) "$(srcdir)"/regtest.sh
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1711
1712
manyfiles::
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1713
	@echo $@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1714
	@rm -rf junk
1715
	@mkdir junk
136 by Arnold D. Robbins
Bug fix in io.c. New test release.
1716
	@$(AWK) 'BEGIN { for (i = 1; i <= 1030; i++) print i, i}' >_$@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1717
	@$(AWK) -f "$(srcdir)"/manyfiles.awk _$@ _$@ || echo EXIT CODE: $$? >> _$@
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1718
	@wc -l junk/* | $(AWK) '$$1 != 2' | wc -l | sed "s/  *//g" > _$@
277.1.79 by Arnold D. Robbins
Rationalize $(CMP) calls in test/Makefile.
1719
	@rm -rf junk
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1720
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1721
1722
compare::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1723
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1724
	@$(AWK) -f "$(srcdir)"/compare.awk 0 1 "$(srcdir)"/compare.in >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1725
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1726
1727
inftest::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1728
	@echo $@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1729
	@echo This test is very machine specific...
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1730
	@$(AWK) -f "$(srcdir)"/inftest.awk | sed "s/inf/Inf/g" >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1731
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1732
1733
getline2::
1734
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1735
	@$(AWK) -f "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk "$(srcdir)"/getline2.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1736
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1737
1738
awkpath::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1739
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1740
	@AWKPATH="$(srcdir)$(PATH_SEPARATOR)$(srcdir)/lib" $(AWK) -f awkpath.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1741
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1742
1743
argtest::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1744
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1745
	@$(AWK) -f "$(srcdir)"/argtest.awk -x -y abc >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1746
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1747
1748
badargs::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1749
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1750
	@-$(AWK) -f 2>&1 | grep -v patchlevel >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1751
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1752
1753
strftime::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1754
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1755
	@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=C ; export GAWKLOCALE; \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
1756
	TZ=GMT0; export TZ; \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1757
	$(AWK) -v OUTPUT=_$@ -v DATECMD="$(DATE)" -f "$(srcdir)"/strftime.awk || echo EXIT CODE: $$? >> _$@
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1758
	@-$(CMP) strftime.ok _$@ && rm -f _$@ strftime.ok || exit 0
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1759
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1760
devfd::
1761
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1762
	@$(AWK) 1 /dev/fd/4 /dev/fd/5 4<"$(srcdir)"/devfd.in4 5<"$(srcdir)"/devfd.in5 >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1763
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1764
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
1765
# This cannot be autogenerated; we want it to read the input name
1766
# on the command line.
408.12.39 by Andrew J. Schorr
Add new errno test to make sure PROCINFO["errno"] is working.
1767
errno:
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1768
	@echo $@ $(ZOS_FAIL)
408.12.39 by Andrew J. Schorr
Add new errno test to make sure PROCINFO["errno"] is working.
1769
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1770
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
1771
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1772
tweakfld::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1773
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1774
	@$(AWK) -f "$(srcdir)"/tweakfld.awk "$(srcdir)"/tweakfld.in >_$@ || echo EXIT CODE: $$? >> _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1775
	@rm -f errors.cleanup
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1776
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1777
1778
# AIX /bin/sh exec's the last command in a list, therefore issue a ":"
1779
# command so that pid.sh is fork'ed as a child before being exec'ed.
1780
pid::
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1781
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1782
	@AWKPATH="$(srcdir)" AWK=$(AWKPROG) $(SHELL) "$(srcdir)"/pid.sh $$$$ > _`basename $@` ; :
1783
	@-$(CMP) "$(srcdir)"/pid.ok _`basename $@` && rm -f _`basename $@`
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1784
1785
strftlng::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1786
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1787
	@TZ=UTC; export TZ; $(AWK) -f "$(srcdir)"/strftlng.awk >_$@
1788
	@if $(CMP) "$(srcdir)"/strftlng.ok _$@ >/dev/null 2>&1 ; then : ; else \
1789
	TZ=UTC0; export TZ; $(AWK) -f "$(srcdir)"/strftlng.awk >_$@ ; \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1790
	fi
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1791
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1792
1793
nors::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1794
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1795
	@echo A B C D E | tr -d '\12\15' | $(AWK) '{ print $$NF }' - "$(srcdir)"/nors.in > _$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1796
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1797
731.17.19 by Arnold D. Robbins
Disable fmtspcl test.
1798
# fmtspcl.ok: fmtspcl.tok Makefile fix-fmtspcl.awk
1799
# 	@$(AWK) -v "sd=$(srcdir)" -f "$(srcdir)/fix-fmtspcl.awk" < "$(srcdir)"/fmtspcl.tok > $@ 2>/dev/null
1800
# 
1801
# fmtspcl: fmtspcl.ok
1802
# 	@echo $@
1803
# 	@$(AWK) $(AWKFLAGS) -f "$(srcdir)"/fmtspcl.awk  --lint >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1804
# 	@-if test -z "$$AWKFLAGS" ; then $(CMP) $@.ok _$@ && rm -f _$@ ; else \
1805
# 	$(CMP) "$(srcdir)"/$@-mpfr.ok _$@ && rm -f _$@ ; \
1806
# 	fi
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1807
408.5.167 by Arnold D. Robbins
Fix in read_a_record for short file with RS=regex.
1808
rebuf::
1809
	@echo $@
1810
	@AWKBUFSIZE=4096 AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1811
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
1812
408.5.168 by Arnold D. Robbins
Additional fix for TERMNEAREND.
1813
rsglstdin:: 
1814
	@echo $@
1815
	@cat  "$(srcdir)"/rsgetline.in | AWKPATH="$(srcdir)" $(AWK) -f rsgetline.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1816
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
1817
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1818
pipeio1::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1819
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1820
	@$(AWK) -f "$(srcdir)"/pipeio1.awk >_$@ || echo EXIT CODE: $$? >> _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1821
	@rm -f test1 test2
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1822
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1823
1824
pipeio2::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1825
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1826
	@$(AWK) -v SRCDIR="$(srcdir)" -f "$(srcdir)"/pipeio2.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1827
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1828
1829
clobber::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1830
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1831
	@$(AWK) -f "$(srcdir)"/clobber.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1832
	@-$(CMP) "$(srcdir)"/clobber.ok seq && $(CMP) "$(srcdir)"/clobber.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1833
	@rm -f seq
1834
1835
arynocls::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1836
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1837
	@-AWKPATH="$(srcdir)" $(AWK) -v INPUT="$(srcdir)"/arynocls.in -f arynocls.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1838
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1839
1840
getlnbuf::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1841
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1842
	@-AWKPATH="$(srcdir)" $(AWK) -f getlnbuf.awk "$(srcdir)"/getlnbuf.in > _$@ || echo EXIT CODE: $$? >> _$@
1843
	@-AWKPATH="$(srcdir)" $(AWK) -f gtlnbufv.awk "$(srcdir)"/getlnbuf.in > _2$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1844
	@-$(CMP) "$(srcdir)"/getlnbuf.ok _$@ && $(CMP) "$(srcdir)"/getlnbuf.ok _2$@ && rm -f _$@ _2$@
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1845
1846
inetmesg::
1847
	@echo These tests only work if your system supports the services
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1848
	@echo "'discard'" at port 9 and "'daytimed'" at port 13. Check your
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1849
	@echo file /etc/services and do "'netstat -a'".
1850
1851
inetechu::
1852
	@echo This test is for establishing UDP connections
731.18.32 by Arnold D. Robbins
Make inet tests keep going if they fail.
1853
	@-$(AWK) 'BEGIN {print "" |& "/inet/udp/0/127.0.0.1/9"}'
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1854
1855
inetecht::
1856
	@echo This test is for establishing TCP connections
731.18.32 by Arnold D. Robbins
Make inet tests keep going if they fail.
1857
	@-$(AWK) 'BEGIN {print "" |& "/inet/tcp/0/127.0.0.1/9"}'
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1858
1859
inetdayu::
1860
	@echo This test is for bidirectional UDP transmission
731.18.32 by Arnold D. Robbins
Make inet tests keep going if they fail.
1861
	@-$(AWK) 'BEGIN { print "" |& "/inet/udp/0/127.0.0.1/13"; \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1862
	"/inet/udp/0/127.0.0.1/13" |& getline; print $0}'
1863
1864
inetdayt::
1865
	@echo This test is for bidirectional TCP transmission
731.18.32 by Arnold D. Robbins
Make inet tests keep going if they fail.
1866
	@-$(AWK) 'BEGIN { print "" |& "/inet/tcp/0/127.0.0.1/13"; \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
1867
	"/inet/tcp/0/127.0.0.1/13" |& getline; print $0}'
1868
1869
redfilnm::
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1870
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1871
	@$(AWK) -f "$(srcdir)"/redfilnm.awk srcdir="$(srcdir)" "$(srcdir)"/redfilnm.in >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1872
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1873
1874
space::
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1875
	@echo $@ $(ZOS_FAIL)
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1876
	@$(AWK) -f ' ' "$(srcdir)"/space.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1877
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
30 by Arnold D. Robbins
Move to gawk-3.1.2.
1878
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1879
rsnulbig::
1880
	@echo $@
1881
	@ : Suppose that block size for pipe is at most 128kB:
1882
	@$(AWK) 'BEGIN { for (i = 1; i <= 128*64+1; i++) print "abcdefgh123456\n" }' 2>&1 | \
1883
	$(AWK) 'BEGIN { RS = ""; ORS = "\n\n" }; { print }' 2>&1 | \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1884
	$(AWK) ' /^[^a]/; END{ print NR }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1885
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
31 by Arnold D. Robbins
Move to gawk-3.1.3.
1886
1887
rsnulbig2::
1888
	@echo $@
1889
	@$(AWK) 'BEGIN { ORS = ""; n = "\n"; for (i = 1; i <= 10; i++) n = (n n); \
1890
		for (i = 1; i <= 128; i++) print n; print "abc\n" }' 2>&1 | \
1891
		$(AWK) 'BEGIN { RS = ""; ORS = "\n\n" };{ print }' 2>&1 | \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1892
		$(AWK) ' /^[^a]/; END { print NR }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1893
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1894
1895
# This test makes sure gawk exits with a zero code.
1896
# Thus, unconditionally generate the exit code.
1897
exitval1::
1898
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1899
	@$(AWK) -f "$(srcdir)"/exitval1.awk >_$@ 2>&1; echo EXIT CODE: $$? >>_$@
1900
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
32 by Arnold D. Robbins
Move to gawk-3.1.4.
1901
33 by Arnold D. Robbins
Move to gawk 3.1.5.
1902
fsspcoln::
1903
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1904
	@$(AWK) -f "$(srcdir)"/$@.awk 'FS=[ :]+' "$(srcdir)"/$@.in >_$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1905
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
33 by Arnold D. Robbins
Move to gawk 3.1.5.
1906
1907
rsstart3::
1908
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1909
	@head "$(srcdir)"/rsstart1.in | $(AWK) -f "$(srcdir)"/rsstart2.awk >_$@ || echo EXIT CODE: $$? >> _$@
1910
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
1911
1912
# FIXME: Gentests can't really deal with something that is both a shell script
1913
# and requires a locale. We might can fix that ...
277.1.33 by Arnold D. Robbins
Fix RT handling if partial terminators.
1914
rtlenmb::
1915
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1916
	@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE ; \
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1917
	"$(srcdir)"/rtlen.sh >_$@ || echo EXIT CODE: $$? >>_$@
1918
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
277.1.33 by Arnold D. Robbins
Fix RT handling if partial terminators.
1919
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1920
nofile::
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1921
	@echo $@ $(ZOS_FAIL)
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1922
	@$(AWK) '{}' no/such/file >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1923
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1924
1925
binmode1::
1926
	@echo $@
1927
	@$(AWK) -v BINMODE=3 'BEGIN { print BINMODE }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1928
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1929
1930
devfd1::
1931
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1932
	@$(AWK) -f "$(srcdir)"/$@.awk 4< "$(srcdir)"/devfd.in1 5< "$(srcdir)"/devfd.in2 >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1933
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1934
1935
# The program text is the '1' which will print each record. How compact can you get?
1936
devfd2::
1937
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1938
	@$(AWK) 1 /dev/fd/4 /dev/fd/5 4< "$(srcdir)"/devfd.in1 5< "$(srcdir)"/devfd.in2 >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1939
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1940
1941
mixed1::
1942
	@echo $@
1943
	@$(AWK) -f /dev/null --source 'BEGIN {return junk}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1944
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1945
731.9.18 by Arnold D. Robbins
Fix multibyte char printf problem, add test.
1946
mbprintf5::
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1947
	@echo $@ $(ZOS_FAIL)
1127 by Arnold D. Robbins
Fix mbprintf5 to keep going in case of failure.
1948
	@-case `uname` in \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1949
	CYGWIN* | MINGW32* | *MS-DOS*) echo this test fails on this system --- skipping $@ ;; \
731.9.30 by Arnold D. Robbins
Disable mbprintf5 test on Cygwin.
1950
	*) \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1951
	[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE ; \
731.9.30 by Arnold D. Robbins
Disable mbprintf5 test on Cygwin.
1952
	$(AWK) -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >> _$@ ; \
1953
	$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
1954
	esac
731.9.18 by Arnold D. Robbins
Fix multibyte char printf problem, add test.
1955
35 by Arnold D. Robbins
Move to gawk-3.1.7.
1956
printfbad2: printfbad2.ok
1957
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1958
	@$(AWK) --lint -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in 2>&1 | sed 's;$(srcdir)/;;g' >_$@ || echo EXIT CODE: $$?  >>_$@
1959
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1960
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
1961
beginfile1::
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1962
	@echo $@ $(ZOS_FAIL)
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1963
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk "$(srcdir)"/$@.awk . ./no/such/file Makefile  >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1964
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
1965
277.1.21 by Arnold D. Robbins
BEGINFILE/ENDFILE code redone.
1966
beginfile2:
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
1967
	@echo $@ $(ZOS_FAIL)
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1968
	@-( cd "$(srcdir)" && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)" $(abs_srcdir)/$@.sh $(abs_srcdir)/$@.in ) > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1969
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
277.1.21 by Arnold D. Robbins
BEGINFILE/ENDFILE code redone.
1970
40 by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray!
1971
dumpvars::
1972
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1973
	@AWKPATH="$(srcdir)" $(AWK) --dump-variables 1 < "$(srcdir)"/$@.in >/dev/null 2>&1 || echo EXIT CODE: $$? >>_$@ || echo EXIT CODE: $$? >> _$@
408.13.38 by Arnold D. Robbins
Fix dumpvars test after removing deferred variables.
1974
	@grep -v ENVIRON < awkvars.out | grep -v PROCINFO > _$@; rm awkvars.out
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1975
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
34 by Arnold D. Robbins
Move to gawk-3.1.6.
1976
408.13.72 by Arnold D. Robbins
Add new profile test.
1977
profile0:
1978
	@echo $@
1979
	@$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in > /dev/null
1980
	@sed 1,2d < ap-$@.out > _$@; rm ap-$@.out
1981
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
1982
60 by Arnold D. Robbins
Clean up sprintf return type. Add tests for pgawk.
1983
profile1:
1984
	@echo $@
408.2.337 by Arnold D. Robbins
Make --pretty-print not run the program.
1985
	@$(AWK) -f "$(srcdir)"/xref.awk "$(srcdir)"/dtdgport.awk > _$@.out1
1986
	@$(AWK) --pretty-print=ap-$@.out -f "$(srcdir)"/xref.awk
408.5.309 by Arnold D. Robbins
Fix assumptions about AWKPATH in awklib and test.
1987
	@$(AWK) -f ./ap-$@.out "$(srcdir)"/dtdgport.awk > _$@.out2 ; rm ap-$@.out
731.17.46 by Arnold D. Robbins
Ignore failure in profile1 test, allows make to keep going.
1988
	@-$(CMP) _$@.out1 _$@.out2 && rm _$@.out[12] || { echo EXIT CODE: $$? >>_$@ ; \
408.2.337 by Arnold D. Robbins
Make --pretty-print not run the program.
1989
	cp "$(srcdir)"/dtdgport.awk $@.ok ; }
60 by Arnold D. Robbins
Clean up sprintf return type. Add tests for pgawk.
1990
1991
profile2:
1992
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
1993
	@$(AWK) --profile=ap-$@.out -v sortcmd=$(SORT) -f "$(srcdir)"/xref.awk "$(srcdir)"/dtdgport.awk > /dev/null
277.1.19 by Arnold D. Robbins
Fix problem with parallel make check.
1994
	@sed 1,2d < ap-$@.out > _$@; rm ap-$@.out
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1995
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
60 by Arnold D. Robbins
Clean up sprintf return type. Add tests for pgawk.
1996
137 by Arnold D. Robbins
Profile fix and test for it.
1997
profile3:
1998
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
1999
	@$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk > /dev/null
277.1.19 by Arnold D. Robbins
Fix problem with parallel make check.
2000
	@sed 1,2d < ap-$@.out > _$@; rm ap-$@.out
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2001
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
137 by Arnold D. Robbins
Profile fix and test for it.
2002
408.5.321 by Arnold D. Robbins
Fixes in pretty-printer.
2003
profile6:
2004
	@echo $@
408.5.324 by Arnold D. Robbins
Additional profiling fix.
2005
	@$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk > /dev/null
2006
	@sed 1,2d < ap-$@.out > _$@; rm ap-$@.out
2007
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2008
2009
profile7:
2010
	@echo $@
2011
	@$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk > /dev/null
408.5.321 by Arnold D. Robbins
Fixes in pretty-printer.
2012
	@sed 1,2d < ap-$@.out > _$@; rm ap-$@.out
2013
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2014
1100 by Arnold D. Robbins
Fix plain `print' to work if profiling.
2015
profile12:
2016
	@echo $@
2017
	@$(AWK) --profile=ap-$@.out -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
2018
	@rm ap-$@.out
2019
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2020
305 by john haque
Bug fixes and tests for MPFR.
2021
mpfrieee:
2022
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2023
	@$(AWK) -M -vPREC=double -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2024
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
305 by john haque
Bug fixes and tests for MPFR.
2025
2026
mpfrexprange:
2027
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2028
	@$(AWK) -M -vPREC=53 -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2029
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
305 by john haque
Bug fixes and tests for MPFR.
2030
2031
mpfrrnd:
2032
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2033
	@$(AWK) -M -vPREC=53 -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2034
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
305 by john haque
Bug fixes and tests for MPFR.
2035
306 by john haque
Add arbitrary-precision arithmetic on integers.
2036
mpfrsort:
2037
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2038
	@$(AWK) -M -vPREC=53 -f "$(srcdir)"/$@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.26.1 by Andrew J. Schorr
Fix usage of scalar type flag bits and fix some bugs in numeric conversions and lint checks.
2039
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2040
731.11.303 by Andrew J. Schorr
Fix bug printing +"01" in regular and MPFR mode.
2041
mpfruplus:
2042
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2043
	@$(AWK) -M -f "$(srcdir)"/uplus.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
408.5.234 by Arnold D. Robbins
Bug fix to MPFR mod operation for negative numerator.
2044
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2045
1215 by Arnold D. Robbins
New test: mpfranswer42.
2046
mpfranswer42:
2047
	@echo $@
2048
	@$(AWK) -M -f "$(srcdir)"/mpfranswer42.awk > _$@ 2>&1 || echo EXIT CODE: $$? >> _$@
2049
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2050
408.13.102 by Arnold D. Robbins
Fix bad allocs -M and profiling.
2051
mpfrmemok1:
2052
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2053
	@$(AWK) -p- -M -f "$(srcdir)"/$@.awk 2>&1 | sed 1d > _$@ || echo EXIT CODE: $$? >> _$@
731.11.338 by Arnold D. Robbins
Copy MPZ/MPFR bits also, in r_dupnode.
2054
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2055
277.1.145 by Arnold D. Robbins
Add test for gsub in JP-EUC-JP locale.
2056
jarebug::
2057
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2058
	@"$(srcdir)"/$@.sh "$(AWKPROG)" "$(srcdir)"/$@.awk "$(srcdir)"/$@.in "_$@" || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2059
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
277.1.145 by Arnold D. Robbins
Add test for gsub in JP-EUC-JP locale.
2060
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
2061
ordchr2::
2062
	@echo $@
408.4.69 by Andrew J. Schorr
Add --include long option and tests to make sure that --load and --include work.
2063
	@$(AWK) --load ordchr 'BEGIN {print chr(ord("z"))}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2064
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
2065
319.2.15 by Andrew J. Schorr
Install gawkapi.h, fix is_off_limits_var, and enhance ordchr test.
2066
# N.B. If the test fails, create readfile.ok so that "make diffout" will work
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
2067
readfile::
2068
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2069
	@$(AWK) -l readfile 'BEGIN {printf "%s", readfile("$(srcdir)/Makefile.am")}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2070
	@-$(CMP) "$(srcdir)/Makefile.am" _$@ && rm -f _$@ || cp -p "$(srcdir)/Makefile.am" $@.ok
299.3.17 by Andrew J. Schorr
Extension enhancements and tests.
2071
408.5.122 by Arnold D. Robbins
Add input parser to readfile extension, document it and test it.
2072
readfile2::
2073
	@echo $@
2074
	@$(AWK) -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.awk "$(srcdir)"/readdir.awk > _$@ || echo EXIT CODE: $$? >>_$@
2075
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2076
1146.1.45 by Arnold D. Robbins
Fix a problem when using awk::var kinds of names.
2077
nsawk1a::
2078
	@echo $@
2079
	@$(AWK) -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
2080
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2081
2082
nsawk1b::
2083
	@echo $@
2084
	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
2085
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2086
2087
nsawk1c::
2088
	@echo $@
2089
	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
2090
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2091
2092
nsawk2a::
2093
	@echo $@
2094
	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
2095
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2096
2097
nsawk2b::
2098
	@echo $@
2099
	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
2100
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2101
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
2102
include2::
2103
	@echo $@
408.4.69 by Andrew J. Schorr
Add --include long option and tests to make sure that --load and --include work.
2104
	@AWKPATH="$(srcdir)" $(AWK) --include inclib 'BEGIN {print sandwich("a", "b", "c")}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2105
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
2106
2107
incdupe::
2108
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2109
	@AWKPATH="$(srcdir)" $(AWK) --lint -i inclib -i inclib.awk 'BEGIN {print sandwich("a", "b", "c")}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2110
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
2111
2112
incdupe2::
2113
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2114
	@AWKPATH="$(srcdir)" $(AWK) --lint -f inclib -f inclib.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2115
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
2116
2117
incdupe3::
2118
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2119
	@AWKPATH="$(srcdir)" $(AWK) --lint -f hello -f hello.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2120
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.7 by Andrew J. Schorr
Add -i option, append .awk if initial search fails, and allow -f repeats.
2121
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
2122
incdupe4::
2123
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2124
	@AWKPATH="$(srcdir)" $(AWK) --lint -f hello -i hello.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2125
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
2126
2127
incdupe5::
2128
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2129
	@AWKPATH="$(srcdir)" $(AWK) --lint -i hello -f hello.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2130
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
2131
2132
incdupe6::
2133
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2134
	@AWKPATH="$(srcdir)" $(AWK) --lint -i inchello -f hello.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2135
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
2136
2137
incdupe7::
2138
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2139
	@AWKPATH="$(srcdir)" $(AWK) --lint -f hello -i inchello >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2140
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.2.102 by Andrew J. Schorr
Make it a fatal error to load the same file with -f and -i (or @include).
2141
365 by Andrew J. Schorr
Add tests for inplace extension.
2142
inplace1::
2143
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2144
	@cp "$(srcdir)"/inplace.1.in _$@.1
2145
	@cp "$(srcdir)"/inplace.2.in _$@.2
2146
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace 'BEGIN {print "before"} {gsub(/foo/, "bar"); print} END {print "after"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2147
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2148
	@-$(CMP) "$(srcdir)"/$@.1.ok _$@.1 && rm -f _$@.1
2149
	@-$(CMP) "$(srcdir)"/$@.2.ok _$@.2 && rm -f _$@.2
365 by Andrew J. Schorr
Add tests for inplace extension.
2150
2151
inplace2::
2152
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2153
	@cp "$(srcdir)"/inplace.1.in _$@.1
2154
	@cp "$(srcdir)"/inplace.2.in _$@.2
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
2155
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v inplace::suffix=.bak 'BEGIN {print "before"} {gsub(/foo/, "bar"); print} END {print "after"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2156
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2157
	@-$(CMP) "$(srcdir)"/$@.1.ok _$@.1 && rm -f _$@.1
2158
	@-$(CMP) "$(srcdir)"/$@.1.bak.ok _$@.1.bak && rm -f _$@.1.bak
2159
	@-$(CMP) "$(srcdir)"/$@.2.ok _$@.2 && rm -f _$@.2
2160
	@-$(CMP) "$(srcdir)"/$@.2.bak.ok _$@.2.bak && rm -f _$@.2.bak
365 by Andrew J. Schorr
Add tests for inplace extension.
2161
1146.1.48 by Arnold D. Robbins
Add backwards compatibility tests for inplace extension.
2162
inplace2bcomp::
2163
	@echo $@
2164
	@cp "$(srcdir)"/inplace.1.in _$@.1
2165
	@cp "$(srcdir)"/inplace.2.in _$@.2
2166
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v INPLACE_SUFFIX=.orig 'BEGIN {print "before"} {gsub(/foo/, "bar"); print} END {print "after"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2167
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2168
	@-$(CMP) "$(srcdir)"/$@.1.ok _$@.1 && rm -f _$@.1
2169
	@-$(CMP) "$(srcdir)"/$@.1.orig.ok _$@.1.orig && rm -f _$@.1.orig
2170
	@-$(CMP) "$(srcdir)"/$@.2.ok _$@.2 && rm -f _$@.2
2171
	@-$(CMP) "$(srcdir)"/$@.2.orig.ok _$@.2.orig && rm -f _$@.2.orig
2172
365 by Andrew J. Schorr
Add tests for inplace extension.
2173
inplace3::
2174
	@echo $@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2175
	@cp "$(srcdir)"/inplace.1.in _$@.1
2176
	@cp "$(srcdir)"/inplace.2.in _$@.2
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
2177
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v inplace::suffix=.bak 'BEGIN {print "before"} {gsub(/foo/, "bar"); print} END {print "after"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2178
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v inplace::suffix=.bak 'BEGIN {print "Before"} {gsub(/bar/, "foo"); print} END {print "After"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2179
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2180
	@-$(CMP) "$(srcdir)"/$@.1.ok _$@.1 && rm -f _$@.1
2181
	@-$(CMP) "$(srcdir)"/$@.1.bak.ok _$@.1.bak && rm -f _$@.1.bak
2182
	@-$(CMP) "$(srcdir)"/$@.2.ok _$@.2 && rm -f _$@.2
2183
	@-$(CMP) "$(srcdir)"/$@.2.bak.ok _$@.2.bak && rm -f _$@.2.bak
365 by Andrew J. Schorr
Add tests for inplace extension.
2184
1146.1.48 by Arnold D. Robbins
Add backwards compatibility tests for inplace extension.
2185
inplace3bcomp::
2186
	@echo $@
2187
	@cp "$(srcdir)"/inplace.1.in _$@.1
2188
	@cp "$(srcdir)"/inplace.2.in _$@.2
2189
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v INPLACE_SUFFIX=.orig 'BEGIN {print "before"} {gsub(/foo/, "bar"); print} END {print "after"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2190
	@AWKPATH="$(srcdir)"/../awklib/eg/lib $(AWK) -i inplace -v INPLACE_SUFFIX=.orig 'BEGIN {print "Before"} {gsub(/bar/, "foo"); print} END {print "After"}' _$@.1 - _$@.2 < "$(srcdir)"/inplace.in >>_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2191
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2192
	@-$(CMP) "$(srcdir)"/$@.1.ok _$@.1 && rm -f _$@.1
2193
	@-$(CMP) "$(srcdir)"/$@.1.orig.ok _$@.1.orig && rm -f _$@.1.orig
2194
	@-$(CMP) "$(srcdir)"/$@.2.ok _$@.2 && rm -f _$@.2
2195
	@-$(CMP) "$(srcdir)"/$@.2.orig.ok _$@.2.orig && rm -f _$@.2.orig
2196
319.2.31 by Arnold D. Robbins
Add testext to list of shared library tests.
2197
testext::
2198
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2199
	@$(AWK) ' /^(@load|BEGIN)/,/^}/' "$(top_srcdir)"/extension/testext.c > testext.awk
408.5.309 by Arnold D. Robbins
Fix assumptions about AWKPATH in awklib and test.
2200
	@$(AWK) -f ./testext.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
731.11.128 by Arnold D. Robbins
Fix removing testext.tmp file in test suite.
2201
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ testext.awk testexttmp.txt
319.2.31 by Arnold D. Robbins
Add testext to list of shared library tests.
2202
408.12.44 by Andrew J. Schorr
Add test of get_file API.
2203
getfile:
2204
	@echo $@
408.20.55 by Arnold D. Robbins
Fix `make check' when building out of the source tree.
2205
	@AWKPATH="$(srcdir)" $(AWK) -v TESTEXT_QUIET=1 -ltestext -f $@.awk < $(srcdir)/$@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.12.44 by Andrew J. Schorr
Add test of get_file API.
2206
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2207
319.2.85 by Arnold D. Robbins
Finish work on iop management. New readdir test.
2208
readdir:
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2209
	@echo $@
408.2.10 by Arnold D. Robbins
Add check and message for Linux and NFS for readdir.
2210
	@if [ "`uname`" = Linux ] && [ "`stat -f . 2>/dev/null | awk 'NR == 2 { print $$NF }'`" = nfs ];  then \
731.11.146 by Arnold D. Robbins
Improve filesystem warning message for readdir test.
2211
	echo This test may fail on GNU/Linux systems when run on NFS or JFS filesystems.; \
408.2.10 by Arnold D. Robbins
Add check and message for Linux and NFS for readdir.
2212
	echo If it does, try rerunning on an ext'[234]' filesystem. ; \
2213
	fi
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2214
	@$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@ || echo EXIT CODE: $$? >> _$@
408.5.43 by Arnold D. Robbins
Improve readdir test for MinGW.
2215
	@ls -afi "$(top_srcdir)" > _dirlist
2216
	@ls -lna "$(top_srcdir)" | sed 1d > _longlist
2217
	@$(AWK) -f "$(srcdir)"/readdir0.awk -v extout=_$@  \
2218
		-v dirlist=_dirlist -v longlist=_longlist > $@.ok
2219
	@-$(CMP) $@.ok _$@ && rm -f $@.ok _$@ _dirlist _longlist
319.2.85 by Arnold D. Robbins
Finish work on iop management. New readdir test.
2220
731.6.5 by Andrew J. Schorr
Add new test readdir_test to check whether API get_record field_width parsing is working.
2221
readdir_test:
2222
	@echo $@
2223
	@$(AWK) -lreaddir -F/ '{printf "[%s] [%s] [%s] [%s]\n", $$1, $$2, $$3, $$4}' "$(top_srcdir)" > $@.ok
2224
	@$(AWK) -lreaddir_test '{printf "[%s] [%s] [%s] [%s]\n", $$1, $$2, $$3, $$4}' "$(top_srcdir)" > _$@
2225
	@-$(CMP) $@.ok _$@ && rm -f $@.ok _$@
2226
731.11.343 by Arnold D. Robbins
Fix problem with rebuilding records if using API parser.
2227
readdir_retest:
2228
	@echo $@
731.11.348 by Arnold D. Robbins
Fix readdir_retest test for out of tree builds.
2229
	@$(AWK) -lreaddir -F/ -f "$(srcdir)"/$@.awk "$(top_srcdir)" > $@.ok
2230
	@$(AWK) -lreaddir_test -F/ -f "$(srcdir)"/$@.awk "$(top_srcdir)" > _$@
731.11.343 by Arnold D. Robbins
Fix problem with rebuilding records if using API parser.
2231
	@-$(CMP) $@.ok _$@ && rm -f $@.ok _$@
2232
319.2.97 by Arnold D. Robbins
Add fts() extension, support, doc, and test.
2233
fts:
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2234
	@echo $@
408.4.76 by Arnold D. Robbins
Improve fts test for Cygwin.
2235
	@case `uname` in \
2236
	IRIX) \
408.2.11 by Arnold D. Robbins
More portability: mostly for SGI IRIX.
2237
	echo This test may fail on IRIX systems when run on an NFS filesystem.; \
408.4.76 by Arnold D. Robbins
Improve fts test for Cygwin.
2238
	echo If it does, try rerunning on an xfs filesystem. ;; \
2239
	CYGWIN*) \
2240
	echo This test may fail on CYGWIN systems when run on an NFS filesystem.; \
2241
	echo If it does, try rerunning on an ntfs filesystem. ;; \
2242
	esac
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2243
	@$(AWK) -f "$(srcdir)"/fts.awk || echo EXIT CODE: $$? >> _$@
319.1.76 by Arnold D. Robbins
Fix two tests to work with make diffout.
2244
	@-$(CMP) $@.ok _$@ && rm -f $@.ok _$@
319.2.97 by Arnold D. Robbins
Add fts() extension, support, doc, and test.
2245
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2246
# BINMODE=2 is needed for PC tests.
277.1.153 by Arnold D. Robbins
Fix bug with --characters-as-bytes.
2247
charasbytes:
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
2248
	@echo $@ $(ZOS_FAIL)
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2249
	@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
2250
	AWKPATH="$(srcdir)" $(AWK) -b -v BINMODE=2 -f $@.awk "$(srcdir)"/$@.in | \
408.4.56 by Arnold D. Robbins
Make charasbytes test more robust. We hope.
2251
	od -c -t x1 | tr '	' ' ' | sed -e 's/  */ /g' -e 's/ *$$//' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2252
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
277.1.145 by Arnold D. Robbins
Add test for gsub in JP-EUC-JP locale.
2253
319.1.96 by Arnold D. Robbins
Bug fixes for SYMTAB.
2254
symtab6:
2255
	@echo $@
1071 by Arnold D. Robbins
Fix symtab6 test.
2256
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk > _$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2257
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
319.1.96 by Arnold D. Robbins
Bug fixes for SYMTAB.
2258
336 by Arnold D. Robbins
Two new SYMTAB tests.
2259
symtab8:
1109 by Arnold D. Robbins
Improvements for z/OS, building and test suite.
2260
	@echo $@ $(ZOS_FAIL)
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2261
	@$(AWK) -d__$@ -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.in >_$@
367.1.1 by Andrew J. Schorr
Fix symtab8 test to work when building outside the source tree.
2262
	@grep -v '^ENVIRON' __$@ | grep -v '^PROCINFO' | grep -v '^FILENAME' >> _$@ ; rm __$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2263
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
336 by Arnold D. Robbins
Two new SYMTAB tests.
2264
408.2.85 by Arnold D. Robbins
Fix symtab9 test so it will work on Windows too.
2265
symtab9:
2266
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2267
	@$(AWK) -f "$(srcdir)"/$@.awk >_$@ || echo EXIT CODE: $$? >> _$@
408.2.85 by Arnold D. Robbins
Fix symtab9 test so it will work on Windows too.
2268
	@rm -f testit.txt
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2269
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
408.2.85 by Arnold D. Robbins
Fix symtab9 test so it will work on Windows too.
2270
277.1.208 by Arnold D. Robbins
Fix bug with --traditional + --re-interval.
2271
reginttrad:
2272
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2273
	@$(AWK) --traditional -r -f "$(srcdir)"/$@.awk > _$@ || echo EXIT CODE: $$? >> _$@
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2274
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
277.1.208 by Arnold D. Robbins
Fix bug with --traditional + --re-interval.
2275
277.1.215 by Arnold D. Robbins
Fix a bug with ] as real char in regexps.
2276
colonwarn:
2277
	@echo $@
2278
	@for i in 1 2 3 ; \
408.4.22 by Arnold D. Robbins
Quote $(srcdir) in test makefiles.
2279
	do $(AWK) -f "$(srcdir)"/$@.awk $$i < "$(srcdir)"/$@.in ; \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2280
	done > _$@ || echo EXIT CODE: $$? >> _$@
408.4.60 by Arnold D. Robbins
Addtional fix for \s in multibyte locales.
2281
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2282
408.5.169 by Arnold D. Robbins
Further fix to eval "" in debugger.
2283
dbugeval::
2284
	@echo $@
408.13.167 by Arnold D. Robbins
Wrap dbueval test in check for tty.
2285
	@if [ -t 0 ]; then \
2286
	$(AWK) --debug -f /dev/null < "$(srcdir)"/$@.in > _$@  2>&1 || echo EXIT CODE: $$? >>_$@ ; \
2287
	$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
2288
	fi
408.5.169 by Arnold D. Robbins
Further fix to eval "" in debugger.
2289
408.5.275 by Arnold D. Robbins
Generalize how filefuncs test works.
2290
filefuncs:
2291
	@echo $@
2292
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk -v builddir="$(abs_top_builddir)"  >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2293
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2294
408.5.297 by Arnold D. Robbins
Fix --gen-pot with long strings.
2295
genpot:
2296
	@echo $@
2297
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk --gen-pot >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2298
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2299
408.13.133 by Arnold D. Robbins
Remove fatal error if strftime timestamp < 0.
2300
negtime::
2301
	@echo $@
2302
	@TZ=GMT AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.19.26 by Arnold D. Robbins
Fix negtime test to run out-of-tree.
2303
	@AWKPATH="$(srcdir)" $(AWK) -f checknegtime.awk "$(srcdir)"/$@.ok _$@ && rm -f _$@
408.13.133 by Arnold D. Robbins
Remove fatal error if strftime timestamp < 0.
2304
408.19.59 by Arnold D. Robbins
Make watchpoints fire before breakpoints in the debugger.
2305
watchpoint1:
2306
	@echo $@
408.19.141 by Arnold D. Robbins
Fix watchpoint1 test to work out-of-tree.
2307
	@AWKPATH="$(srcdir)" $(AWK) -D -f $@.awk $(srcdir)/$@.in < $(srcdir)/$@.script >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
408.19.59 by Arnold D. Robbins
Make watchpoints fire before breakpoints in the debugger.
2308
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2309
408.19.146 by Arnold D. Robbins
Disable pty1 test on z/OS.
2310
pty1:
2311
	@echo $@
408.19.158 by Arnold D. Robbins
Make pty1 test ignore errors.
2312
	@-case `uname` in \
408.19.154 by Arnold D. Robbins
Fix skipping of pty1 test on z/OS.
2313
	*[Oo][Ss]/390*) : ;; \
408.19.146 by Arnold D. Robbins
Disable pty1 test on z/OS.
2314
	*) AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ ; \
2315
	$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ;; \
2316
	esac
2317
731.11.276 by Arnold D. Robbins
Improve pty2 test.
2318
## 1/2018: The awk goop is to compensate for different output of od on
731.11.275 by Arnold D. Robbins
Fix pty2 test for Mac OS X.
2319
## Mac OS X systems. Sigh.
731.11.256 by Arnold D. Robbins
Fix pty handling on non-AIX, non-HP-UX systems.
2320
pty2:
2321
	@echo $@
2322
	@-case `uname` in \
2323
	*[Oo][Ss]/390*) : ;; \
731.11.276 by Arnold D. Robbins
Improve pty2 test.
2324
	*) AWKPATH="$(srcdir)" $(AWK) -f $@.awk | od -c | $(AWK) '{ $$1 = $$1 ; print }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ ; \
731.11.256 by Arnold D. Robbins
Fix pty handling on non-AIX, non-HP-UX systems.
2325
	$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ;; \
2326
	esac
2327
408.19.237 by Arnold D. Robbins
Add test case for single byte IGNORECASE fix.
2328
ignrcas3::
2329
	@echo $@
408.19.240 by Arnold D. Robbins
Move ignrcas3 test out of the line of fire.
2330
	@if locale -a | grep el_GR.iso88597 > /dev/null ; then \
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2331
	[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=el_GR.iso88597 ; export GAWKLOCALE; \
408.19.240 by Arnold D. Robbins
Move ignrcas3 test out of the line of fire.
2332
	AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ ; \
2333
	$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
2334
	fi
408.19.237 by Arnold D. Robbins
Add test case for single byte IGNORECASE fix.
2335
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
2336
arrdbg:
2337
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2338
	@$(AWK) -v "okfile=./$@.ok" -f "$(srcdir)"/$@.awk | grep array_f >_$@ || echo EXIT CODE: $$? >> _$@
731.11.108 by Arnold D. Robbins
Fix test suite for make distcheck.
2339
	@-$(CMP) ./$@.ok _$@ && rm -f _$@ ./$@.ok
408.29.1 by Andrew J. Schorr
When ARRAYDEBUG is defined, add a test using adump to check the array type.
2340
731.9.1 by Arnold D. Robbins
Additional fix for --source, and add test case.
2341
sourcesplit:
2342
	@echo $@
2343
	@AWKPATH="$(srcdir)" $(AWK) --source='BEGIN { a = 5;' --source='print a }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2344
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2345
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
2346
eofsrc1:
2347
	@echo $@
1068 by Arnold D. Robbins
Changes after make distcheck.
2348
	@AWKPATH="$(srcdir)" $(AWK) -f $@a.awk -f $@b.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
1055 by Arnold D. Robbins
Squashed merge of feature/namespaces. Add code and doc.
2349
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2350
2351
nsbad_cmd:
2352
	@echo $@
2353
	@AWKPATH="$(srcdir)" $(AWK) -v foo:bar=3 -v foo:::blat=4 1 /dev/null >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2354
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2355
2356
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2357
# Use [:] in the regexp to keep MSYS from converting the /'s to \'s.
731.11.153 by Andrew J. Schorr
Fix nonfatal1 test by ignoring the platform-specific portion of the error message.
2358
nonfatal1:
2359
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2360
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk 2>&1 | $(AWK) '{print gensub(/invalid[:].*$$/, "invalid", 1, $$0)}' >_$@ || echo EXIT CODE: $$? >>_$@
731.11.153 by Andrew J. Schorr
Fix nonfatal1 test by ignoring the platform-specific portion of the error message.
2361
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2362
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2363
# 4/2018: On first call to $(CMP), send to /dev/null even with -s for MinGW.
731.11.268 by Arnold D. Robbins
Add nlstringtest.
2364
nlstringtest::
2365
	@echo $@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2366
	@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=fr_FR.UTF-8 ; export GAWKLOCALE ; \
731.11.268 by Arnold D. Robbins
Add nlstringtest.
2367
	AWKPATH="$(srcdir)" $(AWK) -f $@.awk "$(srcdir)" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2368
	@-if $(CMP) -s "$(srcdir)"/nlstringtest-nogettext.ok _$@ > /dev/null ; \
731.11.328 by Arnold D. Robbins
Make nlstringtest work if gawk was compiled without gettext.
2369
	then \
2370
		rm -f _$@ ; \
2371
	else \
2372
		$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ ; \
2373
	fi
731.11.268 by Arnold D. Robbins
Add nlstringtest.
2374
2375
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2376
longwrds:
2377
	@echo $@
2378
	@AWKPATH="$(srcdir)" $(AWK) -f $@.awk -v SORT="$(SORT)" < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2379
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2380
2381
731.18.13 by Arnold D. Robbins
Improve portability of spacere test.
2382
spacere:
2383
	@echo $@
2384
	@LC_ALL=C AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2385
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2386
731.18.14 by Arnold D. Robbins
Add test for command line typed regexp assignment.
2387
typedregex4:
2388
	@echo $@
2389
	@$(AWK) -v x=@/foo/ -f "$(srcdir)"/$@.awk y=@/bar/ /dev/null >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
2390
	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
2391
30 by Arnold D. Robbins
Move to gawk-3.1.2.
2392
# Targets generated for other tests:
2393
include Maketests
2394
408.21.1 by Arnold D. Robbins
Rework zOS patches; keep separate from autotools.
2395
Maketests: $(srcdir)/Makefile.am $(srcdir)/Gentests
731.11.352 by Arnold D. Robbins
Major improvements to test infrastructure.
2396
	files=`cd "$(srcdir)" && echo *.awk *.in *.sh`; \
408.21.1 by Arnold D. Robbins
Rework zOS patches; keep separate from autotools.
2397
	$(AWK) -f "$(srcdir)"/Gentests "$(srcdir)"/Makefile.am $$files > $@
29 by Arnold D. Robbins
Move to gawk-3.1.1.
2398
408.21.1 by Arnold D. Robbins
Rework zOS patches; keep separate from autotools.
2399
clean-local:
375 by Arnold D. Robbins
Make more tests work with make diffout.
2400
	rm -fr _* core core.* fmtspcl.ok junk strftime.ok test1 test2 \
2401
	seq *~ readfile.ok fork.tmp.* testext.awk fts.ok readdir.ok \
731.11.343 by Arnold D. Robbins
Fix problem with rebuilding records if using API parser.
2402
	readdir_test.ok readdir_retest.ok \
731.11.337 by Arnold D. Robbins
Regularize several tests so they can be autogenerated.
2403
	profile1.ok
28 by Arnold D. Robbins
Move to gawk-3.1.0.
2404
29 by Arnold D. Robbins
Move to gawk-3.1.1.
2405
# An attempt to print something that can be grepped for in build logs
2406
pass-fail:
2407
	@COUNT=`ls _* 2>/dev/null | wc -l` ; \
2408
	if test $$COUNT = 0 ; \
2409
	then	echo ALL TESTS PASSED ; \
408.4.57 by Arnold D. Robbins
Make 'make check' exit non-zero if failure, for buildbots.
2410
	else	echo $$COUNT TESTS FAILED ; exit 1; \
29 by Arnold D. Robbins
Move to gawk-3.1.1.
2411
	fi
2412
28 by Arnold D. Robbins
Move to gawk-3.1.0.
2413
# This target for my convenience to look at all the results
408.4.63 by Arnold D. Robbins
Solaris fixes.
2414
# Don't use POSIX or bash-isms so that it'll work on !@#$%^&*() Solaris.
28 by Arnold D. Robbins
Move to gawk-3.1.0.
2415
diffout:
2416
	for i in _* ; \
2417
	do  \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
2418
		if [ "$$i" != "_*" ]; then \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
2419
		echo ============== $$i ============= ; \
408.4.63 by Arnold D. Robbins
Solaris fixes.
2420
		base=`echo $$i | sed 's/^_//'` ; \
2421
		if [ -r $${base}.ok ]; then \
2422
		diff -c $${base}.ok $$i ; \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
2423
		else \
408.4.63 by Arnold D. Robbins
Solaris fixes.
2424
		diff -c "$(srcdir)"/$${base}.ok  $$i ; \
34 by Arnold D. Robbins
Move to gawk-3.1.6.
2425
		fi ; \
2426
		fi ; \
28 by Arnold D. Robbins
Move to gawk-3.1.0.
2427
	done | more
30 by Arnold D. Robbins
Move to gawk-3.1.2.
2428
34 by Arnold D. Robbins
Move to gawk-3.1.6.
2429
# convenient way to scan valgrind results for errors
2430
valgrind-scan:
2431
	@echo "Scanning valgrind log files for problems:"
408.19.272 by Arnold D. Robbins
Improve valgrind scan.
2432
	@$(AWK) -f "$(srcdir)"/valgrind.awk log.[0-9]*
34 by Arnold D. Robbins
Move to gawk-3.1.6.
2433
30 by Arnold D. Robbins
Move to gawk-3.1.2.
2434
# This target is for testing with electric fence.
2435
efence:
2436
	for i in $$(ls _* | sed 's;_\(.*\);\1;') ; \
2437
	do \
2438
		bad=$$(wc -l < _$$i) \
2439
		ok=$$(wc -l < $$i.ok) ; \
2440
		if (( $$bad == $$ok + 2 )) ; \
2441
		then \
2442
			rm _$$i ; \
2443
		fi ; \
2444
	done