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
9 ## Set up the splint commands
11 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
17 ### This is horrible! Can't we make top_builddir absolute?
18 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
20 SPLINTPNEST = @$(SPLINTNEST)
23 # Make sure .splintrc files are not used so test results do not
24 # depend on local settings.
25 SPLINTRN = $(SPLINTP) -nof -hints -booltype "bool"
26 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
28 SPLINTRNNEST = $(SPLINTPNEST) -nof -hints -booltype "bool"
29 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
31 ## Currently disabled tests:
32 ## fileio tainted mergestate nullret nullassign warnuse metastate \
33 ## nullret nullassign warnuse
37 ### These tests have been temporarily removed because of problems with the new build process:
38 ### fileio tainted mergestate metastate \
39 ### tests2.2 tests2.2a tests2.4 tests2.5
45 fileio tainted mergestate metastate sizeof buffertest \
46 tests2.2 tests2.4 tests2.5 \
47 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
49 abstptr abstract alias alttypes ansireserved argorder \
50 args blocks break cases cast charlit clauses commentchar compdestroy \
51 constannot controldepth csyntax czechnames czechoslovaknames deadparam \
52 decl enum exports external fields flags forbody format freearray \
53 funcpointer glob globals impabstract init inparam internal iter keep libs \
54 linked lintcomments list macros macrosef merge mergenull modifies modtest moduncon \
55 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
56 postnotnull preds prefixes printflike rc rcfiles refcounts release repexpose \
57 returned sharing slovaknames specclauses special stack staticarray strings \
58 structassign typequals ud ulstypes union unreachable unsignedcompare \
60 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
62 INTEGTESTS = db1 db2 db3
63 INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
65 SPLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
74 -$(SPLINTP) -help version
79 -@LARCH_PATH=/dev/null; $(SPLINT) empty.lcl
82 -@$(SPLINTP) +boolint +boolint
83 -@$(SPLINTP) -help flags alpha
84 -@$(SPLINTP) -help flags all
88 -rm -f *~ #*# *.o *.lcs a.out
89 -cd db1; $(MAKE) clean
90 -cd db2; $(MAKE) clean
91 -cd db3; $(MAKE) clean
93 ## All tests need splint to be built
95 $(SPLINTTESTS): $(SPLINT)
98 cd $(top_builddir)/src; $(MAKE)
100 ## This is a kludgey way of processing the output to make it match exactly
101 ## The last matcher is the most annoying, as it can differ (the first two are
102 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
103 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
105 ## The tests should really be re-done as shell-scripts or something... maybe
106 ## autotest could be used once it's finished.
107 CLEANOUTPUT = $(GREP) -v "Splint 3." | $(GREP) -v "$(SPLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:"
112 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
115 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
117 #drl temporally take this out.
120 # @echo "Saving old expects..."; \
121 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
122 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
123 # echo "Making $$TEST.expect..."; \
124 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
125 # cat $$TEST.expect; \
130 @for TEST in $(QUICKTESTS); do \
131 echo "Checking $$TEST..."; \
132 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
133 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
134 echo "*** FAIL ***"; \
139 @echo "Testing $(PACKAGE) $(VERSION)..."
141 @echo "Version Info:"
142 @$(SPLINTP) -help version
143 @$(SPLINTP) -help vars
147 @for TEST in $(UNITTESTS); do \
148 echo "Checking $$TEST..."; \
149 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
150 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
151 echo "*** FAIL ***"; \
154 @echo "Integration tests:"
156 @for TEST in $(INTEGTESTS); do \
157 echo "Checking $$TEST..."; \
158 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
159 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
160 echo "*** FAIL ***"; \
163 ### Rules for tests start here
165 SUBDIRTESTS = metastate mergestate tainted fileio warnuse ensuresclauses \
166 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
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) blocks.c -expect 4
223 $(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
224 $(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
225 $(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
226 $(SPLINTR) blocks.c +allempty -expect 6
227 $(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
231 $(SPLINTR) break.c -expect 4
232 $(SPLINTR) break.c +deepbreak -expect 6
233 $(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
237 $(SPLINTR) cases.c -expect 5
238 $(SPLINTR) cases2.c -expect 2
239 $(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
240 $(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
244 $(SPLINTR) cast -accessmodule -expect 20
245 $(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
247 ### Two addition errors detected with 2.5 with -numliteral.
251 $(SPLINTR) +hints charlit.c -expect 4
252 $(SPLINTR) +hints -numliteral charlit.c -expect 6
253 $(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
257 $(SPLINTR) clauses.c +memchecks -expect 4
258 $(SPLINTR) clauses2.c +memchecks
259 $(SPLINTR) clauses3.c +memchecks -expect 2
260 $(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
264 $(SPLINTR) commentchar.c -expect 4
265 $(SPLINTR) -commentchar '#' commentchar.c -expect 4
269 $(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
270 $(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
274 $(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
275 $(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
276 $(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
277 $(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
281 ${SPLINTRN} constannot.c +arraybounds -exportlocal -expect 2
285 $(SPLINTR) +quiet -incondefs csyntax.c -expect 1
286 $(SPLINTR) +quiet csyntax2.c -expect 2
287 $(SPLINTR) +quiet csyntax3.c -expect 1
288 $(SPLINTR) +quiet -incondefs csyntax4.c
289 $(SPLINTR) +quiet csyntax5.c
290 $(SPLINTR) +quiet csyntax6.c
291 $(SPLINTR) +quiet csyntax7.c
292 $(SPLINTR) +quiet csyntax8.c
293 $(SPLINTR) +quiet csyntax9.c
294 $(SPLINTR) +quiet csyntax10.c
295 $(SPLINTR) +quiet csyntax11.c
296 $(SPLINTR) +quiet csyntax12.c
297 $(SPLINTR) +quiet csyntax13.c -expect 1
298 $(SPLINTR) +quiet csyntax14.c
299 $(SPLINTR) +quiet csyntax15.c
300 $(SPLINTR) +quiet csyntax16.c -expect 2
301 $(SPLINTR) +quiet csyntax17.c -expect 3
305 $(SPLINTR) czechnames.c
306 $(SPLINTR) +hints +czech czechnames.c -expect 2
307 $(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
308 $(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
310 .PHONY: czechoslovaknames
312 $(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
313 $(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
314 $(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
317 ### deadparam added 2001-05-27
322 ${SPLINTR} deadparam.c -expect 3
325 # Was expect 3 before 2.4. Earlier versions did not handle implicit
326 # function pointers correctly.
331 $(SPLINTR) decl.c -expect 2
332 $(SPLINTRN) decl.c +strict -exportlocal -expect 5
333 $(SPLINTR) decl2 -expect 4
337 $(SPLINTR) enum -expect 16
338 $(SPLINTR) enum -misscase -expect 14
342 $(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
343 $(SPLINTR) exports.c +exportany -expect 3
348 $(SPLINTR) external.c +partial
349 $(SPLINTR) external.c +partial +distinctexternalnames -expect 2
350 $(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
351 $(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
352 $(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
356 $(SPLINTR) fields.c +memchecks -expect 6
357 $(SPLINTR) fields2.c +memchecks -expect 5
358 $(SPLINTR) fields3.c +memchecks
362 $(SPLINTR) flags.c -expect 8
363 $(SPLINTR) +nocomments flags.c -expect 2
369 ${SPLINTR} forbody.c -expect 2
374 ${SPLINTR} format.c -expect 3
375 ${SPLINTR} format.c -formatconst
377 # two new errors (invalid lhs)
381 $(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
385 $(SPLINTR) glob -expect 4
386 $(SPLINTR) glob -globuse -expect 3
387 $(SPLINTR) glob +globunspec -expect 6
391 $(SPLINTR) -modifies globals.c -expect 5
392 $(SPLINTR) -modifies globals.c +allglobals -expect 6
393 $(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
394 $(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
395 $(SPLINTR) -modifies globals.c +globunspec -expect 6
396 $(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
401 $(SPLINTR) -accessmodule impabstract.c
402 $(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
403 $(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
405 ### evans 2001-10-14: Expected errors updated
408 $(SPLINTR) init.c -expect 14
409 $(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
414 $(SPLINTR) inparam.c -expect 2
415 $(SPLINTR) +impouts inparam.c -expect 1
419 $(SPLINTR) internal.c -expect 1
420 $(SPLINTR) internal.c +distinctinternalnames -expect 2
421 $(SPLINTR) internal.c -internalnamelen 28 -expect 3
422 $(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
423 $(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
427 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
432 $(SPLINTR) iter -expect 14 -lclexpect 1
433 $(SPLINTR) iter2.c -expect 12
437 $(SPLINTR) keep.c +memchecks -expect 6
440 ### 2001-05-22: 2 new errors found (fixed spec of signal)
441 ### 2001-05-30: 3 new errors found (formatconst)
445 $(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
446 $(SPLINTR) libs.c -expect 22
447 $(SPLINTR) libs.c +globunspec +modunspec -expect 25
448 $(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
452 $(SPLINTR) lintcomments.c -expect 4
453 $(SPLINTR) lintcomments.c -warnlintcomments -expect 1
454 $(SPLINTR) lintcomments.c -lintcomments -expect 4
458 $(SPLINTR) list.c -expect 3
462 $(SPLINTR) macros -expect 17
463 $(SPLINTR) macros.c +allmacros -expect 34
464 $(SPLINTR) macros.c +fcnmacros -expect 31
469 $(SPLINTR) macrosef -expect 4
470 $(SPLINTR) macrosef.c +allmacros -expect 3
471 $(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
475 $(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
479 $(SPLINTRN) mergenull.c
483 $(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
487 $(SPLINTR) modtest -expect 10
488 $(SPLINTR) modtest +modunspec -expect 13
489 $(SPLINTR) modtest +mustmod -expect 14
493 $(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
494 $(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
496 .PHONY: mongoincludes
498 $(SPLINTR) mongoincludes.c -includenest 1 -expect 19
499 $(SPLINTR) mongoincludes.c -includenest 2 -expect 10
500 $(SPLINTR) mongoincludes.c -includenest 3 -expect 4
501 $(SPLINTR) mongoincludes.c -includenest 4 -expect 1
502 $(SPLINTR) mongoincludes.c -includenest 5 -expect 0
506 $(SPLINTR) mystrncat.c +arraybounds +arrayboundsread -expect 4
510 ${SPLINT} -nof noeffect.c +allmacros +checks -expect 3
514 $(SPLINTR) null1.c -expect 14
515 $(SPLINTR) null1.c -null -expect 4
516 $(SPLINTR) null2.c -expect 10
517 $(SPLINTR) null3.c -expect 15
518 $(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
519 $(SPLINTR) null4.c -expect 1
520 $(SPLINTR) null5.c -expect 4
521 $(SPLINTR) null6 -expect 4
522 $(SPLINTR) +quiet null6.lcl -dump null6
523 $(SPLINTR) null6.c -load null6 -expect 4
525 ### Added for 3.0 (bugs reported by Kevin Broady)
529 $(SPLINTR) nullret.c -expect 2
530 $(SPLINTR) -nullret nullret.c -expect 1
534 $(SPLINTR) nullassign.c -expect 2
535 $(SPLINTR) -nullassign nullassign.c -expect 1
539 # Before 2.4, expected one more because error was reported both as
540 # dependent and observer.
545 $(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
546 $(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
547 $(SPLINTR) observer.c -expect 7
551 $(SPLINTR) oldstyle -expect 3
555 $(SPLINTR) outglob -expect 10
559 $(SPLINTR) outparam -expect 12
561 ### evans 2001-08-26: postnotnull new
565 ${SPLINTR} postnotnull.c -expect 1
567 # Four new +fcnuse errors for -strict (evans 2001-07-22)
572 $(SPLINTR) +hints preds.c -expect 6
573 $(SPLINTRN) +hints preds.c -weak -expect 1
574 $(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
578 $(SPLINTR) prefixes.c +partial
579 $(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
580 $(SPLINTR) prefixes.c -typeprefix "T" -expect 2
581 $(SPLINTR) prefixes.c -typeprefix "^" -expect 1
582 $(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
583 $(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
584 $(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
585 $(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
586 $(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
587 $(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
588 $(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
589 $(SPLINTR) prefixes.c -globalprefix "G" -expect 1
590 $(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
591 $(SPLINTR) prefixes.c -externalprefix "G" -expect 5
592 $(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
593 $(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
597 $(SPLINTR) printflike.c -expect 6
598 $(SPLINTR) printflike.c -warnlintcomments -expect 5
602 $(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
603 $(SPLINTR) -DMYSTERY=12 rc.c -expect 1
604 $(SPLINTR) -f rc1.splintrc rc.c -expect 1
605 $(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
606 $(SPLINTR) -f rc3.splintrc rc.c -expect 1
610 cd rcfiles; ${MAKE} SPLINT="$(SPLINTPNEST)"
614 $(SPLINTR) refcounts.c -expect 7
618 $(SPLINTR) release.c +memchecks -expect 1
622 $(SPLINTR) +lh repexpose +memchecks -expect 12
623 $(SPLINTR) repexpose +memchecks +retalias -expect 15
624 $(SPLINTRN) repexpose +checks -exportlocal -expect 27
626 ### returned added 2001-05-27
627 ### (Bug discovered checking splint sources.)
631 ${SPLINTR} returned.c -expect 1
635 $(SPLINTR) sharing1.c -expect 21
636 $(SPLINTR) sharing3.c -expect 3
637 $(SPLINTR) sharing4.c -expect 13
638 $(SPLINTR) sharing4.c -paramimptemp -expect 12
639 $(SPLINTR) sharing5.c -expect 6
643 $(SPLINTR) +hints slovaknames.c -expect 1
644 $(SPLINTR) +hints slovaknames.c +accessslovak
645 $(SPLINTR) +hints +slovak slovaknames.c -expect 3
646 $(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
647 $(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
651 $(SPLINTR) specclauses.c -expect 6
652 $(SPLINTR) specclauses2.c -expect 8
653 $(SPLINTR) specclauses3.c -expect 6
654 $(SPLINTR) specclauses4.c -expect 3
655 $(SPLINTR) specclauses5.c -expect 3
659 $(SPLINTR) special -expect 20
660 $(SPLINTR) special -relaxquals -expect 22
664 $(SPLINTR) stack.c -expect 5
665 $(SPLINTR) stack.c -stackref
669 $(SPLINTR) staticarray.c -expect 3
673 $(SPLINTR) strings.c -expect 3
674 $(SPLINTR) -readonlystrings -expect 1 strings.c
675 $(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
679 $(SPLINTR) structassign.c -expect 4
683 $(SPLINTR) typequals.c tq.lcl -expect 5
684 $(SPLINTR) typequals.c -expect 2
688 $(SPLINTR) ud.c -expect 9
689 $(SPLINTR) ud2 -specundef -expect 3
693 $(SPLINTR) ulstypes.c -expect 8
694 $(SPLINTR) ulstypes.c +ignorequals
695 $(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
696 # 3 more detected with version 2.5 (change in -numliteral setting)
700 $(SPLINTR) +memchecks union.c -expect 8
704 $(SPLINTR) unreachable.c -expect 5
705 $(SPLINTR) -unreachable unreachable.c -expect 2
706 $(SPLINTR) switch.c -expect 4
708 .PHONY: unsignedcompare
710 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
714 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
719 $(SPLINTRN) unused.c +checks -exportlocal -expect 5
720 $(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
723 ### 2001-06-10: Provided by Jim Zalenka
728 ${SPLINTRN} ullint.c -expect 5
729 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
733 ${SPLINTRN} void.c -expect 2
741 ${SPLINTR} linked.c -expect 4
742 ${SPLINTR} linked2.c -expect 3
743 ${SPLINTR} linked3.c -expect 5
744 ${SPLINTR} linked4.c -expect 6
745 ${SPLINTR} linked5.c -expect 4
746 ${SPLINTR} linked6.c -expect 4
750 ${SPLINTR} freearray.c -expect 1
753 ### Bugs fixed and new features since version 2.1b
756 SUBDIRTESTS += tests2.2
757 SUBDIRTESTS += tests2.2a
758 SUBDIRTESTS += tests2.4
762 $(SPLINTR) +arraybounds +arrayboundsread sizeof.c -expect 1
766 $(SPLINTR) +arraybounds +arrayboundsread buffertest1.c -expect 5
768 SUBDIRTESTS += tests2.5
773 ## db2: 2 errors are no longer reported, since eref is immutable.
774 ## Need to clarify what it means for an object to be immutable;
775 ## there should be 2 types with different storage requirements.
777 SUBDIRTESTS += db1 db2 db3
779 .PHONY: $(SUBDIRTESTS)
781 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
783 #drl 11/29/2001 This is a very ugly hack to get make dist to work
784 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
785 ./abstptr.lcl ./abstptr.lcs \
786 ./alias.lcl ./alias.lcs \
787 ./alias2.lcl ./alias2.lcs \
858 ./repexpose.lh.expect \
875 ./globalbufferannotation/.splintrc \
878 ./tests2.2/bool.lcl \
879 ./tests2.2/bool.lcs \
880 ./tests2.2/libraries.lcd \
881 ./tests2.2/obsolete.lcd \
882 ./tests2.2/oldversion.lcd \
883 ./tests2.4/subdir/main.lcl \
884 ./tests2.4/subdir/main.lcs \
885 ./tests2.5/newlint.lcd \
886 ./warnuse/warnuse.lcd \
946 ./czechoslovaknames.c \
1062 ./unsignedcompare.c \
1065 ./conditions/miroslaw.c \
1066 ./conditions/releases.c \
1068 ./fileio/filebranch.c \
1071 ./globalbufferannotation/globalvariable.c \
1072 ./maxset/maxsetannotations.c \
1073 ./maxset/maxsetnoannotations.c \
1074 ./mergestate/taintednm.c \
1075 ./metastate/file.c \
1076 ./metastate/file1.c \
1077 ./metastate/file2.c \
1078 ./metastate/file3.c \
1079 ./metastate/file4.c \
1080 ./metastate/file5.c \
1081 ./metastate/file6.c \
1082 ./metastate/file7.c \
1083 ./metastate/filebad.c \
1084 ./metastate/global.c \
1085 ./metastate/nullbranch.c \
1086 ./metastate/nullbranch2.c \
1087 ./metastate/nullret.c \
1089 ./metastate/sockets.c \
1090 ./metastate/sockets2.c \
1091 ./metastate/struct.c \
1092 ./metastate/test.c \
1093 ./metastate/voidptr.c \
1094 ./moreBufferTests/initialization.c \
1095 ./moreBufferTests/simplifyTest.c \
1096 ./moreBufferTests/strncatNotReallyGood.c \
1097 ./moreBufferTests/strncatReallyGood.c \
1098 ./moreBufferTests/strrchr.c \
1099 ./moreBufferTests/unrecogCall.c \
1100 ./nullterminatedtest/buggy1.c \
1101 ./nullterminatedtest/buggy_support1.c \
1102 ./nullterminatedtest/buggy_support_fmakeword.c \
1103 ./nullterminatedtest/test1.c \
1104 ./nullterminatedtest/test3.c \
1105 ./simplebufferConstraintTests/m.c \
1106 ./simplebufferConstraintTests/sizeof.c \
1107 ./simplebufferConstraintTests/test3.c \
1108 ./simplebufferConstraintTests/test7.c \
1109 ./sizeoftest/sizeof.c \
1111 ./suppressfile/test.c \
1112 ./tainted/sprintf.c \
1114 ./tainted/tainted.c \
1115 ./tainted/tainted2.c \
1116 ./tainted/tainted3.c \
1117 ./tainted/tainted4.c \
1118 ./tainted/tainted5.c \
1119 ./tainted/taintedimplicit.c \
1120 ./tainted/taintedmerge.c \
1121 ./tainted/taintedx.c \
1123 ./tclauses/globals.c \
1125 ./tclauses/modifies.c \
1126 ./tclauses/struct.c \
1127 ./tclauses/undef.c \
1128 ./tests2.2/arbints.c \
1129 ./tests2.2/arrayfcn.c \
1130 ./tests2.2/booldef.c \
1131 ./tests2.2/boolenum.c \
1132 ./tests2.2/boolops.c \
1133 ./tests2.2/break.c \
1134 ./tests2.2/bstring.c \
1136 ./tests2.2/enumbool.c \
1137 ./tests2.2/extension.c \
1138 ./tests2.2/libraries.c \
1139 ./tests2.2/modarray.c \
1140 ./tests2.2/nestext.c \
1141 ./tests2.2/offsetof.c \
1142 ./tests2.2/posix.c \
1143 ./tests2.2/realloc.c \
1145 ./tests2.2/sizeofarray.c \
1146 ./tests2.2/struct.c \
1147 ./tests2.2a/addassign.c \
1148 ./tests2.2a/arrayparam.c \
1149 ./tests2.2a/bitops.c \
1150 ./tests2.2a/boolcomp.c \
1151 ./tests2.2a/boolenum.c \
1152 ./tests2.2a/dobb.c \
1153 ./tests2.2a/duff.c \
1154 ./tests2.2a/erik.c \
1155 ./tests2.2a/floatdouble.c \
1156 ./tests2.2a/florian.c \
1157 ./tests2.2a/fred.c \
1158 ./tests2.2a/isalpha.c \
1159 ./tests2.2a/notreached.c \
1160 ./tests2.2a/obviousloop.c \
1161 ./tests2.2a/popik.c \
1162 ./tests2.2a/sizeof.c \
1163 ./tests2.2a/toralf.c \
1164 ./tests2.4/subdir/main.c \
1165 ./tests2.4/alignof.c \
1166 ./tests2.4/array.c \
1167 ./tests2.4/bitfields.c \
1172 ./tests2.4/cpptest.c \
1173 ./tests2.4/driverstub.c \
1174 ./tests2.4/duffs.c \
1175 ./tests2.4/emptycase.c \
1176 ./tests2.4/enumtest.c \
1177 ./tests2.4/error.c \
1179 ./tests2.4/flagequal.c \
1180 ./tests2.4/forward.c \
1182 ./tests2.4/hexconstants.c \
1183 ./tests2.4/innercomment.c \
1184 ./tests2.4/komazi.c \
1185 ./tests2.4/longlong.c \
1187 ./tests2.4/nothing.c \
1188 ./tests2.4/offsetof.c \
1189 ./tests2.4/print.c \
1191 ./tests2.4/syncomment.c \
1192 ./tests2.4/syslog.c \
1193 ./tests2.4/test0.c \
1194 ./tests2.4/test1.c \
1195 ./tests2.4/test2.c \
1196 ./tests2.4/timecard.c \
1197 ./tests2.4/toothman.c \
1198 ./tests2.4/ulrich.c \
1199 ./tests2.5/badcomment.c \
1200 ./tests2.5/boolbad.c \
1201 ./tests2.5/boolt.c \
1202 ./tests2.5/booltest.c \
1203 ./tests2.5/dummyfile.c \
1205 ./tests2.5/immutable.c \
1206 ./tests2.5/impabsmodule.c \
1207 ./tests2.5/literals.c \
1208 ./tests2.5/quals.c \
1210 ./tests2.5/testalt.c \
1211 ./tests2.5/testimmutable.c \
1212 ./tests2.5/uconstants.c \
1214 ./warnuse/warnflags.c \
1215 ./warnuse/warngets.c \
1216 ./warnuse/warnuse.c \
1217 ./moreBufferTests2/unknownsize.c \
1218 ./moreBufferTests2/arrayConstExpr.c \
1223 ansireserved.expect \
1228 branchstate.expect \
1235 commentchar.expect \
1236 compdestroy.expect \
1238 controldepth.expect \
1241 czechoslovaknames.expect \
1257 funcpointer.expect \
1259 globalbufferannotation.expect \
1262 impabstract.expect \
1270 lintcomments.expect \
1272 longconstants.expect \
1282 mongoincludes.expect \
1283 moreBufferTests.expect \
1284 moreBufferTests2.expect \
1289 nullterminatedtest.expect \
1294 postnotnull.expect \
1302 repexpose.lh.expect \
1305 simplebufferConstraintTests.expect \
1308 slovaknames.expect \
1309 specclauses.expect \
1312 staticarray.expect \
1315 structassign.expect \
1327 unreachable.expect \
1328 unsignedcompare.expect \
1367 ./metastate/global.h \
1368 ./suppressfile/test.h \
1369 ./tests2.2/Makefile.hide \
1370 ./tests2.2/mbool.h \
1371 ./tests2.4/forward.h \
1373 ./tests2.4/timecard.h \
1375 ./tests2.5/bimbim.h \
1376 ./tests2.5/immutable.h \
1377 ./tests2.5/impabsmodule.h \
1378 ./tests2.5/socket.h \
1379 ./Makefile-test.os2 \
1383 ./conditions/Makefile \
1386 ./globalbufferannotation/Makefile \
1388 ./mergestate/Makefile \
1389 ./metastate/Makefile \
1390 ./moreBufferTests/Makefile \
1391 ./simplebufferConstraintTests/Makefile \
1393 ./tainted/Makefile \
1395 ./tests2.2/Makefile.hide \
1396 ./tests2.2/Makefile \
1397 ./tests2.2/Makefile-tests2.2.os2 \
1398 ./tests2.2a/Makefile \
1399 ./tests2.4/Makefile \
1400 ./tests2.4/Makefile-tests2.4.os2 \
1401 ./tests2.5/Makefile \
1402 ./warnuse/Makefile \
1405 ./moreBufferTests2/Makefile \
1406 ./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 \
1407 alias alttypes ansireserved \
1408 db2.old-expect outglob outparam preds union.pp warnuse.old-expect \
1409 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants