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