]> andersk Git - splint.git/blob - test/Makefile
d1c33de08710bb8414a3f2540bc0ff3f56e059e6
[splint.git] / test / Makefile
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 constannot controldepth csyntax czechnames czechoslovaknames 
14 .PHONY: deadparam decl enum exports external fields fileio flags forbody format funcpointer glob globals 
15 .PHONY: impabstract init inparam internal iter keep libs lintcomments 
16 .PHONY: list macros macrosef merge mergestate modifies modtest moduncon mongoincludes 
17 .PHONY: noeffect null observer oldstyle outglob outparam preds prefixes printflike rc 
18 .PHONY: refcounts release repexpose returned sharing slovaknames special
19 .PHONY: specclauses stack staticarray 
20 .PHONY: strings structassign nullret
21 .PHONY: tainted typequals ud ulstypes union unreachable unused ullint void
22 .PHONY: db1 db2 db3 tests2.2 tests2.2a tests2.4 tests2.5
23 .PHONY: all test fulltest expects quicktest
24 .PHONY: warnuse metastate
25 .PHONY: linked freearray
26 .PHONY: sizeoftest
27 .PHONY: bufferTest
28 .PHONY: simplebufferConstraintTests
29 .PHONY: moreBufferTests
30 .PHONY: maxset
31 .PHONY: globalbufferannotation
32 .PHONY: strchr
33 .PHONY: for
34
35 .SUFFIXES: .out .expect .c .lcl .h .lh .diff
36
37 SHELL = /bin/csh -f
38
39 # Command to run lclint
40 LCLINT  = ${HOME}/LCLintDev/src/lclint
41 LCLINTP = $(LCLINT)
42
43 # Make sure .lclintrc files are not used so test results do not
44 # depend on local settings.
45 LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
46 LCLINTR = $(LCLINTRN) -exportlocal   +debugfcnconstraint
47
48 UNITTESTS = help sizeoftest bufferTest simplebufferConstraintTests  moreBufferTests globalbufferannotation maxset strchr for abstptr abstract alias alttypes ansireserved argorder args blocks break cases cast \
49    charlit clauses commentchar compdestroy constannot controldepth csyntax czechnames czechoslovaknames deadparam \
50    decl enum exports external fields flags forbody format freearray funcpointer glob globals impabstract \
51    init inparam internal iter keep libs linked lintcomments list macros macrosef merge modifies \
52    modtest moduncon mongoincludes mystrncat noeffect null observer oldstyle \
53    outglob outparam preds prefixes \
54    printflike rc refcounts release repexpose returned sharing slovaknames specclauses special stack \
55    staticarray strings structassign \
56 typequals ud ulstypes union unreachable unused ullint void \
57    tests2.2 tests2.2a tests2.4 tests2.5 
58
59 ###
60 ### Attribute checking is not ready for the 3.0.0.9 alpha release:
61 ###
62
63 #drl removed the following tests
64 #fileio tainted mergestate nullret nullassign warnuse metastate \
65
66 UNITEXPECTS  = $(addsuffix .expect, $(UNITTESTS))
67
68 INTEGTESTS = db1 db2 db3
69 INTEGEXPECTS  = $(addsuffix .expect, $(INTEGTESTS))
70
71 LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
72
73 QUICKTESTS = db3
74
75 all: fulltest
76 test: fulltest
77
78 GREP = grep
79 DIFF = diff
80 CLEANOUTPUT = $(GREP) -v "LCLint 3." | $(GREP) -v "make -e" | $(GREP) -v "make\[" | $(GREP) -v "lclint -nof" | $(GREP) -v "make  -e" | $(GREP) -v $(LCLINT) | $(GREP) -v $(HOME)
81
82 ### not real .c
83
84 .c.expect:
85         $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).expect ; \
86         cat $(*).expect
87
88 .c.diff:
89         $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).out ; \
90         diff $(*).expect $(*).out
91
92 expects:
93         echo "Saving old expects: " ; \
94         more *.expect | cat > expects-`date +"%y-%m-%d-%H"`
95         @$(foreach test, $(UNITTESTS),  \
96            echo "Making "$(test)".expect: " ; \
97            $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
98            cat $(test).expect ; ) 
99         @echo "Integration Tests"       
100         @$(foreach test, $(INTEGTESTS),  \
101            echo "Making "$(test)".expect: "; \
102            $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
103            cat $(test).expect ; ) 
104
105 quicktest:
106         @$(foreach test, $(QUICKTESTS),  \
107            echo "Checking "$(test)"... " ; \
108            $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
109            $(DIFF) $(test).expect $(test).out ; \
110            if ($$status) echo "*** FAIL ***" ; \
111            ) 
112 fulltest:
113         @echo ''
114         @echo 'Testing '$(LCLINTP)
115         @echo ''
116         @echo 'Version:'
117         @echo ''
118         @$(LCLINTP) -help version
119         @$(LCLINTP) -help vars
120         @echo ''
121         @echo "Unit Tests:"
122         @echo ''
123         @$(foreach test, $(UNITTESTS),  \
124            echo "Checking "$(test)"... " ; \
125            $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
126            $(DIFF) $(test).expect $(test).out ; \
127            if ($$status) echo "*** FAIL ***" ; \
128            ) 
129         @echo ''
130         @echo "Integration Tests"       
131         @echo ''
132         @$(foreach test, $(INTEGTESTS),  \
133            echo "Checking "$(test)"... "; \
134            $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
135            $(DIFF) $(test).expect $(test).out ; )
136
137 ###
138 ### Unit Tests
139 ###
140
141 version:
142         -$(LCLINTP) -help version
143
144 help:
145         -@$(LCLINTP)
146         -@setenv LARCH_PATH "/dev/null"; $(LCLINTP) empty.lcl
147         -@$(LCLINTP) -help
148         -@$(LCLINTP) -asdf
149         -@$(LCLINTP) +boolint +boolint 
150         -@$(LCLINTP) -help flags alpha
151         -@$(LCLINTP) -help flags all
152
153 abstptr:
154         $(LCLINTR) abstptr -expect 9
155         $(LCLINTR) abstptr +voidabstract -expect 6
156
157 abstract:
158         $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
159
160 alias:
161         $(LCLINTR) +lh mut
162         $(LCLINTR) mut alias +globalias -expect 19
163         $(LCLINTR) mut alias2 +globalias -expect 17
164         $(LCLINTR) +lh alias3 -expect 14 
165         $(LCLINTR) +lh alias4 +boolint
166         $(LCLINTR) alias4 -pred +retalias -expect 6
167         $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
168
169 alttypes:
170         $(LCLINTR) alttypes.c -expect 2
171
172 ###
173 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
174 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local variable.
175 ###    (could be a macro?)
176 ### Reports 3 additional errors for +checks; no longer suppresses name errors in the
177 ###    presense of other errors.
178 ###
179
180 ansireserved:
181         $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 9
182         $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
183         $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
184         $(LCLINTR) ansireserved2.c +ansireserved -expect 1
185
186 argorder:
187         $(LCLINTR) argorder.c -expect 4
188         $(LCLINTR) argorder2  -expect 5
189         $(LCLINTR) argorder3.c -expect 8
190         $(LCLINTR) argorder4 -expect 9
191         $(LCLINTR) argorder4 -evalorder -expect 1
192         $(LCLINTR) argorder5.c +evalorderuncon -expect 3
193
194 args:
195         $(LCLINTR) args -noeffect -expect 12
196
197 blocks:
198         $(LCLINTR) blocks.c -expect 4
199         $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
200         $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
201         $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
202         $(LCLINTR) blocks.c +allempty -expect 6
203         $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
204
205 break:
206         $(LCLINTR) break.c -expect 4
207         $(LCLINTR) break.c +deepbreak -expect 6
208         $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
209
210 cases: 
211         $(LCLINTR) cases.c -expect 5
212         $(LCLINTR) cases2.c -expect 2
213         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
214         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
215
216 cast:
217         $(LCLINTR) cast -accessmodule -expect 20
218         $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
219
220 ### Two addition errors detected with 2.5 with -numliteral.
221
222 charlit:
223         $(LCLINTR) +hints charlit.c -expect 4
224         $(LCLINTR) +hints -numliteral charlit.c -expect 6
225         $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
226
227 clauses: 
228         $(LCLINTR) clauses.c +memchecks -expect 4
229         $(LCLINTR) clauses2.c +memchecks 
230         $(LCLINTR) clauses3.c +memchecks -expect 2
231         $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
232
233 commentchar:
234         $(LCLINTR) commentchar.c -expect 4
235         $(LCLINTR) -commentchar '#' commentchar.c -expect 4
236
237 controldepth:
238         $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
239         $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
240
241 compdestroy:
242         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
243         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
244         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
245         $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
246
247 constannot:
248         ${LCLINTRN} constannot.c +arraybounds  -exportlocal -expect 2
249
250 csyntax:
251         $(LCLINTR) +quiet -incondefs csyntax.c -expect 1 
252         $(LCLINTR) +quiet csyntax2.c -expect 2
253         $(LCLINTR) +quiet csyntax3.c -expect 1
254         $(LCLINTR) +quiet -incondefs csyntax4.c
255         $(LCLINTR) +quiet csyntax5.c
256         $(LCLINTR) +quiet csyntax6.c
257         $(LCLINTR) +quiet csyntax7.c
258         $(LCLINTR) +quiet csyntax8.c
259         $(LCLINTR) +quiet csyntax9.c
260         $(LCLINTR) +quiet csyntax10.c
261         $(LCLINTR) +quiet csyntax11.c
262         $(LCLINTR) +quiet csyntax12.c
263         $(LCLINTR) +quiet csyntax13.c -expect 1
264         $(LCLINTR) +quiet csyntax14.c
265         $(LCLINTR) +quiet csyntax15.c
266         $(LCLINTR) +quiet csyntax16.c -expect 2
267         $(LCLINTR) +quiet csyntax17.c -expect 3
268
269 czechnames:
270         $(LCLINTR) czechnames.c
271         $(LCLINTR) +hints +czech czechnames.c -expect 2
272         $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
273         $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
274
275 czechoslovaknames:
276         $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
277         $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
278         $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
279
280 ###
281 ### deadparam added 2001-05-27
282 ###
283
284 deadparam:
285         ${LCLINTR} deadparam.c -expect 3
286
287 #
288 # Was expect 3 before 2.4.  Earlier versions did not handle implicit
289 # function pointers correctly.
290 #
291
292 decl:
293         $(LCLINTR) decl.c -expect 2
294         $(LCLINTRN) decl.c +strict -exportlocal -expect 5
295         $(LCLINTR) decl2 -expect 4
296
297 enum:
298         $(LCLINTR) enum -expect 16
299         $(LCLINTR) enum -misscase -expect 14
300
301 exports:
302         $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
303         $(LCLINTR) exports.c +exportany -expect 3
304         $(LCLINTR) exports.c
305
306 external:
307         $(LCLINTR) external.c +partial
308         $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
309         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
310         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
311         $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
312
313 fields:
314         $(LCLINTR) fields.c +memchecks -expect 6
315         $(LCLINTR) fields2.c +memchecks -expect 5
316         $(LCLINTR) fields3.c +memchecks
317
318 flags:
319         $(LCLINTR) flags.c -expect 8
320         $(LCLINTR) +nocomments flags.c -expect 2
321
322 ### Added 2001-06-02
323
324 forbody:
325         ${LCLINTR} forbody.c -expect 2
326
327 ### Added 2001-06-03
328 format:
329         ${LCLINTR} format.c -expect 3
330         ${LCLINTR} format.c -formatconst 
331
332 # two new errors (invalid lhs)
333
334 funcpointer:
335         $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
336
337 glob:
338         $(LCLINTR) glob -expect 4
339         $(LCLINTR) glob -globuse -expect 3
340         $(LCLINTR) glob +globunspec -expect 6
341
342 globals:
343         $(LCLINTR) -modifies globals.c -expect 5
344         $(LCLINTR) -modifies globals.c +allglobals -expect 6
345         $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
346         $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
347         $(LCLINTR) -modifies globals.c +globunspec -expect 6
348         $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
349
350 # Was -accessfile
351 impabstract: 
352         $(LCLINTR) -accessmodule impabstract.c 
353         $(LCLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
354         $(LCLINTR) -accessmodule +hints +impabstract impabstract -expect 4
355
356 init:
357         $(LCLINTR) init.c -expect 12
358         $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 15
359
360 inparam:
361         $(LCLINTR) inparam.c -expect 2
362         $(LCLINTR) +impouts inparam.c -expect 1
363
364 internal:
365         $(LCLINTR) internal.c -expect 1
366         $(LCLINTR) internal.c +distinctinternalnames -expect 2
367         $(LCLINTR) internal.c -internalnamelen 28 -expect 3
368         $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
369         $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
370
371 ###
372 ### iter
373 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
374 ### 
375
376 iter:
377         $(LCLINTR) iter -expect 14 -lclexpect 1
378         $(LCLINTR) iter2.c -expect 12
379
380 keep:
381         $(LCLINTR) keep.c +memchecks -expect 6
382
383 ### libs
384 ### 2001-05-22: 2 new errors found (fixed spec of signal)
385 ### 2001-05-30: 3 new errors found (formatconst)
386
387 libs:
388         $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 18
389         $(LCLINTR) libs.c -expect 22
390         $(LCLINTR) libs.c +globunspec +modunspec -expect 25
391         $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
392
393 lintcomments:
394         $(LCLINTR) lintcomments.c -expect 4
395         $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
396         $(LCLINTR) lintcomments.c -lintcomments -expect 4
397
398 list:
399         $(LCLINTR) list.c -expect 3
400
401 macros:
402         $(LCLINTR) macros -expect 17 
403         $(LCLINTR) macros.c +allmacros -expect 34
404         $(LCLINTR) macros.c +fcnmacros -expect 31
405
406
407 macrosef:
408         $(LCLINTR) macrosef -expect 4
409         $(LCLINTR) macrosef.c +allmacros -expect 3
410         $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
411
412 merge:
413         $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
414
415 modifies:
416         $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
417
418 modtest:
419         $(LCLINTR) modtest -expect 10
420         $(LCLINTR) modtest +modunspec -expect 13
421         $(LCLINTR) modtest +mustmod -expect 14
422
423 moduncon:
424         $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
425         $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
426
427 mongoincludes:
428         $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
429         $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
430         $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
431         $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
432         $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
433
434 mystrncat:
435         $(LCLINTR) mystrncat.c +arraybounds  +arrayboundsread -expect 4 
436
437 noeffect:
438         ${LCLINT} noeffect.c +allmacros +checks -expect 3
439
440 null: 
441         $(LCLINTR) null1.c -expect 14
442         $(LCLINTR) null1.c -null -expect 4
443         $(LCLINTR) null2.c -expect 10
444         $(LCLINTR) null3.c -expect 15
445         $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
446         $(LCLINTR) null4.c -expect 1
447         $(LCLINTR) null5.c -expect 4
448         $(LCLINTR) null6 -expect 4
449         $(LCLINTR) +quiet null6.lcl -dump null6
450         $(LCLINTR) null6.c -load null6 -expect 4
451
452 ### Added for 3.0 (bugs reported by Kevin Broady)
453
454 nullret:
455         $(LCLINTR) nullret.c -expect 2
456         $(LCLINTR) -nullret nullret.c -expect 1
457
458 nullassign:
459         $(LCLINTR) nullassign.c -expect 2
460         $(LCLINTR) -nullassign nullassign.c -expect 1
461
462
463 #
464 # Before 2.4, expected one more because error was reported both as 
465 # dependent and observer.
466 #
467
468 observer:
469         $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
470         $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
471         $(LCLINTR) observer.c -expect 7
472
473 oldstyle:
474         $(LCLINTR) oldstyle -expect 3
475
476 outglob:
477         $(LCLINTR) outglob -expect 10
478
479 outparam:
480         $(LCLINTR) outparam -expect 12
481
482 #
483 # Four new +fcnuse errors for -strict (evans 2001-07-22)
484
485
486 preds:
487         $(LCLINTR) +hints preds.c -expect 6
488         $(LCLINTRN) +hints preds.c -weak -expect 1
489         $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
490
491 prefixes:
492         $(LCLINTR) prefixes.c +partial
493         $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
494         $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
495         $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
496         $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
497         $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
498         $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
499         $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
500         $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
501         $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
502         $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
503         $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
504         $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
505         $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
506         $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
507         $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
508
509 printflike:
510         $(LCLINTR) printflike.c -expect 6
511         $(LCLINTR) printflike.c -warnlintcomments -expect 5
512
513 rc:
514         $(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
515         $(LCLINTR) -DMYSTERY=12 rc.c -expect 1
516         $(LCLINTR) -f rc1.lclintrc rc.c -expect 1
517         $(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
518         $(LCLINTR) -f rc3.lclintrc rc.c -expect 1
519
520 refcounts:
521         $(LCLINTR) refcounts.c -expect 7 
522
523 release:
524         $(LCLINTR) release.c +memchecks -expect 1
525
526 repexpose:
527         $(LCLINTR) +lh repexpose +memchecks -expect 12
528         $(LCLINTR) repexpose +memchecks +retalias -expect 15
529         $(LCLINTRN) repexpose +checks -exportlocal -expect 27
530
531 ### returned added 2001-05-27
532 ### (Bug discovered checking lclint sources.)
533
534 returned:
535         ${LCLINTR} returned.c -expect 1
536
537 sharing: 
538         $(LCLINTR) sharing1.c -expect 21
539         $(LCLINTR) sharing3.c -expect  3
540         $(LCLINTR) sharing4.c -expect 13
541         $(LCLINTR) sharing4.c -paramimptemp -expect 12
542         $(LCLINTR) sharing5.c -expect 6
543
544 slovaknames:
545         $(LCLINTR) +hints slovaknames.c -expect 1
546         $(LCLINTR) +hints slovaknames.c +accessslovak 
547         $(LCLINTR) +hints +slovak slovaknames.c -expect 3
548         $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
549         $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
550
551 specclauses:
552         $(LCLINTR) specclauses.c -expect 6
553         $(LCLINTR) specclauses2.c -expect 8
554         $(LCLINTR) specclauses3.c -expect 6
555         $(LCLINTR) specclauses4.c -expect 3
556         $(LCLINTR) specclauses5.c -expect 3
557
558 special:
559         $(LCLINTR) special -expect 20
560         $(LCLINTR) special -relaxquals -expect 22
561
562 stack:
563         $(LCLINTR) stack.c -expect 5
564         $(LCLINTR) stack.c -stackref
565
566 staticarray:
567         $(LCLINTR) staticarray.c -expect 3
568
569 strings:
570         $(LCLINTR) strings.c -expect 3
571         $(LCLINTR) -readonlystrings -expect 1 strings.c
572         $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
573
574 structassign:
575         $(LCLINTR) structassign.c -expect 4
576
577 typequals:
578         $(LCLINTR) typequals.c tq.lcl -expect 5
579         $(LCLINTR) typequals.c -expect 2
580
581 ud:
582         $(LCLINTR) ud.c -expect 9
583         $(LCLINTR) ud2 -specundef -expect 3
584
585 ulstypes:
586         $(LCLINTR) ulstypes.c -expect 8
587         $(LCLINTR) ulstypes.c +ignorequals 
588         $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
589 # 3 more detected with version 2.5 (change in -numliteral setting)
590
591 union:
592         $(LCLINTR) +memchecks union.c -expect 8
593
594 unreachable:
595         $(LCLINTR) unreachable.c -expect 5
596         $(LCLINTR) -unreachable unreachable.c -expect 2
597         $(LCLINTR) switch.c -expect 4
598
599 ###
600 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
601 ###
602
603 unused:
604         $(LCLINTRN) unused.c +checks -exportlocal -expect 5
605         $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 8
606
607 ###
608 ### 2001-06-10: Provided by Jim Zalenka
609 ###
610
611 ullint:
612         ${LCLINTRN} ullint.c -expect 5
613         ${LCLINTRN} ullint.c +charint +charintliteral -expect 2
614
615 void:
616         ${LCLINTRN} void.c -expect 2
617
618 ###
619 ### New since 2.5q:
620 ###
621
622 linked:
623         ${LCLINTR} linked.c -expect 4
624         ${LCLINTR} linked2.c -expect 3
625         ${LCLINTR} linked3.c -expect 5
626         ${LCLINTR} linked4.c -expect 6
627         ${LCLINTR} linked5.c -expect 4
628         ${LCLINTR} linked6.c -expect 4
629
630 freearray:
631         ${LCLINTR} freearray.c -expect 1
632
633 ###
634 ### Bugs fixed and new features since version 2.1b
635 ###
636
637 tests2.2:
638         setenv LCLINT '$(LCLINTRN)'; cd tests2.2 ; $(MAKE) -e
639
640 tests2.2a:
641         @cd tests2.2a ; \
642         $(LCLINTR) erik.c -expect 1 ; \
643         $(LCLINTR) boolcomp.c -expect 5 ; \
644         $(LCLINTR) boolenum.c ; \
645         $(LCLINTR) addassign.c -expect 1; \
646         $(LCLINTR) toralf.c -expect 5 ; \
647         $(LCLINTR) fred.c -booltype Bool ; \
648         $(LCLINTR) sizeof.c ; \
649         $(LCLINTR) arrayparam.c -expect 5 ; \
650         $(LCLINTR) notreached.c ; \
651         $(LCLINTR) duff.c -casebreak -firstcase ; \
652         $(LCLINTR) obviousloop.c -expect 4 ; \
653         $(LCLINTR) bitops.c +bitwisesigned -expect 11 ; \
654         $(LCLINTR) bitops.c -expect 5 ; \
655         $(LCLINTR) isalpha.c +strictlib -expect 1 ; \
656         $(LCLINTR) isalpha.c -expect 1 ; \
657         $(LCLINTR) dobb.c ; \
658         $(LCLINTR) popik.c -expect 11
659
660 tests2.4:
661         setenv LCLINT '$(LCLINTRN)'; cd tests2.4 ; $(MAKE) -e
662
663 sizeoftest:
664         @cd sizeoftest; \
665         $(LCLINTR) +arraybounds  +arrayboundsread sizeof.c
666
667 bufferTest:
668         @cd bufferTest; \
669         $(LCLINTR) +arraybounds  +arrayboundsread test4.c test6.c
670
671 simplebufferConstraintTests:
672         @cd simplebufferConstraintTests; \
673         $(LCLINTR) +arraybounds  +arrayboundsread m.c  sizeof.c  test3.c  test7.c
674
675 moreBufferTests:
676         @cd moreBufferTests; \
677         $(LCLINTR) +arraybounds  +arrayboundsread  unrecogCall.c strrchr.c initialization.c simplifyTest.c strncatNotReallyGood.c strncatReallyGood.c
678
679 maxset:
680         @cd maxset; \
681         $(LCLINTR) +arraybounds maxsetannotations.c; \
682         $(LCLINTR) +arraybounds maxsetnoannotations.c -expect 1
683
684 globalbufferannotation:
685         @cd globalbufferannotation; \
686         $(LCLINTR) +arraybounds  +arrayboundsread globalvariable.c
687
688 strchr:
689         @cd strchr; \
690         $(LCLINTR) +arraybounds +arrayboundsread  strchr.c -expect 2
691
692 for:
693         @cd for; \
694         $(LCLINTR)  +arraybounds  +arrayboundsread  for.c
695
696 tests2.5:
697         setenv LCLINT '$(LCLINTRN)'; cd tests2.5 ; $(MAKE) -e
698
699 metastate:
700         setenv LCLINT '$(LCLINTRN)'; cd metastate ; $(MAKE) -e
701
702 mergestate:
703         setenv LCLINT '$(LCLINTRN)'; cd mergestate ; $(MAKE) -e
704
705 tainted:
706         setenv LCLINT '$(LCLINTRN)'; cd tainted ; $(MAKE) -e
707
708 fileio:
709         setenv LCLINT '$(LCLINTRN)'; cd fileio ; $(MAKE) -e
710
711 warnuse:
712         setenv LCLINT '$(LCLINTRN)'; cd warnuse ; $(MAKE) -e
713
714 ensuresclauses:
715         setenv LCLINT '$(LCLINTRN)'; cd ensuresclauses ; $(MAKE) -e
716
717 ###
718 ### Integration Tests
719 ###
720
721 db1:
722         setenv LCLINT '$(LCLINTRN)'; cd db1; $(MAKE) -e test
723
724
725 ### evans 2000-12-22
726 ### 2 errors are no longer reported, since eref is immutable.
727 ### Need to clarify what it means for an object to be immutable;
728 ### there should be 2 types with different storage requirements.
729
730 db2:
731         setenv LCLINT '$(LCLINTRN)'; cd db2; $(MAKE) -e test
732
733 db3:
734         setenv LCLINT '$(LCLINTRN)'; cd db3; $(MAKE) -e test
735
736 clean:
737         -rm -f *~ #*# *.o *.lcs a.out 
738         -cd db1 ; $(MAKE) clean
739         -cd db2 ; $(MAKE) clean
740         -cd db3 ; $(MAKE) clean
741
742
743
744
This page took 0.111233 seconds and 3 git commands to generate.