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 #drl 3/27/2002 get the test suit to print a warning when splint is built under /usr/
14 ## Set up the splint commands
16 #SPLINT = valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no $(top_builddir)/src/splint$(EXEEXT)
17 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
19 ### These are shell-specific
20 ## unexport LARCH_PATH
21 ## unexport LCLIMPORTDIR
23 ### This is horrible! Can't we make top_builddir absolute?
24 #SPLINTNEST = valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no ../$(top_builddir)/src/splint$(EXEEXT)
25 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
26 SPLINTPNEST = @$(SPLINTNEST) -nof
27 SPLINTP = @$(SPLINT) -nof
29 # Make sure .splintrc files are not used so test results do not
30 # depend on local settings.
31 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
32 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
34 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
35 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
38 ### rcfiles not included becuase file names will not match exactly
43 abstptr abstract alias alttypes ansireserved argorder \
44 args arraydims arrayinit arraylit blocks break cases cast chararraylit charlit clauses commentchar compdestroy \
45 compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
46 decl divzero enum enumtag exports external fields flags forbody format freearray \
47 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
48 linked lintcomments list loopexec looptesteffect \
49 macros macrosef merge mergenull modifies modtest moduncon \
50 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
51 parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
52 returned sharing shifts sizesigns slovaknames \
54 special stack staticarray strings \
56 structassign typequals typeof ud ulstypes union unioninit \
57 unnamedsu unreachable unsignedcompare \
58 unused ullint utypes void widestrings
59 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
61 SUBDIRTESTS = metastate mergestate tainted fileio \
62 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
63 maxset strchr sizeoftest for manual
65 ### warnuse doesn't work yet!
66 SUBDIRTESTS += tests2.2
67 SUBDIRTESTS += tests2.4
68 SUBDIRTESTS += tests2.5
69 SUBDIRTESTS += db1 db2 db3
71 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
80 -$(SPLINT) -help version
86 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
89 -@$(SPLINTP) +boolint +boolint
90 -@$(SPLINT) -help flags alpha
93 #commenting these out for the release because they will almost always fail
94 #since the default will only fit one system
95 #Don't want to panic the user...
96 # -@$(SPLINT) -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> "
97 # -@$(SPLINT) -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> "
98 # -@$(SPLINT) -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> "
100 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
105 -rm -f *~ #*# *.o *.lcs a.out
108 -cd db1; $(MAKE) clean
109 -cd db2; $(MAKE) clean
110 -cd db3; $(MAKE) clean
112 ## All tests need splint to be built
114 $(SPLINTTESTS): $(SPLINT)
117 cd $(top_builddir)/src; $(MAKE)
119 ## This is a kludgey way of processing the output to make it match exactly
120 ## The last matcher is the most annoying, as it can differ (the first two are
121 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
122 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
124 ## The tests should really be re-done as shell-scripts or something... maybe
125 ## autotest could be used once it's finished.
127 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="
132 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
135 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
137 #drl temporally take this out.
140 # @echo "Saving old expects..."; \
141 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
142 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
143 # echo "Making $$TEST.expect..."; \
144 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
145 # cat $$TEST.expect; \
148 CheckSystemDir = (pwd | grep -q "/usr" && echo "Warning tests which not run correctly when splint is built in /usr or a subdirectory under /usr. Build splint in a different directory or disregard test failures." )
153 @for TEST in $(QUICKTESTS); do \
154 echo "Checking $$TEST..."; \
155 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
156 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
157 echo "*** FAIL ***"; \
162 @echo "Testing $(PACKAGE) $(VERSION)..."
164 @echo "Version Info:"
165 @$(SPLINT) -help version
166 @$(SPLINT) -help vars
170 @for TEST in $(SPLINTTESTS); do \
171 echo "Checking $$TEST..."; \
172 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
173 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
174 echo "*** FAIL ***"; \
177 ### Rules for tests start here
181 -$(SPLINTR) abstptr -expect 9
182 -$(SPLINTR) abstptr +voidabstract -expect 6
186 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
191 -$(SPLINTR) mut alias +globalias -expect 19
192 -$(SPLINTR) mut alias2 +globalias -expect 17
193 -$(SPLINTR) +lh alias3 -expect 14
194 -$(SPLINTR) +lh alias4 +boolint
195 -$(SPLINTR) alias4 -pred +retalias -expect 6
196 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
200 -$(SPLINTR) alttypes.c -expect 2
203 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
204 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
205 ### variable (could be a macro?)
206 ### Reports 3 additional errors for +checks; no longer suppresses name errors
207 ### in the presense of other errors.
212 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
213 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
214 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
215 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
219 -$(SPLINTR) argorder.c -expect 4
220 -$(SPLINTR) argorder2 -expect 5
221 -$(SPLINTR) argorder3.c -expect 8
222 -$(SPLINTR) argorder4 -expect 9
223 -$(SPLINTR) argorder4 -evalorder -expect 1
224 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
228 -$(SPLINTR) args -noeffect -expect 12
232 -$(SPLINTR) arraydims.c -varuse -expect 2
233 -$(SPLINTR) arraydims.c -initsize -varuse
237 -$(SPLINTR) arrayinit.c -expect 9
241 -$(SPLINTR) arraylit.c -expect 2
242 -$(SPLINTR) arraylit.c +stringliteralsmaller -expect 4
246 -$(SPLINTR) blocks.c -expect 4
247 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
248 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
249 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
250 -$(SPLINTR) blocks.c +allempty -expect 6
251 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
255 -$(SPLINTR) break.c -expect 4
256 -$(SPLINTR) break.c +deepbreak -expect 6
257 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
261 -$(SPLINTR) cases.c -expect 5
262 -$(SPLINTR) cases2.c -expect 2
263 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
264 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
268 -$(SPLINTR) cast -accessmodule -expect 20
269 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
273 -$(SPLINTR) chararraylit.c -expect 2
275 ### Two addition errors detected with 2.5 with -numliteral.
279 -$(SPLINTR) +hints charlit.c -expect 4
280 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
281 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
285 -$(SPLINTR) clauses.c +memchecks -expect 4
286 -$(SPLINTR) clauses2.c +memchecks
287 -$(SPLINTR) clauses3.c +memchecks -expect 2
288 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
292 -$(SPLINTR) commentchar.c -expect 4
293 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
297 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
298 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
302 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
303 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
304 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
305 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
307 .PHONY: compoundliterals
309 ${SPLINTRN} compoundliterals.c
313 ${SPLINTRN} compoundstmt.c -expect 3
317 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
321 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
322 -$(SPLINTR) +quiet csyntax2.c -expect 2
323 -$(SPLINTR) +quiet csyntax3.c -expect 1
324 -$(SPLINTR) +quiet -incondefs csyntax4.c
325 -$(SPLINTR) +quiet csyntax5.c
326 -$(SPLINTR) +quiet csyntax6.c
327 -$(SPLINTR) +quiet csyntax7.c
328 -$(SPLINTR) +quiet csyntax8.c
329 -$(SPLINTR) +quiet csyntax9.c
330 -$(SPLINTR) +quiet csyntax10.c
331 -$(SPLINTR) +quiet csyntax11.c
332 -$(SPLINTR) +quiet csyntax12.c
333 -$(SPLINTR) +quiet csyntax13.c -expect 1
334 -$(SPLINTR) +quiet csyntax14.c
335 -$(SPLINTR) +quiet csyntax15.c
336 -$(SPLINTR) +quiet csyntax16.c -expect 2
337 -$(SPLINTR) +quiet csyntax17.c -expect 3
341 -$(SPLINTR) czechnames.c
342 -$(SPLINTR) +hints +czech czechnames.c -expect 2
343 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
344 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
346 .PHONY: czechoslovaknames
348 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
349 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
350 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
353 ### deadparam added 2001-05-27
358 ${SPLINTR} deadparam.c -expect 3
361 # Was expect 3 before 2.4. Earlier versions did not handle implicit
362 # function pointers correctly.
367 -$(SPLINTR) decl.c -expect 2
368 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
369 -$(SPLINTR) decl2 -expect 4
373 -$(SPLINTR) divzero.c -varuse -expect 0
377 -$(SPLINTR) enum -expect 16
378 -$(SPLINTR) enum -misscase -expect 14
382 -$(SPLINTR) enumtag.c -expect 2
386 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
387 -$(SPLINTR) exports.c +exportany -expect 3
388 -$(SPLINTR) exports.c
392 -$(SPLINTR) external.c +partial
393 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
394 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
395 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
396 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
400 -$(SPLINTR) fields.c +memchecks -expect 6
401 -$(SPLINTR) fields2.c +memchecks -expect 5
402 -$(SPLINTR) fields3.c +memchecks
406 -$(SPLINTR) flags.c -expect 8
407 -$(SPLINTR) +nocomments flags.c -expect 2
413 ${SPLINTR} forbody.c -expect 2
418 ${SPLINTR} format.c -expect 3
419 ${SPLINTR} format.c -formatconst
421 # two new errors (invalid lhs)
425 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
427 .PHONY: functionmacro
429 -$(SPLINTR) functionmacro.c -expect 2
433 -$(SPLINTR) glob -expect 4
434 -$(SPLINTR) glob -globuse -expect 3
435 -$(SPLINTR) glob +globunspec -expect 6
439 -$(SPLINTR) -modifies globals.c -expect 5
440 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
441 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
442 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
443 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
444 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
449 -$(SPLINTR) -accessmodule impabstract.c
450 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
451 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
454 ### evans 2001-12-30: Handle unrecognized pre-processor directives
455 ### (Reported by Pierluigi Sanzani)
459 ${SPLINTR} info.c -expect 4
461 ### evans 2001-10-14: Expected errors updated
464 -$(SPLINTR) init.c -expect 14
465 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
470 -$(SPLINTR) inparam.c -expect 2
471 -$(SPLINTR) +impouts inparam.c -expect 1
475 -$(SPLINTR) internal.c -expect 1
476 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
477 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
478 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
479 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
480 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
484 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
489 -$(SPLINTR) iter -expect 14 -lclexpect 1
490 -$(SPLINTR) iter2.c -expect 12
494 -$(SPLINTR) keep.c +memchecks -expect 6
497 ### 2001-05-22: 2 new errors found (fixed spec of signal)
498 ### 2001-05-30: 3 new errors found (formatconst)
499 ### 2002-07-08: 2 new errors found (getc modifies errno)
503 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
504 -$(SPLINTR) libs.c -expect 22
505 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
506 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 44
510 -$(SPLINTR) lintcomments.c -expect 5
511 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
512 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
516 -$(SPLINTR) list.c -expect 3
519 ### 2002-01-01: Added test case for obvious loop execution.
524 -$(SPLINTR) loopexec.c -expect 1
525 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
527 .PHONY: looptesteffect
529 -$(SPLINTR) looptesteffect.c -expect 1
533 -$(SPLINTR) macros -expect 17
534 -$(SPLINTR) macros.c +allmacros -expect 34
535 -$(SPLINTR) macros.c +fcnmacros -expect 31
540 -$(SPLINTR) macrosef -expect 4
541 -$(SPLINTR) macrosef.c +allmacros -expect 3
542 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
546 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
550 -$(SPLINTRN) mergenull.c
554 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
558 -$(SPLINTR) modtest -expect 10
559 -$(SPLINTR) modtest +modunspec -expect 13
560 -$(SPLINTR) modtest +mustmod -expect 14
564 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
565 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
567 .PHONY: mongoincludes
569 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
570 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
571 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
572 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
573 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
577 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
581 ${SPLINTP} noeffect.c +allmacros +checks -expect 3
584 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
585 ### checking detects one new error
590 -$(SPLINTR) null1.c -expect 15
591 -$(SPLINTR) null1.c -null -mustdefine -expect 4
592 -$(SPLINTR) null2.c -expect 11
593 -$(SPLINTR) null3.c -expect 15
594 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
595 -$(SPLINTR) null4.c -expect 1
596 -$(SPLINTR) null5.c -expect 4
597 -$(SPLINTR) null6 -expect 4
598 -$(SPLINTR) +quiet null6.lcl -dump null6
599 -$(SPLINTR) null6.c -load null6 -expect 4
601 ### Added for 3.0 (bugs reported by Kevin Broady)
605 -$(SPLINTR) nullret.c -expect 2
606 -$(SPLINTR) -nullret nullret.c -expect 1
610 -$(SPLINTR) nullassign.c -expect 2
611 -$(SPLINTR) -nullassign nullassign.c -expect 1
615 # Before 2.4, expected one more because error was reported both as
616 # dependent and observer.
621 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
622 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
623 -$(SPLINTR) observer.c -expect 7
627 -$(SPLINTR) oldstyle oldstyle2.c -expect 5
631 -$(SPLINTR) outglob -expect 10
635 -$(SPLINTR) outparam -expect 12
637 ### evans 2001-08-26: postnotnull new
641 ${SPLINTR} postnotnull.c -expect 1
643 ### evans 2002-02-09: added parentype.c
646 ${SPLINTR} parentype.c
649 # Four new +fcnuse errors for -strict (evans 2001-07-22)
654 -$(SPLINTR) +hints preds.c -expect 6
655 -$(SPLINTRN) +hints preds.c -weak -expect 1
656 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
660 -$(SPLINTR) prefixes.c +partial
661 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
662 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
663 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
664 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
665 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
666 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
667 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
668 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
669 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
670 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
671 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
672 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
673 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
674 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
675 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
679 -$(SPLINTR) printflike.c -expect 6
680 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
684 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
685 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
686 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
687 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
688 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
692 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
696 -$(SPLINTR) refcounts.c -expect 7
700 -$(SPLINTR) release.c +memchecks -expect 1
704 -$(SPLINTR) +lh repexpose +memchecks -expect 12
705 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
706 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
708 ### returned added 2001-05-27
709 ### (Bug discovered checking splint sources.)
713 ${SPLINTR} returned.c -expect 1
717 -$(SPLINTR) sharing1.c -expect 21
718 -$(SPLINTR) sharing3.c -expect 3
719 -$(SPLINTR) sharing4.c -expect 13
720 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
721 -$(SPLINTR) sharing5.c -expect 6
725 -$(SPLINTR) shifts.c -expect 4
726 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
727 -$(SPLINTR) shifts.c -shiftnegative -expect 1
729 ### evans - added 2002-08-17: check warnings with arbitrary integral types
731 -$(SPLINTR) +strict sizesigns.c
732 -$(SPLINTR) +strict +ignoresigns sizesigns.c
733 -$(SPLINTR) +strict +matcharbitraryintegral sizesigns.c
734 -$(SPLINTR) +strict +matcharbitraryintegral +ignoresignz sizesigns.c
738 -$(SPLINTR) +hints slovaknames.c -expect 1
739 -$(SPLINTR) +hints slovaknames.c +accessslovak
740 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
741 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
742 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
745 ## evans 2002-07-22: 1 less warning for specclauses3.c because of NULL result
750 -$(SPLINTR) specclauses.c -expect 6
751 -$(SPLINTR) specclauses2.c -expect 8
752 -$(SPLINTR) specclauses3.c -expect 5
753 -$(SPLINTR) specclauses4.c -expect 3
754 -$(SPLINTR) specclauses5.c -expect 3
758 -$(SPLINTR) specclauses.c -expect 6
762 -$(SPLINTR) specclauses2.c -expect 8
766 -$(SPLINTR) specclauses3.c -expect 6
770 -$(SPLINTR) specclauses4.c -expect 3
774 -$(SPLINTR) specclauses5.c -expect 3
778 -$(SPLINTR) special -expect 20
779 -$(SPLINTR) special -relaxquals -expect 22
783 -$(SPLINTR) stack.c -expect 5
784 -$(SPLINTR) stack.c -stackref
788 -$(SPLINTR) staticarray.c -expect 3
791 ### evans 2002-03-16: Default setting of stringliteralnoroomfinalnull changed
794 .PHONY: stringliteral
796 -$(SPLINTR) stringliteral.c -stringliteralnoroomfinalnull -expect 3
797 -$(SPLINTR) stringliteral.c -expect 4
801 -$(SPLINTR) strings.c -expect 3
802 -$(SPLINTR) -readonlystrings -expect 1 strings.c
803 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
807 -$(SPLINTR) structassign.c -expect 4
811 -$(SPLINTR) typeof.c -expect 2
815 -$(SPLINTR) typequals.c tq.lcl -expect 5
816 -$(SPLINTR) typequals.c -expect 2
820 -$(SPLINTR) ud.c -expect 9
821 -$(SPLINTR) ud2 -specundef -expect 3
825 -$(SPLINTR) ulstypes.c -expect 8
826 -$(SPLINTR) ulstypes.c +ignorequals
827 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
829 # 3 more detected with version 2.5 (change in -numliteral setting)
833 -$(SPLINTR) +memchecks union.c -expect 8
836 ### Added 2001-12-30: fixed union initializer checking in response to
837 ### bug report from Jim Zelenka.
842 -$(SPLINTR) unioninit.c -expect 2
846 -$(SPLINTR) unnamedsu.c -expect 0
850 -$(SPLINTR) unreachable.c -expect 5
851 -$(SPLINTR) -unreachable unreachable.c -expect 2
852 -$(SPLINTR) switch.c -expect 4
854 .PHONY: unsignedcompare
856 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
860 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
865 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
866 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
869 ### 2001-06-10: Provided by Jim Zalenka
874 ${SPLINTRN} ullint.c -expect 5
875 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
878 ### 2001-12-30: Poor warnings reported by Peter Deutsch
880 ### 2002-07-03: removed warnings for datatype/macro definitions
885 ${SPLINTRN} utypes.c -expect 2
891 ${SPLINTRN} void.c -expect 2
894 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
899 ${SPLINTRN} widestrings.c -expect 2
907 ${SPLINTR} linked.c -expect 4
908 ${SPLINTR} linked2.c -expect 3
909 ${SPLINTR} linked3.c -expect 5
910 ${SPLINTR} linked4.c -expect 6
911 ${SPLINTR} linked5.c -expect 4
912 ${SPLINTR} linked6.c -expect 4
916 ${SPLINTR} freearray.c -expect 1
920 -$(SPLINTR) +bounds sizeof.c -expect 1
925 -$(SPLINTR) +bounds buffertest1.c -expect 5
930 ## db2: 2 errors are no longer reported, since eref is immutable.
931 ## Need to clarify what it means for an object to be immutable;
932 ## there should be 2 types with different storage requirements.
934 .PHONY: $(SUBDIRTESTS)
936 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
938 #drl 11/29/2001 This is a very ugly hack to get make dist to work
939 EXTRA_DIST = ./abst_t.lcl \
985 ./repexpose.lh.expect \
999 ./globalbufferannotation/.splintrc \
1000 ./maxset/.splintrc \
1001 ./strchr/.splintrc \
1002 ./tests2.2/bool.lcl \
1003 ./tests2.4/subdir/main.lcl \
1044 ./compoundliterals.c ./compoundliterals.expect \
1045 ./compoundstmt.c ./compoundstmt.expect \
1066 ./czechoslovaknames.c \
1183 ./unsignedcompare.c \
1187 ./conditions/miroslaw.c \
1188 ./conditions/releases.c \
1190 ./fileio/filebranch.c \
1193 ./globalbufferannotation/globalvariable.c \
1194 ./maxset/maxsetannotations.c \
1195 ./maxset/maxsetnoannotations.c \
1196 ./mergestate/taintednm.c \
1197 ./metastate/file.c \
1198 ./metastate/file1.c \
1199 ./metastate/file2.c \
1200 ./metastate/file3.c \
1201 ./metastate/file4.c \
1202 ./metastate/file5.c \
1203 ./metastate/file6.c \
1204 ./metastate/file7.c \
1205 ./metastate/filebad.c \
1206 ./metastate/global.c \
1207 ./metastate/nullbranch.c \
1208 ./metastate/nullbranch2.c \
1209 ./metastate/nullret.c \
1211 ./metastate/sockets.c \
1212 ./metastate/sockets2.c \
1213 ./metastate/struct.c \
1214 ./metastate/test.c \
1215 ./metastate/voidptr.c \
1216 ./moreBufferTests/initialization.c \
1217 ./moreBufferTests/simplifyTest.c \
1218 ./moreBufferTests/strncatNotReallyGood.c \
1219 ./moreBufferTests/strncatReallyGood.c \
1220 ./moreBufferTests/strrchr.c \
1221 ./moreBufferTests/unrecogCall.c \
1222 ./nullterminatedtest/buggy1.c \
1223 ./nullterminatedtest/buggy_support1.c \
1224 ./nullterminatedtest/buggy_support_fmakeword.c \
1225 ./nullterminatedtest/test1.c \
1226 ./nullterminatedtest/test3.c \
1227 ./simplebufferConstraintTests/m.c \
1228 ./simplebufferConstraintTests/sizeof.c \
1229 ./simplebufferConstraintTests/test3.c \
1230 ./simplebufferConstraintTests/test7.c \
1231 ./sizeoftest/sizeof.c \
1232 ./sizeoftest/Makefile.c \
1233 ./sizeoftest/sizeofConst.c \
1235 ./suppressfile/test.c \
1236 ./tainted/sprintf.c \
1238 ./tainted/tainted.c \
1239 ./tainted/tainted2.c \
1240 ./tainted/tainted3.c \
1241 ./tainted/tainted4.c \
1242 ./tainted/tainted5.c \
1243 ./tainted/taintedimplicit.c \
1244 ./tainted/taintedmerge.c \
1245 ./tainted/taintedx.c \
1247 ./tclauses/globals.c \
1249 ./tclauses/modifies.c \
1250 ./tclauses/struct.c \
1251 ./tclauses/undef.c \
1252 ./tests2.2/arbints.c \
1253 ./tests2.2/arrayfcn.c \
1254 ./tests2.2/booldef.c \
1255 ./tests2.2/boolenum.c \
1256 ./tests2.2/boolops.c \
1257 ./tests2.2/break.c \
1258 ./tests2.2/bstring.c \
1260 ./tests2.2/enumbool.c \
1261 ./tests2.2/extension.c \
1262 ./tests2.2/libraries.c \
1263 ./tests2.2/modarray.c \
1264 ./tests2.2/nestext.c \
1265 ./tests2.2/offsetof.c \
1266 ./tests2.2/posix.c \
1267 ./tests2.2/realloc.c \
1269 ./tests2.2/sizeofarray.c \
1270 ./tests2.2/struct.c \
1271 ./tests2.2a/addassign.c \
1272 ./tests2.2a/arrayparam.c \
1273 ./tests2.2a/bitops.c \
1274 ./tests2.2a/boolcomp.c \
1275 ./tests2.2a/boolenum.c \
1276 ./tests2.2a/dobb.c \
1277 ./tests2.2a/duff.c \
1278 ./tests2.2a/erik.c \
1279 ./tests2.2a/floatdouble.c \
1280 ./tests2.2a/florian.c \
1281 ./tests2.2a/fred.c \
1282 ./tests2.2a/isalpha.c \
1283 ./tests2.2a/notreached.c \
1284 ./tests2.2a/obviousloop.c \
1285 ./tests2.2a/popik.c \
1286 ./tests2.2a/sizeof.c \
1287 ./tests2.2a/toralf.c \
1288 ./tests2.4/subdir/main.c \
1289 ./tests2.4/alignof.c \
1290 ./tests2.4/array.c \
1291 ./tests2.4/bitfields.c \
1296 ./tests2.4/cpptest.c \
1297 ./tests2.4/driverstub.c \
1298 ./tests2.4/duffs.c \
1299 ./tests2.4/emptycase.c \
1300 ./tests2.4/enumtest.c \
1301 ./tests2.4/error.c \
1303 ./tests2.4/flagequal.c \
1304 ./tests2.4/forward.c \
1306 ./tests2.4/hexconstants.c \
1307 ./tests2.4/innercomment.c \
1308 ./tests2.4/komazi.c \
1309 ./tests2.4/longlong.c \
1311 ./tests2.4/nothing.c \
1312 ./tests2.4/offsetof.c \
1313 ./tests2.4/print.c \
1315 ./tests2.4/syncomment.c \
1316 ./tests2.4/syslog.c \
1317 ./tests2.4/test0.c \
1318 ./tests2.4/test1.c \
1319 ./tests2.4/test2.c \
1320 ./tests2.4/timecard.c \
1321 ./tests2.4/toothman.c \
1322 ./tests2.4/ulrich.c \
1323 ./tests2.5/badcomment.c \
1324 ./tests2.5/boolbad.c \
1325 ./tests2.5/boolt.c \
1326 ./tests2.5/booltest.c \
1327 ./tests2.5/dummyfile.c \
1329 ./tests2.5/immutable.c \
1330 ./tests2.5/impabsmodule.c \
1331 ./tests2.5/literals.c \
1332 ./tests2.5/quals.c \
1334 ./tests2.5/testalt.c \
1335 ./tests2.5/testimmutable.c \
1336 ./tests2.5/uconstants.c \
1338 ./warnuse/warnflags.c \
1339 ./warnuse/warngets.c \
1340 ./warnuse/warnuse.c \
1341 ./moreBufferTests2/unknownsize.c \
1342 ./moreBufferTests2/arrayConstExpr.c \
1347 ansireserved.expect \
1353 branchstate.expect \
1358 chararraylit.expect \
1361 commentchar.expect \
1362 compdestroy.expect \
1364 controldepth.expect \
1367 czechoslovaknames.expect \
1384 funcpointer.expect \
1386 globalbufferannotation.expect \
1389 impabstract.expect \
1397 lintcomments.expect \
1399 longconstants.expect \
1409 mongoincludes.expect \
1410 moreBufferTests.expect \
1411 moreBufferTests2.expect \
1416 nullterminatedtest.expect \
1421 postnotnull.expect \
1429 repexpose.lh.expect \
1432 simplebufferConstraintTests.expect \
1435 slovaknames.expect \
1436 specclauses.expect \
1439 staticarray.expect \
1442 structassign.expect \
1455 unreachable.expect \
1456 unsignedcompare.expect \
1495 ./metastate/global.h \
1496 ./suppressfile/test.h \
1497 ./tests2.2/mbool.h \
1498 ./tests2.4/forward.h \
1500 ./tests2.4/timecard.h \
1502 ./tests2.5/bimbim.h \
1503 ./tests2.5/immutable.h \
1504 ./tests2.5/impabsmodule.h \
1505 ./tests2.5/socket.h \
1506 ./Makefile-test.os2 \
1510 ./conditions/Makefile \
1513 ./globalbufferannotation/Makefile \
1515 ./mergestate/Makefile \
1516 ./metastate/Makefile \
1517 ./moreBufferTests/Makefile \
1518 ./simplebufferConstraintTests/Makefile \
1520 ./tainted/Makefile \
1522 ./tests2.2/Makefile \
1523 ./tests2.2/Makefile-tests2.2.os2 \
1524 ./tests2.4/Makefile \
1525 ./tests2.4/Makefile-tests2.4.os2 \
1526 ./tests2.5/Makefile \
1527 ./warnuse/Makefile \
1530 ./moreBufferTests2/Makefile \
1531 ./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 \
1532 db2.old-expect union.pp warnuse.old-expect \
1533 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants loopexec.expect mergenull.expect shifts.expect looptesteffect.expect \
1534 unioninit.expect unioninit.c utypes.c \
1535 utypes.expect widestrings.expect widestrings.c \
1536 functionmacro.expect functionmacro.c info.c info.expect \
1537 loopexec.c looptesteffect.c mergenull.c shifts.c \
1538 sizesigns.c sizesigns.expect \
1539 manual.expect ./manual/Makefile \
1540 ./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 \
1541 arraydims.expect arraydims.c \
1542 moreBufferTests2/fixedArrayType.c oldstyle2.c \
1543 divzero.expect parentype.expect \
1544 divzero.c parentype.c \
1545 stringliteral.expect stringliteral.c