1 ## This file currently uses GNU Make features; those should really be replaced
2 ## by configure-time handling.
4 AUTOMAKE_OPTIONS = 1.5 foreign
6 ## Use this to configure diff output
11 ## Set up the splint commands
13 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
19 ### This is horrible! Can't we make top_builddir absolute?
20 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
22 SPLINTPNEST = @$(SPLINTNEST) -nof
23 SPLINTP = @$(SPLINT) -nof
25 # Make sure .splintrc files are not used so test results do not
26 # depend on local settings.
27 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
28 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
30 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
31 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
34 ### rcfiles not included becuase file names will not match exactly
39 abstptr abstract alias alttypes ansireserved argorder \
40 args arraydims arrayinit blocks break cases cast charlit clauses commentchar compdestroy \
41 compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
42 decl divzero enum exports external fields flags forbody format freearray \
43 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
44 linked lintcomments list loopexec \
45 macros macrosef merge mergenull modifies modtest moduncon \
46 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
47 parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
48 returned sharing shifts slovaknames \
50 special stack staticarray strings \
52 structassign typequals typeof ud ulstypes union unioninit unreachable unsignedcompare \
53 unused ullint utypes void widestrings
54 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
56 SUBDIRTESTS = metastate mergestate tainted fileio \
57 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
58 maxset strchr for manual
60 ### warnuse doesn't work yet!
61 SUBDIRTESTS += tests2.2
62 SUBDIRTESTS += tests2.4
63 SUBDIRTESTS += tests2.5
64 SUBDIRTESTS += db1 db2 db3
66 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
75 -$(SPLINTP) -help version
81 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
84 -@$(SPLINTP) +boolint +boolint
85 -@$(SPLINTP) -help flags alpha
88 #commenting these out for the release because they will almost always fail
89 #since the default will only fit one system
90 #Don't want to panic the user...
91 # -@$(SPLINTP) -help flags all | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
92 # -@$(SPLINTP) -help flags full | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
93 # -@$(SPLINTP) -help flags manual | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
95 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
100 -rm -f *~ #*# *.o *.lcs a.out
101 -cd db1; $(MAKE) clean
102 -cd db2; $(MAKE) clean
103 -cd db3; $(MAKE) clean
105 ## All tests need splint to be built
107 $(SPLINTTESTS): $(SPLINT)
110 cd $(top_builddir)/src; $(MAKE)
112 ## This is a kludgey way of processing the output to make it match exactly
113 ## The last matcher is the most annoying, as it can differ (the first two are
114 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
115 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
117 ## The tests should really be re-done as shell-scripts or something... maybe
118 ## autotest could be used once it's finished.
120 CLEANOUTPUT = $(GREP) -v "Splint 3." | $(GREP) -v "$(SPLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:" | $(GREP) -v "^gmake.*\[[1-9]*\]:" | $(GREP) -v "^gmake -e" | $(GREP) -v "^make -e" |$(GREP) -v "config.status: creating test/Makefile" | $(GREP) -v "cd .. && " | $(GREP) -v "CONFIG_HEADERS=" | $(GREP) -v "CONFIG_FILES="
125 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
128 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
130 #drl temporally take this out.
133 # @echo "Saving old expects..."; \
134 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
135 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
136 # echo "Making $$TEST.expect..."; \
137 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
138 # cat $$TEST.expect; \
143 @for TEST in $(QUICKTESTS); do \
144 echo "Checking $$TEST..."; \
145 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
146 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
147 echo "*** FAIL ***"; \
152 @echo "Testing $(PACKAGE) $(VERSION)..."
154 @echo "Version Info:"
155 @$(SPLINTP) -help version
156 @$(SPLINTP) -help vars
160 @for TEST in $(SPLINTTESTS); do \
161 echo "Checking $$TEST..."; \
162 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
163 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
164 echo "*** FAIL ***"; \
167 ### Rules for tests start here
171 -$(SPLINTR) abstptr -expect 9
172 -$(SPLINTR) abstptr +voidabstract -expect 6
176 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
181 -$(SPLINTR) mut alias +globalias -expect 19
182 -$(SPLINTR) mut alias2 +globalias -expect 17
183 -$(SPLINTR) +lh alias3 -expect 14
184 -$(SPLINTR) +lh alias4 +boolint
185 -$(SPLINTR) alias4 -pred +retalias -expect 6
186 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
190 -$(SPLINTR) alttypes.c -expect 2
193 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
194 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
195 ### variable (could be a macro?)
196 ### Reports 3 additional errors for +checks; no longer suppresses name errors
197 ### in the presense of other errors.
202 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
203 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
204 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
205 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
209 -$(SPLINTR) argorder.c -expect 4
210 -$(SPLINTR) argorder2 -expect 5
211 -$(SPLINTR) argorder3.c -expect 8
212 -$(SPLINTR) argorder4 -expect 9
213 -$(SPLINTR) argorder4 -evalorder -expect 1
214 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
218 -$(SPLINTR) args -noeffect -expect 12
222 -$(SPLINTR) arraydims.c -varuse -expect 2
223 -$(SPLINTR) arraydims.c -initsize -varuse
227 -$(SPLINTR) arrayinit.c -expect 9
231 -$(SPLINTR) blocks.c -expect 4
232 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
233 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
234 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
235 -$(SPLINTR) blocks.c +allempty -expect 6
236 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
240 -$(SPLINTR) break.c -expect 4
241 -$(SPLINTR) break.c +deepbreak -expect 6
242 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
246 -$(SPLINTR) cases.c -expect 5
247 -$(SPLINTR) cases2.c -expect 2
248 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
249 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
253 -$(SPLINTR) cast -accessmodule -expect 20
254 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
256 ### Two addition errors detected with 2.5 with -numliteral.
260 -$(SPLINTR) +hints charlit.c -expect 4
261 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
262 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
266 -$(SPLINTR) clauses.c +memchecks -expect 4
267 -$(SPLINTR) clauses2.c +memchecks
268 -$(SPLINTR) clauses3.c +memchecks -expect 2
269 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
273 -$(SPLINTR) commentchar.c -expect 4
274 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
278 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
279 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
283 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
284 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
285 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
286 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
288 .PHONY: compoundliterals
290 ${SPLINTRN} compoundliterals.c
294 ${SPLINTRN} compoundstmt.c -expect 3
298 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
302 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
303 -$(SPLINTR) +quiet csyntax2.c -expect 2
304 -$(SPLINTR) +quiet csyntax3.c -expect 1
305 -$(SPLINTR) +quiet -incondefs csyntax4.c
306 -$(SPLINTR) +quiet csyntax5.c
307 -$(SPLINTR) +quiet csyntax6.c
308 -$(SPLINTR) +quiet csyntax7.c
309 -$(SPLINTR) +quiet csyntax8.c
310 -$(SPLINTR) +quiet csyntax9.c
311 -$(SPLINTR) +quiet csyntax10.c
312 -$(SPLINTR) +quiet csyntax11.c
313 -$(SPLINTR) +quiet csyntax12.c
314 -$(SPLINTR) +quiet csyntax13.c -expect 1
315 -$(SPLINTR) +quiet csyntax14.c
316 -$(SPLINTR) +quiet csyntax15.c
317 -$(SPLINTR) +quiet csyntax16.c -expect 2
318 -$(SPLINTR) +quiet csyntax17.c -expect 3
322 -$(SPLINTR) czechnames.c
323 -$(SPLINTR) +hints +czech czechnames.c -expect 2
324 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
325 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
327 .PHONY: czechoslovaknames
329 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
330 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
331 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
334 ### deadparam added 2001-05-27
339 ${SPLINTR} deadparam.c -expect 3
342 # Was expect 3 before 2.4. Earlier versions did not handle implicit
343 # function pointers correctly.
348 -$(SPLINTR) decl.c -expect 2
349 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
350 -$(SPLINTR) decl2 -expect 4
354 -$(SPLINTR) divzero.c -varuse -expect 0
358 -$(SPLINTR) enum -expect 16
359 -$(SPLINTR) enum -misscase -expect 14
363 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
364 -$(SPLINTR) exports.c +exportany -expect 3
365 -$(SPLINTR) exports.c
369 -$(SPLINTR) external.c +partial
370 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
371 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
372 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
373 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
377 -$(SPLINTR) fields.c +memchecks -expect 6
378 -$(SPLINTR) fields2.c +memchecks -expect 5
379 -$(SPLINTR) fields3.c +memchecks
383 -$(SPLINTR) flags.c -expect 8
384 -$(SPLINTR) +nocomments flags.c -expect 2
390 ${SPLINTR} forbody.c -expect 2
395 ${SPLINTR} format.c -expect 3
396 ${SPLINTR} format.c -formatconst
398 # two new errors (invalid lhs)
402 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
404 .PHONY: functionmacro
406 -$(SPLINTR) functionmacro.c -expect 2
410 -$(SPLINTR) glob -expect 4
411 -$(SPLINTR) glob -globuse -expect 3
412 -$(SPLINTR) glob +globunspec -expect 6
416 -$(SPLINTR) -modifies globals.c -expect 5
417 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
418 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
419 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
420 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
421 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
426 -$(SPLINTR) -accessmodule impabstract.c
427 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
428 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
431 ### evans 2001-12-30: Handle unrecognized pre-processor directives
432 ### (Reported by Pierluigi Sanzani)
436 ${SPLINTR} info.c -expect 4
438 ### evans 2001-10-14: Expected errors updated
441 -$(SPLINTR) init.c -expect 14
442 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
447 -$(SPLINTR) inparam.c -expect 2
448 -$(SPLINTR) +impouts inparam.c -expect 1
452 -$(SPLINTR) internal.c -expect 1
453 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
454 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
455 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
456 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
457 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
461 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
466 -$(SPLINTR) iter -expect 14 -lclexpect 1
467 -$(SPLINTR) iter2.c -expect 12
471 -$(SPLINTR) keep.c +memchecks -expect 6
474 ### 2001-05-22: 2 new errors found (fixed spec of signal)
475 ### 2001-05-30: 3 new errors found (formatconst)
479 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
480 -$(SPLINTR) libs.c -expect 22
481 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
482 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
486 -$(SPLINTR) lintcomments.c -expect 5
487 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
488 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
492 -$(SPLINTR) list.c -expect 3
495 ### 2002-01-01: Added test case for obvious loop execution.
500 -$(SPLINTR) loopexec.c -expect 1
501 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
506 -$(SPLINTR) macros -expect 17
507 -$(SPLINTR) macros.c +allmacros -expect 34
508 -$(SPLINTR) macros.c +fcnmacros -expect 31
513 -$(SPLINTR) macrosef -expect 4
514 -$(SPLINTR) macrosef.c +allmacros -expect 3
515 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
519 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
523 -$(SPLINTRN) mergenull.c
527 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
531 -$(SPLINTR) modtest -expect 10
532 -$(SPLINTR) modtest +modunspec -expect 13
533 -$(SPLINTR) modtest +mustmod -expect 14
537 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
538 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
540 .PHONY: mongoincludes
542 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
543 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
544 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
545 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
546 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
550 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
554 ${SPLINTP} noeffect.c +allmacros +checks -expect 3
557 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
558 ### checking detects one new error
563 -$(SPLINTR) null1.c -expect 15
564 -$(SPLINTR) null1.c -null -mustdefine -expect 4
565 -$(SPLINTR) null2.c -expect 11
566 -$(SPLINTR) null3.c -expect 15
567 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
568 -$(SPLINTR) null4.c -expect 1
569 -$(SPLINTR) null5.c -expect 4
570 -$(SPLINTR) null6 -expect 4
571 -$(SPLINTR) +quiet null6.lcl -dump null6
572 -$(SPLINTR) null6.c -load null6 -expect 4
574 ### Added for 3.0 (bugs reported by Kevin Broady)
578 -$(SPLINTR) nullret.c -expect 2
579 -$(SPLINTR) -nullret nullret.c -expect 1
583 -$(SPLINTR) nullassign.c -expect 2
584 -$(SPLINTR) -nullassign nullassign.c -expect 1
588 # Before 2.4, expected one more because error was reported both as
589 # dependent and observer.
594 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
595 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
596 -$(SPLINTR) observer.c -expect 7
600 -$(SPLINTR) oldstyle oldstyle2.c -expect 5
604 -$(SPLINTR) outglob -expect 10
608 -$(SPLINTR) outparam -expect 12
610 ### evans 2001-08-26: postnotnull new
614 ${SPLINTR} postnotnull.c -expect 1
616 ### evans 2002-02-09: added parentype.c
619 ${SPLINTR} parentype.c
622 # Four new +fcnuse errors for -strict (evans 2001-07-22)
627 -$(SPLINTR) +hints preds.c -expect 6
628 -$(SPLINTRN) +hints preds.c -weak -expect 1
629 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
633 -$(SPLINTR) prefixes.c +partial
634 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
635 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
636 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
637 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
638 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
639 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
640 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
641 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
642 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
643 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
644 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
645 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
646 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
647 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
648 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
652 -$(SPLINTR) printflike.c -expect 6
653 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
657 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
658 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
659 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
660 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
661 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
665 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
669 -$(SPLINTR) refcounts.c -expect 7
673 -$(SPLINTR) release.c +memchecks -expect 1
677 -$(SPLINTR) +lh repexpose +memchecks -expect 12
678 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
679 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
681 ### returned added 2001-05-27
682 ### (Bug discovered checking splint sources.)
686 ${SPLINTR} returned.c -expect 1
690 -$(SPLINTR) sharing1.c -expect 21
691 -$(SPLINTR) sharing3.c -expect 3
692 -$(SPLINTR) sharing4.c -expect 13
693 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
694 -$(SPLINTR) sharing5.c -expect 6
698 -$(SPLINTR) shifts.c -expect 4
699 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
700 -$(SPLINTR) shifts.c -shiftnegative -expect 1
704 -$(SPLINTR) +hints slovaknames.c -expect 1
705 -$(SPLINTR) +hints slovaknames.c +accessslovak
706 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
707 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
708 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
712 -$(SPLINTR) specclauses.c -expect 6
713 -$(SPLINTR) specclauses2.c -expect 8
714 -$(SPLINTR) specclauses3.c -expect 6
715 -$(SPLINTR) specclauses4.c -expect 3
716 -$(SPLINTR) specclauses5.c -expect 3
720 -$(SPLINTR) specclauses.c -expect 6
724 -$(SPLINTR) specclauses2.c -expect 8
728 -$(SPLINTR) specclauses3.c -expect 6
732 -$(SPLINTR) specclauses4.c -expect 3
736 -$(SPLINTR) specclauses5.c -expect 3
740 -$(SPLINTR) special -expect 20
741 -$(SPLINTR) special -relaxquals -expect 22
745 -$(SPLINTR) stack.c -expect 5
746 -$(SPLINTR) stack.c -stackref
750 -$(SPLINTR) staticarray.c -expect 3
752 .PHONY: stringliteral
754 -$(SPLINTR) stringliteral.c +stringliteralnoroomfinalnull -expect 4
755 -$(SPLINTR) stringliteral.c -expect 3
759 -$(SPLINTR) strings.c -expect 3
760 -$(SPLINTR) -readonlystrings -expect 1 strings.c
761 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
765 -$(SPLINTR) structassign.c -expect 4
769 -$(SPLINTR) typeof.c -expect 2
773 -$(SPLINTR) typequals.c tq.lcl -expect 5
774 -$(SPLINTR) typequals.c -expect 2
778 -$(SPLINTR) ud.c -expect 9
779 -$(SPLINTR) ud2 -specundef -expect 3
783 -$(SPLINTR) ulstypes.c -expect 8
784 -$(SPLINTR) ulstypes.c +ignorequals
785 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
787 # 3 more detected with version 2.5 (change in -numliteral setting)
791 -$(SPLINTR) +memchecks union.c -expect 8
794 ### Added 2001-12-30: fixed union initializer checking in response to
795 ### bug report from Jim Zelenka.
800 -$(SPLINTR) unioninit.c -expect 2
804 -$(SPLINTR) unreachable.c -expect 5
805 -$(SPLINTR) -unreachable unreachable.c -expect 2
806 -$(SPLINTR) switch.c -expect 4
808 .PHONY: unsignedcompare
810 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
814 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
819 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
820 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
823 ### 2001-06-10: Provided by Jim Zalenka
828 ${SPLINTRN} ullint.c -expect 5
829 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
832 ### 2001-12-30: Poor warnings reported by Peter Deutsch
837 ${SPLINTRN} utypes.c -expect 6
843 ${SPLINTRN} void.c -expect 2
846 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
851 ${SPLINTRN} widestrings.c -expect 2
859 ${SPLINTR} linked.c -expect 4
860 ${SPLINTR} linked2.c -expect 3
861 ${SPLINTR} linked3.c -expect 5
862 ${SPLINTR} linked4.c -expect 6
863 ${SPLINTR} linked5.c -expect 4
864 ${SPLINTR} linked6.c -expect 4
868 ${SPLINTR} freearray.c -expect 1
872 -$(SPLINTR) +bounds sizeof.c -expect 1
876 -$(SPLINTR) +bounds buffertest1.c -expect 5
881 ## db2: 2 errors are no longer reported, since eref is immutable.
882 ## Need to clarify what it means for an object to be immutable;
883 ## there should be 2 types with different storage requirements.
885 .PHONY: $(SUBDIRTESTS)
887 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
889 #drl 11/29/2001 This is a very ugly hack to get make dist to work
890 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
891 ./abstptr.lcl ./abstptr.lcs \
892 ./alias.lcl ./alias.lcs \
893 ./alias2.lcl ./alias2.lcs \
964 ./repexpose.lh.expect \
981 ./globalbufferannotation/.splintrc \
984 ./tests2.2/bool.lcl \
985 ./tests2.2/bool.lcs \
986 ./tests2.2/libraries.lcd \
987 ./tests2.2/obsolete.lcd \
988 ./tests2.2/oldversion.lcd \
989 ./tests2.4/subdir/main.lcl \
990 ./tests2.4/subdir/main.lcs \
991 ./tests2.5/newlint.lcd \
992 ./warnuse/warnuse.lcd \
1032 ./compoundliterals.c ./compoundliterals.expect \
1033 ./compoundstmt.c ./compoundstmt.expect \
1054 ./czechoslovaknames.c \
1170 ./unsignedcompare.c \
1173 ./conditions/miroslaw.c \
1174 ./conditions/releases.c \
1176 ./fileio/filebranch.c \
1179 ./globalbufferannotation/globalvariable.c \
1180 ./maxset/maxsetannotations.c \
1181 ./maxset/maxsetnoannotations.c \
1182 ./mergestate/taintednm.c \
1183 ./metastate/file.c \
1184 ./metastate/file1.c \
1185 ./metastate/file2.c \
1186 ./metastate/file3.c \
1187 ./metastate/file4.c \
1188 ./metastate/file5.c \
1189 ./metastate/file6.c \
1190 ./metastate/file7.c \
1191 ./metastate/filebad.c \
1192 ./metastate/global.c \
1193 ./metastate/nullbranch.c \
1194 ./metastate/nullbranch2.c \
1195 ./metastate/nullret.c \
1197 ./metastate/sockets.c \
1198 ./metastate/sockets2.c \
1199 ./metastate/struct.c \
1200 ./metastate/test.c \
1201 ./metastate/voidptr.c \
1202 ./moreBufferTests/initialization.c \
1203 ./moreBufferTests/simplifyTest.c \
1204 ./moreBufferTests/strncatNotReallyGood.c \
1205 ./moreBufferTests/strncatReallyGood.c \
1206 ./moreBufferTests/strrchr.c \
1207 ./moreBufferTests/unrecogCall.c \
1208 ./nullterminatedtest/buggy1.c \
1209 ./nullterminatedtest/buggy_support1.c \
1210 ./nullterminatedtest/buggy_support_fmakeword.c \
1211 ./nullterminatedtest/test1.c \
1212 ./nullterminatedtest/test3.c \
1213 ./simplebufferConstraintTests/m.c \
1214 ./simplebufferConstraintTests/sizeof.c \
1215 ./simplebufferConstraintTests/test3.c \
1216 ./simplebufferConstraintTests/test7.c \
1217 ./sizeoftest/sizeof.c \
1219 ./suppressfile/test.c \
1220 ./tainted/sprintf.c \
1222 ./tainted/tainted.c \
1223 ./tainted/tainted2.c \
1224 ./tainted/tainted3.c \
1225 ./tainted/tainted4.c \
1226 ./tainted/tainted5.c \
1227 ./tainted/taintedimplicit.c \
1228 ./tainted/taintedmerge.c \
1229 ./tainted/taintedx.c \
1231 ./tclauses/globals.c \
1233 ./tclauses/modifies.c \
1234 ./tclauses/struct.c \
1235 ./tclauses/undef.c \
1236 ./tests2.2/arbints.c \
1237 ./tests2.2/arrayfcn.c \
1238 ./tests2.2/booldef.c \
1239 ./tests2.2/boolenum.c \
1240 ./tests2.2/boolops.c \
1241 ./tests2.2/break.c \
1242 ./tests2.2/bstring.c \
1244 ./tests2.2/enumbool.c \
1245 ./tests2.2/extension.c \
1246 ./tests2.2/libraries.c \
1247 ./tests2.2/modarray.c \
1248 ./tests2.2/nestext.c \
1249 ./tests2.2/offsetof.c \
1250 ./tests2.2/posix.c \
1251 ./tests2.2/realloc.c \
1253 ./tests2.2/sizeofarray.c \
1254 ./tests2.2/struct.c \
1255 ./tests2.2a/addassign.c \
1256 ./tests2.2a/arrayparam.c \
1257 ./tests2.2a/bitops.c \
1258 ./tests2.2a/boolcomp.c \
1259 ./tests2.2a/boolenum.c \
1260 ./tests2.2a/dobb.c \
1261 ./tests2.2a/duff.c \
1262 ./tests2.2a/erik.c \
1263 ./tests2.2a/floatdouble.c \
1264 ./tests2.2a/florian.c \
1265 ./tests2.2a/fred.c \
1266 ./tests2.2a/isalpha.c \
1267 ./tests2.2a/notreached.c \
1268 ./tests2.2a/obviousloop.c \
1269 ./tests2.2a/popik.c \
1270 ./tests2.2a/sizeof.c \
1271 ./tests2.2a/toralf.c \
1272 ./tests2.4/subdir/main.c \
1273 ./tests2.4/alignof.c \
1274 ./tests2.4/array.c \
1275 ./tests2.4/bitfields.c \
1280 ./tests2.4/cpptest.c \
1281 ./tests2.4/driverstub.c \
1282 ./tests2.4/duffs.c \
1283 ./tests2.4/emptycase.c \
1284 ./tests2.4/enumtest.c \
1285 ./tests2.4/error.c \
1287 ./tests2.4/flagequal.c \
1288 ./tests2.4/forward.c \
1290 ./tests2.4/hexconstants.c \
1291 ./tests2.4/innercomment.c \
1292 ./tests2.4/komazi.c \
1293 ./tests2.4/longlong.c \
1295 ./tests2.4/nothing.c \
1296 ./tests2.4/offsetof.c \
1297 ./tests2.4/print.c \
1299 ./tests2.4/syncomment.c \
1300 ./tests2.4/syslog.c \
1301 ./tests2.4/test0.c \
1302 ./tests2.4/test1.c \
1303 ./tests2.4/test2.c \
1304 ./tests2.4/timecard.c \
1305 ./tests2.4/toothman.c \
1306 ./tests2.4/ulrich.c \
1307 ./tests2.5/badcomment.c \
1308 ./tests2.5/boolbad.c \
1309 ./tests2.5/boolt.c \
1310 ./tests2.5/booltest.c \
1311 ./tests2.5/dummyfile.c \
1313 ./tests2.5/immutable.c \
1314 ./tests2.5/impabsmodule.c \
1315 ./tests2.5/literals.c \
1316 ./tests2.5/quals.c \
1318 ./tests2.5/testalt.c \
1319 ./tests2.5/testimmutable.c \
1320 ./tests2.5/uconstants.c \
1322 ./warnuse/warnflags.c \
1323 ./warnuse/warngets.c \
1324 ./warnuse/warnuse.c \
1325 ./moreBufferTests2/unknownsize.c \
1326 ./moreBufferTests2/arrayConstExpr.c \
1331 ansireserved.expect \
1336 branchstate.expect \
1343 commentchar.expect \
1344 compdestroy.expect \
1346 controldepth.expect \
1349 czechoslovaknames.expect \
1365 funcpointer.expect \
1367 globalbufferannotation.expect \
1370 impabstract.expect \
1378 lintcomments.expect \
1380 longconstants.expect \
1390 mongoincludes.expect \
1391 moreBufferTests.expect \
1392 moreBufferTests2.expect \
1397 nullterminatedtest.expect \
1402 postnotnull.expect \
1410 repexpose.lh.expect \
1413 simplebufferConstraintTests.expect \
1416 slovaknames.expect \
1417 specclauses.expect \
1420 staticarray.expect \
1423 structassign.expect \
1435 unreachable.expect \
1436 unsignedcompare.expect \
1475 ./metastate/global.h \
1476 ./suppressfile/test.h \
1477 ./tests2.2/mbool.h \
1478 ./tests2.4/forward.h \
1480 ./tests2.4/timecard.h \
1482 ./tests2.5/bimbim.h \
1483 ./tests2.5/immutable.h \
1484 ./tests2.5/impabsmodule.h \
1485 ./tests2.5/socket.h \
1486 ./Makefile-test.os2 \
1490 ./conditions/Makefile \
1493 ./globalbufferannotation/Makefile \
1495 ./mergestate/Makefile \
1496 ./metastate/Makefile \
1497 ./moreBufferTests/Makefile \
1498 ./simplebufferConstraintTests/Makefile \
1500 ./tainted/Makefile \
1502 ./tests2.2/Makefile \
1503 ./tests2.2/Makefile-tests2.2.os2 \
1504 ./tests2.4/Makefile \
1505 ./tests2.4/Makefile-tests2.4.os2 \
1506 ./tests2.5/Makefile \
1507 ./warnuse/Makefile \
1510 ./moreBufferTests2/Makefile \
1511 ./fileio/eof.mts ./fileio/file.mts ./fileio/filerw.mts ./mergestate/tainted.mts ./mergestate/taintednm.mts ./metastate/file.mts ./metastate/nullterminated.mts ./metastate/sockets.mts ./tainted/tainted-bad.mts ./tainted/tainted.mts ./fileio/file.xh ./fileio/filerw.xh ./mergestate/tainted.xh ./mergestate/taintednm.xh ./metastate/file.xh ./tainted/tainted.xh \
1512 db2.old-expect union.pp warnuse.old-expect \
1513 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants loopexec.expect mergenull.expect shifts.expect \
1514 unioninit.expect unioninit.c utypes.c \
1515 utypes.expect widestrings.expect widestrings.c \
1516 functionmacro.expect functionmacro.c info.c info.expect \
1517 loopexec.c mergenull.c shifts.c \
1518 manual.expect ./manual/Makefile \
1519 ./manual/annotglobs.c ./manual/bool.c ./manual/bool.h ./manual/clauses.c ./manual/employee.h ./manual/exposure.c ./manual/globals.c ./manual/ignore.c ./manual/implicit.c ./manual/intSet.h ./manual/list.c ./manual/loop.c ./manual/macros.c ./manual/modify.c ./manual/mstring.c ./manual/mstring.h ./manual/mstringnn.c ./manual/multiError.c ./manual/names.c ./manual/noeffect.c ./manual/null.c ./manual/only.c ./manual/order.c ./manual/palindrome.c ./manual/palindrome.h ./manual/refs.c ./manual/returned.c ./manual/rgb.c ./manual/rstring.c ./manual/rstring.h ./manual/sample.c ./manual/setChar.c ./manual/setname.c ./manual/setname.h ./manual/special.c ./manual/stack.c ./manual/sumsquares.c ./manual/switch.c ./manual/testpal.c ./manual/types.c ./manual/unique.c ./manual/usedef.c ./manual/bounds.c \
1520 arraydims.expect arraydims.c \
1521 moreBufferTests2/fixedArrayType.c oldstyle2.c \
1522 divzero.expect parentype.expect \
1523 divzero.c parentype.c \
1524 stringliteral.expect stringliteral.c