]> andersk Git - splint.git/blame - test/Makefile
Added some new tests: sizeof, and bufferTest.
[splint.git] / test / Makefile
CommitLineData
885824d3 1##################################################
2### ###
3### Makefile for LCLint testing ###
4### ###
5### designed for use with GNU make ###
6### ###
7##################################################
8
9.PHONY: all fulltest quicktest funcpointer cast abstract
10.PHONY: version help abstptr abstract alias alttypes ansireserved
11.PHONY: argorder args blocks break cases cast charlit
12.PHONY: clauses commentchar
13.PHONY: compdestroy controldepth csyntax czechnames czechoslovaknames
14.PHONY: decl enum exports external fields flags funcpointer glob globals
15.PHONY: impabstract init inparam internal iter keep libs lintcomments
16.PHONY: list macros macrosef merge modifies modtest moduncon mongoincludes
17.PHONY: null observer oldstyle outglob outparam preds prefixes printflike rc
18.PHONY: refcounts release repexpose sharing slovaknames special
19.PHONY: specclauses stack staticarray
20.PHONY: strings structassign
21.PHONY: typequals ud ulstypes union unreachable unused
cc78dedd 22.PHONY: db1 db2 db3 tests2.2 tests2.2a tests2.4 tests2.5
885824d3 23.PHONY: all test fulltest expects quicktest
e4c9f289 24.PHONY: sizeoftest
885824d3 25
26.SUFFIXES: .out .expect .c .lcl .h .lh .diff
27
28SHELL = /bin/csh -f
29
30# Command to run lclint
cc78dedd 31LCLINT = ${HOME}/lclint-dev/src/lclint
885824d3 32LCLINTP = $(LCLINT)
33
34# Make sure .lclintrc files are not used so test results do not
35# depend on local settings.
36LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
37LCLINTR = $(LCLINTRN) -exportlocal
38
e4c9f289 39UNITTESTS = help abstptr abstract alias alttypes ansireserved argorder args blocks break cases cast charlit clauses commentchar compdestroy controldepth csyntax czechnames czechoslovaknames decl enum exports external fields flags funcpointer glob globals impabstract init inparam internal iter keep libs lintcomments list macros macrosef merge modifies modtest moduncon mongoincludes null sizeoftest bufferTest observer oldstyle outglob outparam preds prefixes printflike rc refcounts release repexpose sharing slovaknames specclauses special stack staticarray strings structassign typequals ud ulstypes union unreachable unused tests2.2 tests2.2a tests2.4 tests2.5
40
41#UNITTEST = bufferTest
885824d3 42
43UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
44
45INTEGTESTS = db1 db2 db3
46INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
47
48LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
49
50all: fulltest
51test: fulltest
52
53GREP = grep
54DIFF = diff
55CLEANOUTPUT = $(GREP) -v "LCLint 2." | $(GREP) -v "make -e" | $(GREP) -v "make\[" | $(GREP) -v "lclint -nof" | $(GREP) -v "make -e"
56
57### not real .c
58
59.c.expect:
60 $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).expect ; \
61 cat $(*).expect
62
63.c.diff:
64 $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).out ; \
65 diff $(*).expect $(*).out
66
67expects:
68 echo "Saving old expects: " ; \
69 more *.expect | cat > expects-`date +"%y-%m-%d-%H"`
70 @$(foreach test, $(UNITTESTS), \
71 echo "Making "$(test)".expect: " ; \
72 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
73 cat $(test).expect ; )
74 @echo "Integration Tests"
75 @$(foreach test, $(INTEGTESTS), \
76 echo "Making "$(test)".expect: "; \
77 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
78 cat $(test).expect ; )
79
80fulltest:
81 @echo ''
82 @echo 'Testing '$(LCLINTP)
83 @echo ''
84 @echo 'Version:'
85 @echo ''
86 @$(LCLINTP) -help version
87 @$(LCLINTP) -help vars
88 @echo ''
89 @echo "Unit Tests:"
90 @echo ''
91 @$(foreach test, $(UNITTESTS), \
92 echo "Checking "$(test)"... " ; \
93 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
94 $(DIFF) $(test).expect $(test).out ; \
95 if ($$status) echo "*** FAIL ***" ; \
96 )
97 @echo ''
98 @echo "Integration Tests"
99 @echo ''
100 @$(foreach test, $(INTEGTESTS), \
101 echo "Checking "$(test)"... "; \
102 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
103 $(DIFF) $(test).expect $(test).out ; )
104
105quicktest: $(LCLINTTESTS)
106
107###
108### Unit Tests
109###
110
111version:
112 -$(LCLINTP) -help version
113
114help:
115 -@$(LCLINTP)
116 -@setenv LARCH_PATH "/dev/null"; $(LCLINTP) empty.lcl
117 -@$(LCLINTP) -help
118 -@$(LCLINTP) -asdf
119 -@$(LCLINTP) +boolint +boolint
120 -@$(LCLINTP) -help flags alpha
121 -@$(LCLINTP) -help flags all
122
123abstptr:
124 $(LCLINTR) abstptr -expect 9
125 $(LCLINTR) abstptr +voidabstract -expect 6
126
127abstract:
128 $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
129
130alias:
131 $(LCLINTR) +lh mut
132 $(LCLINTR) mut alias +globalias -expect 19
133 $(LCLINTR) mut alias2 +globalias -expect 17
134 $(LCLINTR) +lh alias3 -expect 14
135 $(LCLINTR) +lh alias4 +boolint
136 $(LCLINTR) alias4 -pred +retalias -expect 6
137 $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
138
139alttypes:
140 $(LCLINTR) alttypes.c -expect 2
141
142ansireserved:
143 $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 8
144 $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
145 $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 9
146
147argorder:
148 $(LCLINTR) argorder.c -expect 4
149 $(LCLINTR) argorder2 -expect 5
150 $(LCLINTR) argorder3.c -expect 8
151 $(LCLINTR) argorder4 -expect 9
152 $(LCLINTR) argorder4 -evalorder -expect 1
153 $(LCLINTR) argorder5.c +evalorderuncon -expect 3
154
155args:
156 $(LCLINTR) args -noeffect -expect 12
157
158blocks:
159 $(LCLINTR) blocks.c -expect 4
160 $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
161 $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
162 $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
163 $(LCLINTR) blocks.c +allempty -expect 6
164 $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
165
166break:
167 $(LCLINTR) break.c -expect 4
168 $(LCLINTR) break.c +deepbreak -expect 6
169 $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
170
171cases:
172 $(LCLINTR) cases.c -expect 5
173 $(LCLINTR) cases2.c -expect 2
174 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
175 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
176
177cast:
178 $(LCLINTR) cast -accessmodule -expect 20
179 $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
180
cc78dedd 181### Two addition errors detected with 2.5 with -numliteral.
182
885824d3 183charlit:
184 $(LCLINTR) +hints charlit.c -expect 4
cc78dedd 185 $(LCLINTR) +hints -numliteral charlit.c -expect 6
885824d3 186 $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
187
188clauses:
189 $(LCLINTR) clauses.c +memchecks -expect 4
190 $(LCLINTR) clauses2.c +memchecks
191 $(LCLINTR) clauses3.c +memchecks -expect 2
192 $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
193
194commentchar:
195 $(LCLINTR) commentchar.c -expect 4
196 $(LCLINTR) -commentchar '#' commentchar.c -expect 4
197
198controldepth:
199 $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
200 $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
201
202compdestroy:
203 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
204 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
205 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
206 $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
207
208csyntax:
cc78dedd 209 $(LCLINTR) +quiet -incondefs csyntax.c -expect 1
210 $(LCLINTR) +quiet csyntax2.c -expect 2
211 $(LCLINTR) +quiet csyntax3.c -expect 1
885824d3 212 $(LCLINTR) +quiet -incondefs csyntax4.c
213 $(LCLINTR) +quiet csyntax5.c
214 $(LCLINTR) +quiet csyntax6.c
215 $(LCLINTR) +quiet csyntax7.c
216 $(LCLINTR) +quiet csyntax8.c
217 $(LCLINTR) +quiet csyntax9.c
218 $(LCLINTR) +quiet csyntax10.c
219 $(LCLINTR) +quiet csyntax11.c
220 $(LCLINTR) +quiet csyntax12.c
cc78dedd 221 $(LCLINTR) +quiet csyntax13.c -expect 1
885824d3 222 $(LCLINTR) +quiet csyntax14.c
223 $(LCLINTR) +quiet csyntax15.c
cc78dedd 224 $(LCLINTR) +quiet csyntax16.c -expect 2
225 $(LCLINTR) +quiet csyntax17.c -expect 3
885824d3 226
227czechnames:
228 $(LCLINTR) czechnames.c
229 $(LCLINTR) +hints +czech czechnames.c -expect 2
230 $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
231 $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
232
233czechoslovaknames:
234 $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
235 $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
236 $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
237
238#
239# Was expect 3 before 2.4. Earlier versions did not handle implicit
240# function pointers correctly.
241#
242
243decl:
244 $(LCLINTR) decl.c -expect 2
245 $(LCLINTRN) decl.c +strict -exportlocal -expect 5
246 $(LCLINTR) decl2 -expect 4
247
248enum:
249 $(LCLINTR) enum -expect 16
250 $(LCLINTR) enum -misscase -expect 14
251
252exports:
253 $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
254 $(LCLINTR) exports.c +exportany -expect 3
255 $(LCLINTR) exports.c
256
257external:
258 $(LCLINTR) external.c +partial
259 $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
260 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
261 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
262 $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
263
264fields:
265 $(LCLINTR) fields.c +memchecks -expect 6
266 $(LCLINTR) fields2.c +memchecks -expect 5
267 $(LCLINTR) fields3.c +memchecks
268
269flags:
270 $(LCLINTR) flags.c -expect 8
271 $(LCLINTR) +nocomments flags.c -expect 2
272
273# two new errors (invalid lhs)
274
275funcpointer:
276 $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
277
278glob:
279 $(LCLINTR) glob -expect 4
280 $(LCLINTR) glob -globuse -expect 3
281 $(LCLINTR) glob +globunspec -expect 6
282
283globals:
284 $(LCLINTR) -modifies globals.c -expect 5
285 $(LCLINTR) -modifies globals.c +allglobals -expect 6
286 $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
287 $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
288 $(LCLINTR) -modifies globals.c +globunspec -expect 6
289 $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
290
291impabstract:
292 $(LCLINTR) -accessfile impabstract.c
293 $(LCLINTR) -accessfile +hints +impabstract impabstract.c -expect 2
294 $(LCLINTR) -accessfile +hints +impabstract impabstract -expect 2
295
296init:
297 $(LCLINTR) init.c -expect 12
298 $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 15
299
300inparam:
301 $(LCLINTR) inparam.c -expect 2
302 $(LCLINTR) +impouts inparam.c -expect 1
303
304internal:
305 $(LCLINTR) internal.c -expect 1
306 $(LCLINTR) internal.c +distinctinternalnames -expect 2
307 $(LCLINTR) internal.c -internalnamelen 28 -expect 3
308 $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
309 $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
310
311iter:
312 $(LCLINTR) iter -expect 14 -lclexpect 1
313 $(LCLINTR) iter2.c -expect 12
314
315keep:
316 $(LCLINTR) keep.c +memchecks -expect 6
317
318#
319# 2 new errors found (fixed spec of signal)
320#
321
322libs:
323 $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 15
324 $(LCLINTR) libs.c -expect 19
325 $(LCLINTR) libs.c +globunspec +modunspec -expect 22
326 $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 39
327
328lintcomments:
329 $(LCLINTR) lintcomments.c -expect 4
330 $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
331 $(LCLINTR) lintcomments.c -lintcomments -expect 4
332
333list:
334 $(LCLINTR) list.c -expect 3
335
336macros:
337 $(LCLINTR) macros -expect 17
338 $(LCLINTR) macros.c +allmacros -expect 34
339 $(LCLINTR) macros.c +fcnmacros -expect 31
340
341
342macrosef:
343 $(LCLINTR) macrosef -expect 4
344 $(LCLINTR) macrosef.c +allmacros -expect 3
345 $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
346
347merge:
348 $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
349
350modifies:
351 $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
352
353modtest:
354 $(LCLINTR) modtest -expect 10
355 $(LCLINTR) modtest +modunspec -expect 13
356 $(LCLINTR) modtest +mustmod -expect 14
357
358moduncon:
359 $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
360 $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
361
362mongoincludes:
363 $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
364 $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
365 $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
366 $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
367 $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
368
369null:
370 $(LCLINTR) null1.c -expect 14
371 $(LCLINTR) null1.c -null -expect 4
372 $(LCLINTR) null2.c -expect 10
373 $(LCLINTR) null3.c -expect 15
374 $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
375 $(LCLINTR) null4.c -expect 1
376 $(LCLINTR) null5.c -expect 4
377 $(LCLINTR) null6 -expect 4
378 $(LCLINTR) +quiet null6.lcl -dump null6
379 $(LCLINTR) null6.c -load null6 -expect 4
380
381#
382# Before 2.4, expected one more because error was reported both as
383# dependent and observer.
384#
385
386observer:
387 $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
388 $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
389 $(LCLINTR) observer.c -expect 7
390
391oldstyle:
392 $(LCLINTR) oldstyle -expect 3
393
394outglob:
395 $(LCLINTR) outglob -expect 10
396
397outparam:
398 $(LCLINTR) outparam -expect 12
399
400preds:
401 $(LCLINTR) +hints preds.c -expect 6
402 $(LCLINTRN) +hints preds.c -weak -expect 1
403 $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 8
404
405prefixes:
406 $(LCLINTR) prefixes.c +partial
407 $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
408 $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
409 $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
410 $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
411 $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
412 $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
413 $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
414 $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
415 $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
416 $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
417 $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
418 $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
419 $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
420 $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
421 $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
422
423printflike:
424 $(LCLINTR) printflike.c -expect 6
425 $(LCLINTR) printflike.c -warnlintcomments -expect 5
426
427rc:
cc78dedd 428 $(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
429 $(LCLINTR) -DMYSTERY=12 rc.c -expect 1
430 $(LCLINTR) -f rc1.lclintrc rc.c -expect 1
431 $(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
432 $(LCLINTR) -f rc3.lclintrc rc.c -expect 1
885824d3 433
434refcounts:
435 $(LCLINTR) refcounts.c -expect 7
436
437release:
438 $(LCLINTR) release.c +memchecks -expect 1
439
440repexpose:
441 $(LCLINTR) +lh repexpose +memchecks -expect 12
442 $(LCLINTR) repexpose +memchecks +retalias -expect 15
443 $(LCLINTRN) repexpose +checks -exportlocal -expect 27
444
445sharing:
446 $(LCLINTR) sharing1.c -expect 21
447 $(LCLINTR) sharing3.c -expect 3
448 $(LCLINTR) sharing4.c -expect 13
449 $(LCLINTR) sharing4.c -paramimptemp -expect 12
450 $(LCLINTR) sharing5.c -expect 6
451
452slovaknames:
453 $(LCLINTR) +hints slovaknames.c -expect 1
454 $(LCLINTR) +hints slovaknames.c +accessslovak
455 $(LCLINTR) +hints +slovak slovaknames.c -expect 3
456 $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
457 $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
458
459specclauses:
460 $(LCLINTR) specclauses.c -expect 6
461 $(LCLINTR) specclauses2.c -expect 8
462 $(LCLINTR) specclauses3.c -expect 6
463 $(LCLINTR) specclauses4.c -expect 3
464 $(LCLINTR) specclauses5.c -expect 3
465
466special:
467 $(LCLINTR) special -expect 20
468 $(LCLINTR) special -relaxquals -expect 22
469
470stack:
471 $(LCLINTR) stack.c -expect 5
472 $(LCLINTR) stack.c -stackref
473
474staticarray:
475 $(LCLINTR) staticarray.c -expect 3
476
477strings:
478 $(LCLINTR) strings.c -expect 3
479 $(LCLINTR) -readonlystrings -expect 1 strings.c
480 $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
481
482structassign:
483 $(LCLINTR) structassign.c -expect 4
484
485typequals:
486 $(LCLINTR) typequals.c tq.lcl -expect 5
487 $(LCLINTR) typequals.c -expect 2
488
489ud:
490 $(LCLINTR) ud.c -expect 9
491 $(LCLINTR) ud2 -specundef -expect 3
492
493ulstypes:
494 $(LCLINTR) ulstypes.c -expect 8
495 $(LCLINTR) ulstypes.c +ignorequals
496 $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
cc78dedd 497# 3 more detected with version 2.5 (change in -numliteral setting)
885824d3 498
499union:
500 $(LCLINTR) +memchecks union.c -expect 8
501
502unreachable:
503 $(LCLINTR) unreachable.c -expect 5
504 $(LCLINTR) -unreachable unreachable.c -expect 2
505 $(LCLINTR) switch.c -expect 4
506
507unused:
508 $(LCLINTRN) unused.c +checks -exportlocal -expect 3
509 $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 6
510
511###
512### Bugs fixed and new features since version 2.1b
513###
514
515tests2.2:
516 @cd tests2.2 ; \
517 $(LCLINTR) boolops.c -expect 1 ; \
518 $(LCLINTR) bool.lcl booldef.c -expect 1 ; \
519 $(LCLINTR) boolenum.c -booltype BOOLEAN -expect 1 ; \
520 $(LCLINTR) break.c -expect 1 ; \
521 $(LCLINTR) bstring.c -expect 2 ; \
522 $(LCLINTR) decl.c -expect 1 ; \
523 $(LCLINTR) enumbool.c -expect 2 ; \
524 $(LCLINTR) enumbool.c -booltrue "true" -boolfalse "false" ; \
525 $(LCLINTR) extension.c ; \
526 $(LCLINTR) -gnuextensions extension.c ; \
527 $(LCLINTR) modarray.c ; \
528 $(LCLINTR) nestext.c -expect 1 ; \
529 $(LCLINTR) offsetof.c ; \
530 $(LCLINTR) sizeofarray.c -expect 3 ; \
531 $(LCLINTR) rex.c -expect 1 ; \
532 $(LCLINTR) struct.c -expect 1
533
534tests2.2a:
535 @cd tests2.2a ; \
536 $(LCLINTR) erik.c -expect 1 ; \
537 $(LCLINTR) boolcomp.c -expect 5 ; \
538 $(LCLINTR) boolenum.c ; \
539 $(LCLINTR) addassign.c -expect 1; \
540 $(LCLINTR) toralf.c -expect 5 ; \
541 $(LCLINTR) fred.c -booltype Bool ; \
542 $(LCLINTR) sizeof.c ; \
543 $(LCLINTR) arrayparam.c -expect 5 ; \
544 $(LCLINTR) notreached.c ; \
cc78dedd 545 $(LCLINTR) duff.c -casebreak -firstcase ; \
885824d3 546 $(LCLINTR) obviousloop.c -expect 4 ; \
547 $(LCLINTR) bitops.c +bitwisesigned -expect 11 ; \
548 $(LCLINTR) bitops.c -expect 5 ; \
549 $(LCLINTR) isalpha.c +strictlib -expect 1 ; \
550 $(LCLINTR) isalpha.c -expect 1 ; \
551 $(LCLINTR) dobb.c ; \
552 $(LCLINTR) popik.c -expect 11
553
554tests2.4:
555 @cd tests2.4 ; \
556 $(LCLINTR) emptycase.c ; \
557 $(LCLINTR) enumtest.c ; \
558 $(LCLINTR) duffs.c ; \
559 $(LCLINTR) bitfields.c ; \
560 $(LCLINTR) bug1.c ; \
561 $(LCLINTR) bug2.c -expect 5 ; \
562 $(LCLINTR) bug3.c ; \
563 $(LCLINTR) test0.c ; \
564 $(LCLINTR) test1.c ; \
565 $(LCLINTR) test2.c ; \
566 $(LCLINTR) hexconstants.c -expect 1 ; \
567 $(LCLINTR) +checks hexconstants.c -expect 4 ; \
568 $(LCLINTR) innercomment.c ; \
569 $(LCLINTR) nothing.c ; \
570 $(LCLINTR) offsetof.c -expect 2 ; \
571 $(LCLINTR) komazi.c ; \
572 $(LCLINTR) print.c ; \
573 $(LCLINTR) syslog.c -warnunixlib +unixlib ; \
574 $(LCLINTR) error.c -expect 1 ; \
575 $(LCLINTR) ulrich.c ; \
576 $(LCLINTR) cpptest.c '-D__P(x)=x' ; \
577 $(LCLINTR) longlong.c -expect 4; \
578 $(LCLINTR) subdir/main.c subdir/main.lcl ; \
579 $(LCLINTR) fink.c ; \
580 $(LCLINTR) driverstub.c ; \
581 $(LCLINTR) alignof.c -expect 2 ; \
582 $(LCLINTR) -D DBL_MANT_DIG=25 source.c
583
e4c9f289 584sizeoftest:
585 @cd sizeoftest; \
586 $(LCLINTR) +functionconstraint sizeof.c
1ac6313d 587
cc78dedd 588tests2.5:
589 setenv LCLINT '$(LCLINTRN)'; cd tests2.5 ; $(MAKE) -e
590
885824d3 591###
592### Integration Tests
593###
594
595db1:
596 setenv LCLINT '$(LCLINTRN)'; cd db1; $(MAKE) -e test
597
598db2:
599 setenv LCLINT '$(LCLINTRN)'; cd db2; $(MAKE) -e test
600
601db3:
602 setenv LCLINT '$(LCLINTRN)'; cd db3; $(MAKE) -e test
603
885824d3 604clean:
605 -rm -f *~ #*# *.o *.lcs a.out
606 -cd db1 ; $(MAKE) clean
607 -cd db2 ; $(MAKE) clean
608 -cd db3 ; $(MAKE) clean
609
610
611
cc78dedd 612
This page took 4.135807 seconds and 5 git commands to generate.