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)
15 ### These are shell-specific
16 ## unexport LARCH_PATH
17 ## unexport LCLIMPORTDIR
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 arraylit 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 looptesteffect \
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 \
53 unnamedsu unreachable unsignedcompare \
54 unused ullint utypes void widestrings
55 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
57 SUBDIRTESTS = metastate mergestate tainted fileio \
58 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
59 maxset strchr for manual
61 ### warnuse doesn't work yet!
62 SUBDIRTESTS += tests2.2
63 SUBDIRTESTS += tests2.4
64 SUBDIRTESTS += tests2.5
65 SUBDIRTESTS += db1 db2 db3
67 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
76 -$(SPLINTP) -help version
82 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
85 -@$(SPLINTP) +boolint +boolint
86 -@$(SPLINTP) -help flags alpha
89 #commenting these out for the release because they will almost always fail
90 #since the default will only fit one system
91 #Don't want to panic the user...
92 # -@$(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> "
93 # -@$(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> "
94 # -@$(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> "
96 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
101 -rm -f *~ #*# *.o *.lcs a.out
102 -cd db1; $(MAKE) clean
103 -cd db2; $(MAKE) clean
104 -cd db3; $(MAKE) clean
106 ## All tests need splint to be built
108 $(SPLINTTESTS): $(SPLINT)
111 cd $(top_builddir)/src; $(MAKE)
113 ## This is a kludgey way of processing the output to make it match exactly
114 ## The last matcher is the most annoying, as it can differ (the first two are
115 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
116 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
118 ## The tests should really be re-done as shell-scripts or something... maybe
119 ## autotest could be used once it's finished.
121 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="
126 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
129 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
131 #drl temporally take this out.
134 # @echo "Saving old expects..."; \
135 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
136 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
137 # echo "Making $$TEST.expect..."; \
138 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
139 # cat $$TEST.expect; \
144 @for TEST in $(QUICKTESTS); do \
145 echo "Checking $$TEST..."; \
146 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
147 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
148 echo "*** FAIL ***"; \
153 @echo "Testing $(PACKAGE) $(VERSION)..."
155 @echo "Version Info:"
156 @$(SPLINTP) -help version
157 @$(SPLINTP) -help vars
161 @for TEST in $(SPLINTTESTS); do \
162 echo "Checking $$TEST..."; \
163 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
164 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
165 echo "*** FAIL ***"; \
168 ### Rules for tests start here
172 -$(SPLINTR) abstptr -expect 9
173 -$(SPLINTR) abstptr +voidabstract -expect 6
177 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
182 -$(SPLINTR) mut alias +globalias -expect 19
183 -$(SPLINTR) mut alias2 +globalias -expect 17
184 -$(SPLINTR) +lh alias3 -expect 14
185 -$(SPLINTR) +lh alias4 +boolint
186 -$(SPLINTR) alias4 -pred +retalias -expect 6
187 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
191 -$(SPLINTR) alttypes.c -expect 2
194 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
195 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
196 ### variable (could be a macro?)
197 ### Reports 3 additional errors for +checks; no longer suppresses name errors
198 ### in the presense of other errors.
203 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
204 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
205 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
206 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
210 -$(SPLINTR) argorder.c -expect 4
211 -$(SPLINTR) argorder2 -expect 5
212 -$(SPLINTR) argorder3.c -expect 8
213 -$(SPLINTR) argorder4 -expect 9
214 -$(SPLINTR) argorder4 -evalorder -expect 1
215 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
219 -$(SPLINTR) args -noeffect -expect 12
223 -$(SPLINTR) arraydims.c -varuse -expect 2
224 -$(SPLINTR) arraydims.c -initsize -varuse
228 -$(SPLINTR) arrayinit.c -expect 9
232 -$(SPLINTR) arraylit.c -expect 2
233 -$(SPLINTR) arraylit.c +stringliteralsmaller -expect 4
237 -$(SPLINTR) blocks.c -expect 4
238 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
239 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
240 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
241 -$(SPLINTR) blocks.c +allempty -expect 6
242 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
246 -$(SPLINTR) break.c -expect 4
247 -$(SPLINTR) break.c +deepbreak -expect 6
248 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
252 -$(SPLINTR) cases.c -expect 5
253 -$(SPLINTR) cases2.c -expect 2
254 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
255 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
259 -$(SPLINTR) cast -accessmodule -expect 20
260 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
262 ### Two addition errors detected with 2.5 with -numliteral.
266 -$(SPLINTR) +hints charlit.c -expect 4
267 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
268 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
272 -$(SPLINTR) clauses.c +memchecks -expect 4
273 -$(SPLINTR) clauses2.c +memchecks
274 -$(SPLINTR) clauses3.c +memchecks -expect 2
275 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
279 -$(SPLINTR) commentchar.c -expect 4
280 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
284 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
285 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
289 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
290 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
291 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
292 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
294 .PHONY: compoundliterals
296 ${SPLINTRN} compoundliterals.c
300 ${SPLINTRN} compoundstmt.c -expect 3
304 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
308 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
309 -$(SPLINTR) +quiet csyntax2.c -expect 2
310 -$(SPLINTR) +quiet csyntax3.c -expect 1
311 -$(SPLINTR) +quiet -incondefs csyntax4.c
312 -$(SPLINTR) +quiet csyntax5.c
313 -$(SPLINTR) +quiet csyntax6.c
314 -$(SPLINTR) +quiet csyntax7.c
315 -$(SPLINTR) +quiet csyntax8.c
316 -$(SPLINTR) +quiet csyntax9.c
317 -$(SPLINTR) +quiet csyntax10.c
318 -$(SPLINTR) +quiet csyntax11.c
319 -$(SPLINTR) +quiet csyntax12.c
320 -$(SPLINTR) +quiet csyntax13.c -expect 1
321 -$(SPLINTR) +quiet csyntax14.c
322 -$(SPLINTR) +quiet csyntax15.c
323 -$(SPLINTR) +quiet csyntax16.c -expect 2
324 -$(SPLINTR) +quiet csyntax17.c -expect 3
328 -$(SPLINTR) czechnames.c
329 -$(SPLINTR) +hints +czech czechnames.c -expect 2
330 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
331 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
333 .PHONY: czechoslovaknames
335 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
336 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
337 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
340 ### deadparam added 2001-05-27
345 ${SPLINTR} deadparam.c -expect 3
348 # Was expect 3 before 2.4. Earlier versions did not handle implicit
349 # function pointers correctly.
354 -$(SPLINTR) decl.c -expect 2
355 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
356 -$(SPLINTR) decl2 -expect 4
360 -$(SPLINTR) divzero.c -varuse -expect 0
364 -$(SPLINTR) enum -expect 16
365 -$(SPLINTR) enum -misscase -expect 14
369 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
370 -$(SPLINTR) exports.c +exportany -expect 3
371 -$(SPLINTR) exports.c
375 -$(SPLINTR) external.c +partial
376 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
377 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
378 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
379 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
383 -$(SPLINTR) fields.c +memchecks -expect 6
384 -$(SPLINTR) fields2.c +memchecks -expect 5
385 -$(SPLINTR) fields3.c +memchecks
389 -$(SPLINTR) flags.c -expect 8
390 -$(SPLINTR) +nocomments flags.c -expect 2
396 ${SPLINTR} forbody.c -expect 2
401 ${SPLINTR} format.c -expect 3
402 ${SPLINTR} format.c -formatconst
404 # two new errors (invalid lhs)
408 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
410 .PHONY: functionmacro
412 -$(SPLINTR) functionmacro.c -expect 2
416 -$(SPLINTR) glob -expect 4
417 -$(SPLINTR) glob -globuse -expect 3
418 -$(SPLINTR) glob +globunspec -expect 6
422 -$(SPLINTR) -modifies globals.c -expect 5
423 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
424 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
425 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
426 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
427 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
432 -$(SPLINTR) -accessmodule impabstract.c
433 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
434 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
437 ### evans 2001-12-30: Handle unrecognized pre-processor directives
438 ### (Reported by Pierluigi Sanzani)
442 ${SPLINTR} info.c -expect 4
444 ### evans 2001-10-14: Expected errors updated
447 -$(SPLINTR) init.c -expect 14
448 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
453 -$(SPLINTR) inparam.c -expect 2
454 -$(SPLINTR) +impouts inparam.c -expect 1
458 -$(SPLINTR) internal.c -expect 1
459 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
460 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
461 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
462 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
463 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
467 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
472 -$(SPLINTR) iter -expect 14 -lclexpect 1
473 -$(SPLINTR) iter2.c -expect 12
477 -$(SPLINTR) keep.c +memchecks -expect 6
480 ### 2001-05-22: 2 new errors found (fixed spec of signal)
481 ### 2001-05-30: 3 new errors found (formatconst)
485 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
486 -$(SPLINTR) libs.c -expect 22
487 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
488 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
492 -$(SPLINTR) lintcomments.c -expect 5
493 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
494 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
498 -$(SPLINTR) list.c -expect 3
501 ### 2002-01-01: Added test case for obvious loop execution.
506 -$(SPLINTR) loopexec.c -expect 1
507 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
509 .PHONY: looptesteffect
511 -$(SPLINTR) looptesteffect.c -expect 1
515 -$(SPLINTR) macros -expect 17
516 -$(SPLINTR) macros.c +allmacros -expect 34
517 -$(SPLINTR) macros.c +fcnmacros -expect 31
522 -$(SPLINTR) macrosef -expect 4
523 -$(SPLINTR) macrosef.c +allmacros -expect 3
524 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
528 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
532 -$(SPLINTRN) mergenull.c
536 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
540 -$(SPLINTR) modtest -expect 10
541 -$(SPLINTR) modtest +modunspec -expect 13
542 -$(SPLINTR) modtest +mustmod -expect 14
546 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
547 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
549 .PHONY: mongoincludes
551 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
552 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
553 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
554 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
555 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
559 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
563 ${SPLINTP} noeffect.c +allmacros +checks -expect 3
566 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
567 ### checking detects one new error
572 -$(SPLINTR) null1.c -expect 15
573 -$(SPLINTR) null1.c -null -mustdefine -expect 4
574 -$(SPLINTR) null2.c -expect 11
575 -$(SPLINTR) null3.c -expect 15
576 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
577 -$(SPLINTR) null4.c -expect 1
578 -$(SPLINTR) null5.c -expect 4
579 -$(SPLINTR) null6 -expect 4
580 -$(SPLINTR) +quiet null6.lcl -dump null6
581 -$(SPLINTR) null6.c -load null6 -expect 4
583 ### Added for 3.0 (bugs reported by Kevin Broady)
587 -$(SPLINTR) nullret.c -expect 2
588 -$(SPLINTR) -nullret nullret.c -expect 1
592 -$(SPLINTR) nullassign.c -expect 2
593 -$(SPLINTR) -nullassign nullassign.c -expect 1
597 # Before 2.4, expected one more because error was reported both as
598 # dependent and observer.
603 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
604 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
605 -$(SPLINTR) observer.c -expect 7
609 -$(SPLINTR) oldstyle oldstyle2.c -expect 5
613 -$(SPLINTR) outglob -expect 10
617 -$(SPLINTR) outparam -expect 12
619 ### evans 2001-08-26: postnotnull new
623 ${SPLINTR} postnotnull.c -expect 1
625 ### evans 2002-02-09: added parentype.c
628 ${SPLINTR} parentype.c
631 # Four new +fcnuse errors for -strict (evans 2001-07-22)
636 -$(SPLINTR) +hints preds.c -expect 6
637 -$(SPLINTRN) +hints preds.c -weak -expect 1
638 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
642 -$(SPLINTR) prefixes.c +partial
643 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
644 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
645 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
646 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
647 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
648 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
649 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
650 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
651 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
652 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
653 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
654 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
655 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
656 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
657 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
661 -$(SPLINTR) printflike.c -expect 6
662 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
666 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
667 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
668 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
669 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
670 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
674 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
678 -$(SPLINTR) refcounts.c -expect 7
682 -$(SPLINTR) release.c +memchecks -expect 1
686 -$(SPLINTR) +lh repexpose +memchecks -expect 12
687 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
688 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
690 ### returned added 2001-05-27
691 ### (Bug discovered checking splint sources.)
695 ${SPLINTR} returned.c -expect 1
699 -$(SPLINTR) sharing1.c -expect 21
700 -$(SPLINTR) sharing3.c -expect 3
701 -$(SPLINTR) sharing4.c -expect 13
702 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
703 -$(SPLINTR) sharing5.c -expect 6
707 -$(SPLINTR) shifts.c -expect 4
708 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
709 -$(SPLINTR) shifts.c -shiftnegative -expect 1
713 -$(SPLINTR) +hints slovaknames.c -expect 1
714 -$(SPLINTR) +hints slovaknames.c +accessslovak
715 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
716 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
717 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
721 -$(SPLINTR) specclauses.c -expect 6
722 -$(SPLINTR) specclauses2.c -expect 8
723 -$(SPLINTR) specclauses3.c -expect 6
724 -$(SPLINTR) specclauses4.c -expect 3
725 -$(SPLINTR) specclauses5.c -expect 3
729 -$(SPLINTR) specclauses.c -expect 6
733 -$(SPLINTR) specclauses2.c -expect 8
737 -$(SPLINTR) specclauses3.c -expect 6
741 -$(SPLINTR) specclauses4.c -expect 3
745 -$(SPLINTR) specclauses5.c -expect 3
749 -$(SPLINTR) special -expect 20
750 -$(SPLINTR) special -relaxquals -expect 22
754 -$(SPLINTR) stack.c -expect 5
755 -$(SPLINTR) stack.c -stackref
759 -$(SPLINTR) staticarray.c -expect 3
762 ### evans 2002-03-16: Default setting of stringliteralnoroomfinalnull changed
765 .PHONY: stringliteral
767 -$(SPLINTR) stringliteral.c -stringliteralnoroomfinalnull -expect 3
768 -$(SPLINTR) stringliteral.c -expect 4
772 -$(SPLINTR) strings.c -expect 3
773 -$(SPLINTR) -readonlystrings -expect 1 strings.c
774 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
778 -$(SPLINTR) structassign.c -expect 4
782 -$(SPLINTR) typeof.c -expect 2
786 -$(SPLINTR) typequals.c tq.lcl -expect 5
787 -$(SPLINTR) typequals.c -expect 2
791 -$(SPLINTR) ud.c -expect 9
792 -$(SPLINTR) ud2 -specundef -expect 3
796 -$(SPLINTR) ulstypes.c -expect 8
797 -$(SPLINTR) ulstypes.c +ignorequals
798 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
800 # 3 more detected with version 2.5 (change in -numliteral setting)
804 -$(SPLINTR) +memchecks union.c -expect 8
807 ### Added 2001-12-30: fixed union initializer checking in response to
808 ### bug report from Jim Zelenka.
813 -$(SPLINTR) unioninit.c -expect 2
817 -$(SPLINTR) unnamedsu.c -expect 0
821 -$(SPLINTR) unreachable.c -expect 5
822 -$(SPLINTR) -unreachable unreachable.c -expect 2
823 -$(SPLINTR) switch.c -expect 4
825 .PHONY: unsignedcompare
827 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
831 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
836 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
837 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
840 ### 2001-06-10: Provided by Jim Zalenka
845 ${SPLINTRN} ullint.c -expect 5
846 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
849 ### 2001-12-30: Poor warnings reported by Peter Deutsch
854 ${SPLINTRN} utypes.c -expect 6
860 ${SPLINTRN} void.c -expect 2
863 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
868 ${SPLINTRN} widestrings.c -expect 2
876 ${SPLINTR} linked.c -expect 4
877 ${SPLINTR} linked2.c -expect 3
878 ${SPLINTR} linked3.c -expect 5
879 ${SPLINTR} linked4.c -expect 6
880 ${SPLINTR} linked5.c -expect 4
881 ${SPLINTR} linked6.c -expect 4
885 ${SPLINTR} freearray.c -expect 1
889 -$(SPLINTR) +bounds sizeof.c -expect 1
893 -$(SPLINTR) +bounds buffertest1.c -expect 5
898 ## db2: 2 errors are no longer reported, since eref is immutable.
899 ## Need to clarify what it means for an object to be immutable;
900 ## there should be 2 types with different storage requirements.
902 .PHONY: $(SUBDIRTESTS)
904 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
906 #drl 11/29/2001 This is a very ugly hack to get make dist to work
907 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
908 ./abstptr.lcl ./abstptr.lcs \
909 ./alias.lcl ./alias.lcs \
910 ./alias2.lcl ./alias2.lcs \
981 ./repexpose.lh.expect \
998 ./globalbufferannotation/.splintrc \
1000 ./strchr/.splintrc \
1001 ./tests2.2/bool.lcl \
1002 ./tests2.2/bool.lcs \
1003 ./tests2.2/libraries.lcd \
1004 ./tests2.2/obsolete.lcd \
1005 ./tests2.2/oldversion.lcd \
1006 ./tests2.4/subdir/main.lcl \
1007 ./tests2.4/subdir/main.lcs \
1008 ./tests2.5/newlint.lcd \
1009 ./warnuse/warnuse.lcd \
1050 ./compoundliterals.c ./compoundliterals.expect \
1051 ./compoundstmt.c ./compoundstmt.expect \
1072 ./czechoslovaknames.c \
1188 ./unsignedcompare.c \
1192 ./conditions/miroslaw.c \
1193 ./conditions/releases.c \
1195 ./fileio/filebranch.c \
1198 ./globalbufferannotation/globalvariable.c \
1199 ./maxset/maxsetannotations.c \
1200 ./maxset/maxsetnoannotations.c \
1201 ./mergestate/taintednm.c \
1202 ./metastate/file.c \
1203 ./metastate/file1.c \
1204 ./metastate/file2.c \
1205 ./metastate/file3.c \
1206 ./metastate/file4.c \
1207 ./metastate/file5.c \
1208 ./metastate/file6.c \
1209 ./metastate/file7.c \
1210 ./metastate/filebad.c \
1211 ./metastate/global.c \
1212 ./metastate/nullbranch.c \
1213 ./metastate/nullbranch2.c \
1214 ./metastate/nullret.c \
1216 ./metastate/sockets.c \
1217 ./metastate/sockets2.c \
1218 ./metastate/struct.c \
1219 ./metastate/test.c \
1220 ./metastate/voidptr.c \
1221 ./moreBufferTests/initialization.c \
1222 ./moreBufferTests/simplifyTest.c \
1223 ./moreBufferTests/strncatNotReallyGood.c \
1224 ./moreBufferTests/strncatReallyGood.c \
1225 ./moreBufferTests/strrchr.c \
1226 ./moreBufferTests/unrecogCall.c \
1227 ./nullterminatedtest/buggy1.c \
1228 ./nullterminatedtest/buggy_support1.c \
1229 ./nullterminatedtest/buggy_support_fmakeword.c \
1230 ./nullterminatedtest/test1.c \
1231 ./nullterminatedtest/test3.c \
1232 ./simplebufferConstraintTests/m.c \
1233 ./simplebufferConstraintTests/sizeof.c \
1234 ./simplebufferConstraintTests/test3.c \
1235 ./simplebufferConstraintTests/test7.c \
1236 ./sizeoftest/sizeof.c \
1238 ./suppressfile/test.c \
1239 ./tainted/sprintf.c \
1241 ./tainted/tainted.c \
1242 ./tainted/tainted2.c \
1243 ./tainted/tainted3.c \
1244 ./tainted/tainted4.c \
1245 ./tainted/tainted5.c \
1246 ./tainted/taintedimplicit.c \
1247 ./tainted/taintedmerge.c \
1248 ./tainted/taintedx.c \
1250 ./tclauses/globals.c \
1252 ./tclauses/modifies.c \
1253 ./tclauses/struct.c \
1254 ./tclauses/undef.c \
1255 ./tests2.2/arbints.c \
1256 ./tests2.2/arrayfcn.c \
1257 ./tests2.2/booldef.c \
1258 ./tests2.2/boolenum.c \
1259 ./tests2.2/boolops.c \
1260 ./tests2.2/break.c \
1261 ./tests2.2/bstring.c \
1263 ./tests2.2/enumbool.c \
1264 ./tests2.2/extension.c \
1265 ./tests2.2/libraries.c \
1266 ./tests2.2/modarray.c \
1267 ./tests2.2/nestext.c \
1268 ./tests2.2/offsetof.c \
1269 ./tests2.2/posix.c \
1270 ./tests2.2/realloc.c \
1272 ./tests2.2/sizeofarray.c \
1273 ./tests2.2/struct.c \
1274 ./tests2.2a/addassign.c \
1275 ./tests2.2a/arrayparam.c \
1276 ./tests2.2a/bitops.c \
1277 ./tests2.2a/boolcomp.c \
1278 ./tests2.2a/boolenum.c \
1279 ./tests2.2a/dobb.c \
1280 ./tests2.2a/duff.c \
1281 ./tests2.2a/erik.c \
1282 ./tests2.2a/floatdouble.c \
1283 ./tests2.2a/florian.c \
1284 ./tests2.2a/fred.c \
1285 ./tests2.2a/isalpha.c \
1286 ./tests2.2a/notreached.c \
1287 ./tests2.2a/obviousloop.c \
1288 ./tests2.2a/popik.c \
1289 ./tests2.2a/sizeof.c \
1290 ./tests2.2a/toralf.c \
1291 ./tests2.4/subdir/main.c \
1292 ./tests2.4/alignof.c \
1293 ./tests2.4/array.c \
1294 ./tests2.4/bitfields.c \
1299 ./tests2.4/cpptest.c \
1300 ./tests2.4/driverstub.c \
1301 ./tests2.4/duffs.c \
1302 ./tests2.4/emptycase.c \
1303 ./tests2.4/enumtest.c \
1304 ./tests2.4/error.c \
1306 ./tests2.4/flagequal.c \
1307 ./tests2.4/forward.c \
1309 ./tests2.4/hexconstants.c \
1310 ./tests2.4/innercomment.c \
1311 ./tests2.4/komazi.c \
1312 ./tests2.4/longlong.c \
1314 ./tests2.4/nothing.c \
1315 ./tests2.4/offsetof.c \
1316 ./tests2.4/print.c \
1318 ./tests2.4/syncomment.c \
1319 ./tests2.4/syslog.c \
1320 ./tests2.4/test0.c \
1321 ./tests2.4/test1.c \
1322 ./tests2.4/test2.c \
1323 ./tests2.4/timecard.c \
1324 ./tests2.4/toothman.c \
1325 ./tests2.4/ulrich.c \
1326 ./tests2.5/badcomment.c \
1327 ./tests2.5/boolbad.c \
1328 ./tests2.5/boolt.c \
1329 ./tests2.5/booltest.c \
1330 ./tests2.5/dummyfile.c \
1332 ./tests2.5/immutable.c \
1333 ./tests2.5/impabsmodule.c \
1334 ./tests2.5/literals.c \
1335 ./tests2.5/quals.c \
1337 ./tests2.5/testalt.c \
1338 ./tests2.5/testimmutable.c \
1339 ./tests2.5/uconstants.c \
1341 ./warnuse/warnflags.c \
1342 ./warnuse/warngets.c \
1343 ./warnuse/warnuse.c \
1344 ./moreBufferTests2/unknownsize.c \
1345 ./moreBufferTests2/arrayConstExpr.c \
1350 ansireserved.expect \
1356 branchstate.expect \
1363 commentchar.expect \
1364 compdestroy.expect \
1366 controldepth.expect \
1369 czechoslovaknames.expect \
1385 funcpointer.expect \
1387 globalbufferannotation.expect \
1390 impabstract.expect \
1398 lintcomments.expect \
1400 longconstants.expect \
1410 mongoincludes.expect \
1411 moreBufferTests.expect \
1412 moreBufferTests2.expect \
1417 nullterminatedtest.expect \
1422 postnotnull.expect \
1430 repexpose.lh.expect \
1433 simplebufferConstraintTests.expect \
1436 slovaknames.expect \
1437 specclauses.expect \
1440 staticarray.expect \
1443 structassign.expect \
1456 unreachable.expect \
1457 unsignedcompare.expect \
1496 ./metastate/global.h \
1497 ./suppressfile/test.h \
1498 ./tests2.2/mbool.h \
1499 ./tests2.4/forward.h \
1501 ./tests2.4/timecard.h \
1503 ./tests2.5/bimbim.h \
1504 ./tests2.5/immutable.h \
1505 ./tests2.5/impabsmodule.h \
1506 ./tests2.5/socket.h \
1507 ./Makefile-test.os2 \
1511 ./conditions/Makefile \
1514 ./globalbufferannotation/Makefile \
1516 ./mergestate/Makefile \
1517 ./metastate/Makefile \
1518 ./moreBufferTests/Makefile \
1519 ./simplebufferConstraintTests/Makefile \
1521 ./tainted/Makefile \
1523 ./tests2.2/Makefile \
1524 ./tests2.2/Makefile-tests2.2.os2 \
1525 ./tests2.4/Makefile \
1526 ./tests2.4/Makefile-tests2.4.os2 \
1527 ./tests2.5/Makefile \
1528 ./warnuse/Makefile \
1531 ./moreBufferTests2/Makefile \
1532 ./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 \
1533 db2.old-expect union.pp warnuse.old-expect \
1534 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants loopexec.expect mergenull.expect shifts.expect looptesteffect.expect \
1535 unioninit.expect unioninit.c utypes.c \
1536 utypes.expect widestrings.expect widestrings.c \
1537 functionmacro.expect functionmacro.c info.c info.expect \
1538 loopexec.c looptesteffect.c mergenull.c shifts.c \
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