]> andersk Git - splint.git/blob - test/Makefile.in
fd5610b230d2da8d2ac25b93c539b0f19231bb45
[splint.git] / test / Makefile.in
1 # Makefile.in generated automatically by automake 1.5 from Makefile.am.
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 # Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 SHELL = @SHELL@
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 bindir = @bindir@
25 sbindir = @sbindir@
26 libexecdir = @libexecdir@
27 datadir = @datadir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
31 libdir = @libdir@
32 infodir = @infodir@
33 mandir = @mandir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 top_builddir = ..
40
41 ACLOCAL = @ACLOCAL@
42 AUTOCONF = @AUTOCONF@
43 AUTOMAKE = @AUTOMAKE@
44 AUTOHEADER = @AUTOHEADER@
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 INSTALL_SCRIPT = @INSTALL_SCRIPT@
50 INSTALL_HEADER = $(INSTALL_DATA)
51 transform = @program_transform_name@
52 NORMAL_INSTALL = :
53 PRE_INSTALL = :
54 POST_INSTALL = :
55 NORMAL_UNINSTALL = :
56 PRE_UNINSTALL = :
57 POST_UNINSTALL = :
58 build_alias = @build_alias@
59 build_triplet = @build@
60 host_alias = @host_alias@
61 host_triplet = @host@
62 target_alias = @target_alias@
63 target_triplet = @target@
64 AMTAR = @AMTAR@
65 AWK = @AWK@
66 BISON = @BISON@
67 CAT = @CAT@
68 CC = @CC@
69 CP = @CP@
70 CPP = @CPP@
71 DEPDIR = @DEPDIR@
72 DIFF = @DIFF@
73 EXEEXT = @EXEEXT@
74 GREP = @GREP@
75 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
76 LCLOBJ = @LCLOBJ@
77 LEX = @LEX@
78 LN_S = @LN_S@
79 MV = @MV@
80 OBJEXT = @OBJEXT@
81 PACKAGE = @PACKAGE@
82 RM = @RM@
83 SED = @SED@
84 VERSION = @VERSION@
85 am__include = @am__include@
86 am__quote = @am__quote@
87 install_sh = @install_sh@
88
89 AUTOMAKE_OPTIONS = 1.5 foreign
90
91 DIFFFLAGS = 
92
93 # -u show context
94
95 #drl 3/27/2002 get the test suit to print a warning when splint is built under /usr/
96
97 #SPLINT    =  valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no $(top_builddir)/src/splint$(EXEEXT)
98 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
99
100 ### These are shell-specific
101
102 ### This is horrible!  Can't we make top_builddir absolute?
103 #SPLINTNEST = valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no ../$(top_builddir)/src/splint$(EXEEXT)
104 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
105 SPLINTPNEST = @$(SPLINTNEST) -nof
106 SPLINTP = @$(SPLINT) -nof
107
108 # Make sure .splintrc files are not used so test results do not
109 # depend on local settings.
110 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
111 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
112
113 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
114 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
115
116
117 ###
118 ### rcfiles not included becuase file names will not match exactly
119 ###
120 UNITTESTS = \
121   help \
122   abstptr abstract alias alttypes ansireserved argorder \
123   args arraydims arrayinit arraylit blocks break cases cast chararraylit charlit clauses commentchar compdestroy \
124   compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
125   decl divzero enum enumtag exports external fields flags forbody format freearray \
126   funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
127   linked lintcomments list loopexec looptesteffect \
128   macros macrosef merge mergenull modifies modtest moduncon \
129   mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
130   parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
131   returned sharing shifts slovaknames \
132   specclauses \
133   special stack staticarray strings \
134   stringliteral \
135   structassign typequals typeof ud ulstypes union unioninit \
136   unnamedsu unreachable unsignedcompare \
137   unused ullint utypes void widestrings
138
139 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
140
141
142 ### warnuse doesn't work yet!
143 SUBDIRTESTS = metastate mergestate tainted fileio \
144    simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
145    maxset strchr for manual\
146 tests2.2 tests2.4 tests2.5 db1 db2 db3
147
148 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
149
150 QUICKTESTS = db3
151
152 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="
153
154
155 #drl temporally take this out.
156 #.PHONY: expects
157 #expects:
158 #       @echo "Saving old expects..."; \
159 #        cat *.expect >expects-`date +"%y-%m-%d-%H"`
160 #       @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
161 #          echo "Making $$TEST.expect..."; \
162 #          $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
163 #          cat $$TEST.expect; \
164 #        done
165 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." )
166
167 #drl 11/29/2001 This is a very ugly hack to get make dist to work
168 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs  \
169               ./abstptr.lcl ./abstptr.lcs \
170               ./alias.lcl ./alias.lcs \
171               ./alias2.lcl ./alias2.lcs \
172               ./alias3.lcl  \
173               ./db1/erc.lcl \
174               ./db1/bool.lcl \
175               ./db1/dbase.lcl \
176               ./db1/employee.lcl \
177               ./db1/empset.lcl \
178               ./db1/eref.lcl \
179               ./db1/ereftab.lcl \
180               ./alias3.lcs \
181               ./alias3.lh  \
182               ./alias4.lcl  \
183               ./alias4.lcs \
184               ./alias4.lh \
185               ./alias5.lcl \
186               ./alias5.lcs \
187               ./alias5.lh \
188               ./argorder2.lcl \
189               ./argorder2.lcs \
190               ./argorder4.lcl \
191               ./argorder4.lcs \
192               ./args.lcl \
193               ./args.lcs \
194               ./cast.lcl \
195               ./cast.lcs \
196               ./decl2.lcl \
197               ./decl2.lcs \
198               ./empty.lcl \
199               ./enum.lcl \
200               ./enum.lcs \
201               ./glob.lcl \
202               ./glob.lcs \
203               ./impabstract.lcl \
204               ./impabstract.lcs \
205               ./iter.lcl \
206               ./iter.lcs \
207               ./macros.lcl \
208               ./macros.lcs \
209               ./macrosef.lcl \
210               ./macrosef.lcs \
211               ./modtest.lcl \
212               ./modtest.lcs \
213               ./mut.lcl \
214               ./mut.lcs \
215               ./mut.lh \
216               ./mut.lh.expect \
217               ./db2/dbase.lcl \
218               ./db2/employee.lcl \
219               ./db2/empset.lcl \
220               ./db2/erc.lcl \
221               ./db2/eref.lcl \
222               ./db2/ereftab.lcl \
223               ./db2/etest.lcl \
224               ./null6.lcd \
225               ./null6.lcl \
226               ./null6.lcs \
227               ./observer.lcl \
228               ./observer.lcs \
229               ./oldstyle.lcl \
230               ./oldstyle.lcs \
231               ./outglob.lcl \
232               ./outglob.lcs \
233               ./outparam.lcl \
234               ./outparam.lcs \
235               ./rc1.splintrc \
236               ./rc2.splintrc \
237               ./rc3.splintrc \
238               ./rc3.splintrc.os2 \
239               ./repexpose.lcl \
240               ./repexpose.lcs \
241               ./repexpose.lh \
242               ./repexpose.lh.expect \
243               ./special.lcl \
244               ./special.lcs \
245               ./db3/.splintrc \
246               ./db3/bool.lcl \
247               ./db3/check.lcl \
248               ./db3/dbase.lcl \
249               ./db3/employee.lcl \
250               ./db3/empset.lcl \
251               ./db3/erc.lcl \
252               ./db3/eref.lcl \
253               ./db3/ereftab.lcl \
254               ./tq.lcl \
255               ./tq.lcs \
256               ./ud2.lcl \
257               ./ud2.lcs \
258               ./for/.splintrc \
259               ./globalbufferannotation/.splintrc \
260               ./maxset/.splintrc \
261               ./strchr/.splintrc \
262               ./tests2.2/bool.lcl \
263               ./tests2.2/bool.lcs \
264               ./tests2.2/libraries.lcd \
265               ./tests2.2/obsolete.lcd \
266               ./tests2.2/oldversion.lcd \
267               ./tests2.4/subdir/main.lcl \
268               ./tests2.4/subdir/main.lcs \
269               ./tests2.5/newlint.lcd \
270               ./warnuse/warnuse.lcd \
271               ./empty.lcs \
272               ./abstptr.c \
273               ./alias.c \
274               ./alias2.c \
275               ./alias3.c \
276               ./db1/dbase.c \
277               ./db1/drive.c \
278               ./db1/employee.c \
279               ./db1/empset.c \
280               ./db1/erc.c \
281               ./db1/eref.c \
282               ./db1/ereftab.c \
283               ./alias4.c \
284               ./alias5.c \
285               ./alttypes.c \
286               ./ansireserved.c \
287               ./ansireserved2.c \
288               ./argorder.c \
289               ./argorder2.c \
290               ./argorder3.c \
291               ./argorder4.c \
292               ./argorder5.c \
293               ./args.c \
294               ./arrayinit.c \
295               ./arraylit.c \
296               ./blocks.c \
297               ./branchstate.c \
298               ./break.c \
299               ./cases.c \
300               ./buffertest1.c \
301               ./cases2.c \
302               ./cast.c \
303               ./cast2.c \
304               ./chararraylit.c \
305               ./charlit.c \
306               ./clauses.c \
307               ./clauses2.c \
308               ./clauses3.c \
309               ./commentchar.c \
310               ./commentcmd.c \
311               ./compdestroy.c \
312               ./compoundliterals.c ./compoundliterals.expect \
313               ./compoundstmt.c ./compoundstmt.expect \
314               ./csyntax.c \
315               ./constannot.c \
316               ./controldepth.c \
317               ./csyntax10.c \
318               ./csyntax11.c \
319               ./csyntax12.c \
320               ./csyntax13.c \
321               ./csyntax14.c \
322               ./csyntax15.c \
323               ./csyntax16.c \
324               ./csyntax17.c \
325               ./csyntax2.c \
326               ./csyntax3.c \
327               ./csyntax4.c \
328               ./csyntax5.c \
329               ./csyntax6.c \
330               ./csyntax7.c \
331               ./csyntax8.c \
332               ./csyntax9.c \
333               ./czechnames.c \
334               ./czechoslovaknames.c \
335               ./deadparam.c \
336               ./decl.c \
337               ./decl2.c \
338               ./dkf5kEnum.c \
339               ./dkf5kRange.c \
340               ./dkf5kSprintf.c \
341               ./ensures.c \
342               ./enum.c \
343               ./enumtag.c \
344               ./exports.c \
345               ./external.c \
346               ./fields.c \
347               ./fields2.c \
348               ./fields3.c \
349               ./flags.c \
350               ./glob.c \
351               ./forbody.c \
352               ./format.c \
353               ./freearray.c \
354               ./funcpointer.c \
355               ./globals.c \
356               ./globals2.c \
357               ./impabstract.c \
358               ./init.c \
359               ./innerfree.c \
360               ./inparam.c \
361               ./internal.c \
362               ./iter.c \
363               ./iter2.c \
364               ./keep.c \
365               ./libs.c \
366               ./linked.c \
367               ./linked2.c \
368               ./linked3.c \
369               ./linked4.c \
370               ./linked5.c \
371               ./linked6.c \
372               ./lintcomments.c \
373               ./list.c \
374               ./longconstants.c \
375               ./macros.c \
376               ./macrosef.c \
377               ./merge.c \
378               ./modclient.c \
379               ./modifies.c \
380               ./modtest.c \
381               ./moduncon.c \
382               ./mongoincludes.c \
383               ./mparen.c \
384               ./mut.c \
385               ./mystrncat.c \
386               ./noeffect.c \
387               ./null1.c \
388               ./null2.c \
389               ./null3.c \
390               ./null4.c \
391               ./null5.c \
392               ./db2/dbase.c \
393               ./db2/drive.c \
394               ./db2/employee.c \
395               ./db2/empset.c \
396               ./db2/erc.c \
397               ./db2/eref.c \
398               ./db2/ereftab.c \
399               ./db2/etest.c \
400               ./null6.c \
401               ./nullassign.c \
402               ./nullret.c \
403               ./observer.c \
404               ./oldstyle.c \
405               ./outglob.c \
406               ./outparam.c \
407               ./postnotnull.c \
408               ./preds.c \
409               ./prefixes.c \
410               ./printflike.c \
411               ./rc.c \
412               ./refcounts.c \
413               ./release.c \
414               ./repexpose.c \
415               ./returned.c \
416               ./sharing1.c \
417               ./sharing2.c \
418               ./sharing3.c \
419               ./sharing4.c \
420               ./sharing5.c \
421               ./sizeof.c \
422               ./slovaknames.c \
423               ./specclauses.c \
424               ./specclauses2.c \
425               ./specclauses3.c \
426               ./specclauses4.c \
427               ./specclauses5.c \
428               ./specclauses6.c \
429               ./special.c \
430               ./stack.c \
431               ./staticarray.c \
432               ./strings.c \
433               ./structassign.c \
434               ./switch.c \
435               ./t1.c \
436               ./test.c \
437               ./db3/dbase.c \
438               ./db3/drive.c \
439               ./db3/employee.c \
440               ./db3/empset.c \
441               ./db3/erc.c \
442               ./db3/eref.c \
443               ./db3/ereftab.c \
444               ./typequals.c \
445               ./ud.c \
446               ./ud2.c \
447               ./ullint.c \
448               ./ulstypes.c \
449               ./union.c \
450               ./unreachable.c \
451               ./unsignedcompare.c \
452               ./unnamedsu.c \
453               ./unused.c \
454               ./void.c \
455               ./conditions/miroslaw.c \
456               ./conditions/releases.c \
457               ./fileio/file.c \
458               ./fileio/filebranch.c \
459               ./fileio/filerw.c \
460               ./for/for.c \
461               ./globalbufferannotation/globalvariable.c \
462               ./maxset/maxsetannotations.c \
463               ./maxset/maxsetnoannotations.c \
464               ./mergestate/taintednm.c \
465               ./metastate/file.c \
466               ./metastate/file1.c \
467               ./metastate/file2.c \
468               ./metastate/file3.c \
469               ./metastate/file4.c \
470               ./metastate/file5.c \
471               ./metastate/file6.c \
472               ./metastate/file7.c \
473               ./metastate/filebad.c \
474               ./metastate/global.c \
475               ./metastate/nullbranch.c \
476               ./metastate/nullbranch2.c \
477               ./metastate/nullret.c \
478               ./metastate/osd.c \
479               ./metastate/sockets.c \
480               ./metastate/sockets2.c \
481               ./metastate/struct.c \
482               ./metastate/test.c \
483               ./metastate/voidptr.c \
484               ./moreBufferTests/initialization.c \
485               ./moreBufferTests/simplifyTest.c \
486               ./moreBufferTests/strncatNotReallyGood.c \
487               ./moreBufferTests/strncatReallyGood.c \
488               ./moreBufferTests/strrchr.c \
489               ./moreBufferTests/unrecogCall.c \
490               ./nullterminatedtest/buggy1.c \
491               ./nullterminatedtest/buggy_support1.c \
492               ./nullterminatedtest/buggy_support_fmakeword.c \
493               ./nullterminatedtest/test1.c \
494               ./nullterminatedtest/test3.c \
495               ./simplebufferConstraintTests/m.c \
496               ./simplebufferConstraintTests/sizeof.c \
497               ./simplebufferConstraintTests/test3.c \
498               ./simplebufferConstraintTests/test7.c \
499               ./sizeoftest/sizeof.c \
500               ./strchr/strchr.c \
501               ./suppressfile/test.c \
502               ./tainted/sprintf.c \
503               ./tainted/t1.c \
504               ./tainted/tainted.c \
505               ./tainted/tainted2.c \
506               ./tainted/tainted3.c \
507               ./tainted/tainted4.c \
508               ./tainted/tainted5.c \
509               ./tainted/taintedimplicit.c \
510               ./tainted/taintedmerge.c \
511               ./tainted/taintedx.c \
512               ./tainted/test.c \
513               ./tclauses/globals.c \
514               ./tclauses/gt.c \
515               ./tclauses/modifies.c \
516               ./tclauses/struct.c \
517               ./tclauses/undef.c \
518               ./tests2.2/arbints.c \
519               ./tests2.2/arrayfcn.c \
520               ./tests2.2/booldef.c \
521               ./tests2.2/boolenum.c \
522               ./tests2.2/boolops.c \
523               ./tests2.2/break.c \
524               ./tests2.2/bstring.c \
525               ./tests2.2/decl.c \
526               ./tests2.2/enumbool.c \
527               ./tests2.2/extension.c \
528               ./tests2.2/libraries.c \
529               ./tests2.2/modarray.c \
530               ./tests2.2/nestext.c \
531               ./tests2.2/offsetof.c \
532               ./tests2.2/posix.c \
533               ./tests2.2/realloc.c \
534               ./tests2.2/rex.c \
535               ./tests2.2/sizeofarray.c \
536               ./tests2.2/struct.c \
537               ./tests2.2a/addassign.c \
538               ./tests2.2a/arrayparam.c \
539               ./tests2.2a/bitops.c \
540               ./tests2.2a/boolcomp.c \
541               ./tests2.2a/boolenum.c \
542               ./tests2.2a/dobb.c \
543               ./tests2.2a/duff.c \
544               ./tests2.2a/erik.c \
545               ./tests2.2a/floatdouble.c \
546               ./tests2.2a/florian.c \
547               ./tests2.2a/fred.c \
548               ./tests2.2a/isalpha.c \
549               ./tests2.2a/notreached.c \
550               ./tests2.2a/obviousloop.c \
551               ./tests2.2a/popik.c \
552               ./tests2.2a/sizeof.c \
553               ./tests2.2a/toralf.c \
554               ./tests2.4/subdir/main.c \
555               ./tests2.4/alignof.c \
556               ./tests2.4/array.c \
557               ./tests2.4/bitfields.c \
558               ./tests2.4/bug1.c \
559               ./tests2.4/bug2.c \
560               ./tests2.4/bug3.c \
561               ./tests2.4/chin.c \
562               ./tests2.4/cpptest.c \
563               ./tests2.4/driverstub.c \
564               ./tests2.4/duffs.c \
565               ./tests2.4/emptycase.c \
566               ./tests2.4/enumtest.c \
567               ./tests2.4/error.c \
568               ./tests2.4/fink.c \
569               ./tests2.4/flagequal.c \
570               ./tests2.4/forward.c \
571               ./tests2.4/hash.c \
572               ./tests2.4/hexconstants.c \
573               ./tests2.4/innercomment.c \
574               ./tests2.4/komazi.c \
575               ./tests2.4/longlong.c \
576               ./tests2.4/main.c \
577               ./tests2.4/nothing.c \
578               ./tests2.4/offsetof.c \
579               ./tests2.4/print.c \
580               ./tests2.4/ric.c \
581               ./tests2.4/syncomment.c \
582               ./tests2.4/syslog.c \
583               ./tests2.4/test0.c \
584               ./tests2.4/test1.c \
585               ./tests2.4/test2.c \
586               ./tests2.4/timecard.c \
587               ./tests2.4/toothman.c \
588               ./tests2.4/ulrich.c \
589               ./tests2.5/badcomment.c \
590               ./tests2.5/boolbad.c \
591               ./tests2.5/boolt.c \
592               ./tests2.5/booltest.c \
593               ./tests2.5/dummyfile.c \
594               ./tests2.5/hoof.c \
595               ./tests2.5/immutable.c \
596               ./tests2.5/impabsmodule.c \
597               ./tests2.5/literals.c \
598               ./tests2.5/quals.c \
599               ./tests2.5/sort.c \
600               ./tests2.5/testalt.c \
601               ./tests2.5/testimmutable.c \
602               ./tests2.5/uconstants.c \
603               ./tests2.5/ull.c \
604               ./warnuse/warnflags.c \
605               ./warnuse/warngets.c \
606               ./warnuse/warnuse.c \
607               ./moreBufferTests2/unknownsize.c \
608               ./moreBufferTests2/arrayConstExpr.c \
609               abstptr.expect \
610               abstract.expect \
611               alias.expect \
612               alttypes.expect \
613               ansireserved.expect \
614               argorder.expect \
615               args.expect \
616               arrayinit.expect \
617               arraylit.expect \
618               blocks.expect \
619               branchstate.expect \
620               break.expect \
621               buffertest.expect \
622               cases.expect \
623               cast.expect \
624               chararraylit.expect \
625               charlit.expect \
626               clauses.expect \
627               commentchar.expect \
628               compdestroy.expect \
629               constannot.expect \
630               controldepth.expect \
631               csyntax.expect \
632               czechnames.expect \
633               czechoslovaknames.expect \
634               db1.expect \
635               db2.expect \
636               db3.expect \
637               deadparam.expect \
638               decl.expect \
639               enum.expect \
640               enumtag.expect \
641               exports.expect \
642               external.expect \
643               fields.expect \
644               fileio.expect \
645               flags.expect \
646               for.expect \
647               forbody.expect \
648               format.expect \
649               freearray.expect \
650               funcpointer.expect \
651               glob.expect \
652               globalbufferannotation.expect \
653               globals.expect \
654               help.expect \
655               impabstract.expect \
656               init.expect \
657               inparam.expect \
658               internal.expect \
659               iter.expect \
660               keep.expect \
661               libs.expect \
662               linked.expect \
663               lintcomments.expect \
664               list.expect \
665               longconstants.expect \
666               macros.expect \
667               macrosef.expect \
668               maxset.expect \
669               merge.expect \
670               mergestate.expect \
671               metastate.expect \
672               modifies.expect \
673               modtest.expect \
674               moduncon.expect \
675               mongoincludes.expect \
676               moreBufferTests.expect \
677               moreBufferTests2.expect \
678               mut.lh.expect \
679               mystrncat.expect \
680               noeffect.expect \
681               null.expect \
682               nullterminatedtest.expect \
683               observer.expect \
684               oldstyle.expect \
685               outglob.expect \
686               outparam.expect \
687               postnotnull.expect \
688               preds.expect \
689               prefixes.expect \
690               printflike.expect \
691               rc.expect \
692               refcounts.expect \
693               release.expect \
694               repexpose.expect \
695               repexpose.lh.expect \
696               returned.expect \
697               sharing.expect \
698               simplebufferConstraintTests.expect \
699               sizeof.expect \
700               sizeoftest.expect \
701               slovaknames.expect \
702               specclauses.expect \
703               special.expect \
704               stack.expect \
705               staticarray.expect \
706               strchr.expect \
707               strings.expect \
708               structassign.expect \
709               tainted.expect \
710               tests2.2.expect \
711               tests2.2a.expect \
712               tests2.3.expect \
713               tests2.4.expect \
714               tests2.5.expect \
715               typequals.expect \
716               ud.expect \
717               ullint.expect \
718               ulstypes.expect \
719               union.expect \
720               unnamedsu.expect \
721               unreachable.expect \
722               unsignedcompare.expect \
723               unused.expect \
724               void.expect \
725               ./db1/bool.h \
726               ./db1/dbase.h \
727               ./db1/employee.h \
728               ./db1/empset.h \
729               ./db1/erc.h \
730               ./db1/eref.h \
731               ./db1/ereftab.h \
732               ./bool.h \
733               ./decl2.h \
734               ./exports.h \
735               ./iter.h \
736               ./iter2.h \
737               ./minc1.h \
738               ./minc2.h \
739               ./minc3.h \
740               ./minc4.h \
741               ./minc5.h \
742               ./modifies.h \
743               ./mut.h \
744               ./db2/bool.h \
745               ./db2/dbase.h \
746               ./db2/employee.h \
747               ./db2/empset.h \
748               ./db2/erc.h \
749               ./db2/eref.h \
750               ./db2/ereftab.h \
751               ./pivo.h \
752               ./repexpose.h \
753               ./db3/bool.h \
754               ./db3/dbase.h \
755               ./db3/employee.h \
756               ./db3/empset.h \
757               ./db3/erc.h \
758               ./db3/eref.h \
759               ./db3/ereftab.h \
760               ./tq.h \
761               ./metastate/global.h \
762               ./suppressfile/test.h \
763               ./tests2.2/mbool.h \
764               ./tests2.4/forward.h \
765               ./tests2.4/hash.h \
766               ./tests2.4/timecard.h \
767               ./tests2.5/baz.h \
768               ./tests2.5/bimbim.h \
769               ./tests2.5/immutable.h \
770               ./tests2.5/impabsmodule.h \
771               ./tests2.5/socket.h \
772               ./Makefile-test.os2 \
773               ./db1/Makefile \
774               ./db2/Makefile \
775               ./db3/Makefile \
776               ./conditions/Makefile \
777               ./fileio/Makefile \
778               ./for/Makefile \
779               ./globalbufferannotation/Makefile \
780               ./maxset/Makefile \
781               ./mergestate/Makefile \
782               ./metastate/Makefile \
783               ./moreBufferTests/Makefile \
784               ./simplebufferConstraintTests/Makefile \
785               ./strchr/Makefile \
786               ./tainted/Makefile \
787               ./temp/Makefile \
788               ./tests2.2/Makefile \
789               ./tests2.2/Makefile-tests2.2.os2 \
790               ./tests2.4/Makefile \
791               ./tests2.4/Makefile-tests2.4.os2 \
792               ./tests2.5/Makefile \
793               ./warnuse/Makefile \
794               ./Makefile.am \
795               ./Makefile.in \
796               ./moreBufferTests2/Makefile \
797               ./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 \
798                 db2.old-expect   union.pp warnuse.old-expect \
799                ./tests2.5/badcomment  ./tests2.5/boolbad  ./tests2.5/booltest   ./tests2.5/uconstants  loopexec.expect mergenull.expect shifts.expect looptesteffect.expect \
800                 unioninit.expect  unioninit.c utypes.c \
801                 utypes.expect widestrings.expect  widestrings.c  \
802                 functionmacro.expect functionmacro.c  info.c info.expect \
803                 loopexec.c looptesteffect.c mergenull.c shifts.c \
804                 manual.expect ./manual/Makefile \
805                 ./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 \
806                   arraydims.expect arraydims.c \
807                   moreBufferTests2/fixedArrayType.c oldstyle2.c \
808                   divzero.expect parentype.expect \
809                   divzero.c parentype.c \
810 stringliteral.expect  stringliteral.c
811
812 subdir = test
813 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
814 CONFIG_HEADER = $(top_builddir)/config.h
815 CONFIG_CLEAN_FILES =
816 DIST_SOURCES =
817 DIST_COMMON = Makefile.am Makefile.in
818 all: all-am
819
820 .SUFFIXES:
821 .SUFFIXES: .c .diff .expect
822 $(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
823         cd $(top_srcdir) && \
824           $(AUTOMAKE) --foreign  test/Makefile
825 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
826         cd $(top_builddir) && \
827           CONFIG_HEADERS= CONFIG_LINKS= \
828           CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
829 uninstall-info-am:
830 tags: TAGS
831 TAGS:
832
833
834 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
835
836 top_distdir = ..
837 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
838
839 distdir: $(DISTFILES)
840         $(mkinstalldirs) $(distdir)/./conditions $(distdir)/./db1 $(distdir)/./db2 $(distdir)/./db3 $(distdir)/./fileio $(distdir)/./for $(distdir)/./globalbufferannotation $(distdir)/./manual $(distdir)/./maxset $(distdir)/./mergestate $(distdir)/./metastate $(distdir)/./moreBufferTests $(distdir)/./moreBufferTests2 $(distdir)/./nullterminatedtest $(distdir)/./simplebufferConstraintTests $(distdir)/./sizeoftest $(distdir)/./strchr $(distdir)/./suppressfile $(distdir)/./tainted $(distdir)/./tclauses $(distdir)/./temp $(distdir)/./tests2.2 $(distdir)/./tests2.2a $(distdir)/./tests2.4 $(distdir)/./tests2.4/subdir $(distdir)/./tests2.5 $(distdir)/./warnuse $(distdir)/moreBufferTests2
841         @for file in $(DISTFILES); do \
842           if test -f $$file; then d=.; else d=$(srcdir); fi; \
843           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
844           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
845             $(mkinstalldirs) "$(distdir)/$$dir"; \
846           fi; \
847           if test -d $$d/$$file; then \
848             cp -pR $$d/$$file $(distdir) \
849             || exit 1; \
850           else \
851             test -f $(distdir)/$$file \
852             || cp -p $$d/$$file $(distdir)/$$file \
853             || exit 1; \
854           fi; \
855         done
856 check-am: all-am
857 check: check-am
858 all-am: Makefile
859
860 installdirs:
861
862 install: install-am
863 install-exec: install-exec-am
864 install-data: install-data-am
865 uninstall: uninstall-am
866
867 install-am: all-am
868         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
869
870 installcheck: installcheck-am
871 install-strip:
872         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
873           `test -z '$(STRIP)' || \
874             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
875 mostlyclean-generic:
876
877 clean-generic:
878
879 distclean-generic:
880         -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
881
882 maintainer-clean-generic:
883         @echo "This command is intended for maintainers to use"
884         @echo "it deletes files that may require special tools to rebuild."
885 clean: clean-am
886
887 clean-am: clean-generic clean-local mostlyclean-am
888
889 distclean: distclean-am
890
891 distclean-am: clean-am distclean-generic
892
893 dvi: dvi-am
894
895 dvi-am:
896
897 info: info-am
898
899 info-am:
900
901 install-data-am:
902
903 install-exec-am:
904
905 install-info: install-info-am
906
907 install-man:
908
909 installcheck-am:
910
911 maintainer-clean: maintainer-clean-am
912
913 maintainer-clean-am: distclean-am maintainer-clean-generic
914
915 mostlyclean: mostlyclean-am
916
917 mostlyclean-am: mostlyclean-generic
918
919 uninstall-am: uninstall-info-am
920
921 .PHONY: all all-am check check-am clean clean-generic clean-local \
922         distclean distclean-generic distdir dvi dvi-am info info-am \
923         install install-am install-data install-data-am install-exec \
924         install-exec-am install-info install-info-am install-man \
925         install-strip installcheck installcheck-am installdirs \
926         maintainer-clean maintainer-clean-generic mostlyclean \
927         mostlyclean-generic uninstall uninstall-am uninstall-info-am
928
929
930 .PHONY: all check
931 all check: fulltest
932
933 .PHONY: version
934 version:
935         -$(SPLINT) -help version
936
937 .PHONY: help
938
939 help:
940         -@$(SPLINT)
941         -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
942         -@$(SPLINT) -help
943         -@$(SPLINTP) -asdf
944         -@$(SPLINTP) +boolint +boolint 
945         -@$(SPLINT) -help flags alpha
946
947 #commenting these out for the release because they will almost always fail
948 #since the default will only fit one system
949 #Don't want to panic the user... 
950 #       -@$(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> "
951 #       -@$(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> "
952 #       -@$(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> "
953
954 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
955
956 .PHONY: clean-local
957 clean-local:
958         -rm -f *~ #*# *.o *.lcs a.out
959         -cd db1; $(MAKE) clean
960         -cd db2; $(MAKE) clean
961         -cd db3; $(MAKE) clean
962
963 $(SPLINTTESTS): $(SPLINT)
964
965 $(SPLINT):
966         cd $(top_builddir)/src; $(MAKE)
967
968 .c.expect:
969         $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
970
971 .c.diff:
972         $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
973
974 .PHONY: quicktest
975 quicktest:
976         $(CheckSystemDir)       
977         @for TEST in $(QUICKTESTS); do \
978            echo "Checking $$TEST..."; \
979            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
980              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
981                echo "*** FAIL ***"; \
982          done
983
984 .PHONY: fulltest
985 fulltest:
986         @echo "Testing $(PACKAGE) $(VERSION)..."
987         @echo
988         @echo "Version Info:"
989         @$(SPLINT) -help version
990         @$(SPLINT) -help vars
991         @echo ""
992         @echo "Tests:"
993         @echo ""
994         @for TEST in $(SPLINTTESTS); do \
995            echo "Checking $$TEST..."; \
996            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
997              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
998                echo "*** FAIL ***"; \
999          done
1000
1001 ### Rules for tests start here
1002
1003 .PHONY: abstptr
1004 abstptr:
1005         -$(SPLINTR) abstptr -expect 9
1006         -$(SPLINTR) abstptr +voidabstract -expect 6
1007
1008 .PHONY: abstract
1009 abstract:
1010         -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
1011
1012 .PHONY: alias
1013 alias:
1014         -$(SPLINTR) +lh mut
1015         -$(SPLINTR) mut alias +globalias -expect 19
1016         -$(SPLINTR) mut alias2 +globalias -expect 17
1017         -$(SPLINTR) +lh alias3 -expect 14 
1018         -$(SPLINTR) +lh alias4 +boolint
1019         -$(SPLINTR) alias4 -pred +retalias -expect 6
1020         -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
1021
1022 .PHONY: alttypes
1023 alttypes:
1024         -$(SPLINTR) alttypes.c -expect 2
1025
1026 ###
1027 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
1028 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
1029 ###    variable (could be a macro?)
1030 ### Reports 3 additional errors for +checks; no longer suppresses name errors
1031 ###    in the presense of other errors.
1032 ###
1033
1034 .PHONY: ansireserved
1035 ansireserved:
1036         -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
1037         -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
1038         -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
1039         -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
1040
1041 .PHONY: argorder
1042 argorder:
1043         -$(SPLINTR) argorder.c -expect 4
1044         -$(SPLINTR) argorder2  -expect 5
1045         -$(SPLINTR) argorder3.c -expect 8
1046         -$(SPLINTR) argorder4 -expect 9
1047         -$(SPLINTR) argorder4 -evalorder -expect 1
1048         -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
1049
1050 .PHONY: args
1051 args:
1052         -$(SPLINTR) args -noeffect -expect 12
1053
1054 .PHONY: arraydims
1055 arraydims:
1056         -$(SPLINTR) arraydims.c -varuse -expect 2
1057         -$(SPLINTR) arraydims.c -initsize -varuse
1058
1059 .PHONY: arrayinit
1060 arrayinit:
1061         -$(SPLINTR) arrayinit.c -expect 9
1062
1063 .PHONY: arraylit
1064 arraylit:
1065         -$(SPLINTR) arraylit.c -expect 2
1066         -$(SPLINTR) arraylit.c +stringliteralsmaller -expect 4
1067
1068 .PHONY: blocks
1069 blocks:
1070         -$(SPLINTR) blocks.c -expect 4
1071         -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
1072         -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
1073         -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
1074         -$(SPLINTR) blocks.c +allempty -expect 6
1075         -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
1076
1077 .PHONY: break
1078 break:
1079         -$(SPLINTR) break.c -expect 4
1080         -$(SPLINTR) break.c +deepbreak -expect 6
1081         -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
1082
1083 .PHONY: cases
1084 cases: 
1085         -$(SPLINTR) cases.c -expect 5
1086         -$(SPLINTR) cases2.c -expect 2
1087         -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
1088         -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
1089
1090 .PHONY: cast
1091 cast:
1092         -$(SPLINTR) cast -accessmodule -expect 20
1093         -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
1094
1095 .PHONY: chararraylit
1096 chararraylit:
1097         -$(SPLINTR) chararraylit.c -expect 2
1098
1099 ### Two addition errors detected with 2.5 with -numliteral.
1100
1101 .PHONY: charlit
1102 charlit:
1103         -$(SPLINTR) +hints charlit.c -expect 4
1104         -$(SPLINTR) +hints -numliteral charlit.c -expect 6
1105         -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
1106
1107 .PHONY: clauses
1108 clauses: 
1109         -$(SPLINTR) clauses.c +memchecks -expect 4
1110         -$(SPLINTR) clauses2.c +memchecks 
1111         -$(SPLINTR) clauses3.c +memchecks -expect 2
1112         -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
1113
1114 .PHONY: commentchar
1115 commentchar:
1116         -$(SPLINTR) commentchar.c -expect 4
1117         -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
1118
1119 .PHONY: controldepth
1120 controldepth:
1121         -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
1122         -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
1123
1124 .PHONY: compdestroy
1125 compdestroy:
1126         -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
1127         -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
1128         -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
1129         -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
1130
1131 .PHONY: compoundliterals
1132 compoundliterals:
1133         ${SPLINTRN} compoundliterals.c 
1134
1135 .PHONY: compoundstmt
1136 compoundstmt:
1137         ${SPLINTRN} compoundstmt.c -expect 3
1138
1139 .PHONY: constannot
1140 constannot:
1141         ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
1142
1143 .PHONY: csyntax
1144 csyntax:
1145         -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1 
1146         -$(SPLINTR) +quiet csyntax2.c -expect 2
1147         -$(SPLINTR) +quiet csyntax3.c -expect 1
1148         -$(SPLINTR) +quiet -incondefs csyntax4.c
1149         -$(SPLINTR) +quiet csyntax5.c
1150         -$(SPLINTR) +quiet csyntax6.c
1151         -$(SPLINTR) +quiet csyntax7.c
1152         -$(SPLINTR) +quiet csyntax8.c
1153         -$(SPLINTR) +quiet csyntax9.c
1154         -$(SPLINTR) +quiet csyntax10.c
1155         -$(SPLINTR) +quiet csyntax11.c
1156         -$(SPLINTR) +quiet csyntax12.c
1157         -$(SPLINTR) +quiet csyntax13.c -expect 1
1158         -$(SPLINTR) +quiet csyntax14.c
1159         -$(SPLINTR) +quiet csyntax15.c
1160         -$(SPLINTR) +quiet csyntax16.c -expect 2
1161         -$(SPLINTR) +quiet csyntax17.c -expect 3
1162
1163 .PHONY: czechnames
1164 czechnames:
1165         -$(SPLINTR) czechnames.c
1166         -$(SPLINTR) +hints +czech czechnames.c -expect 2
1167         -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
1168         -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
1169
1170 .PHONY: czechoslovaknames
1171 czechoslovaknames:
1172         -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
1173         -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
1174         -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
1175
1176 ###
1177 ### deadparam added 2001-05-27
1178 ###
1179
1180 .PHONY: deadparam
1181 deadparam:
1182         ${SPLINTR} deadparam.c -expect 3
1183
1184 #
1185 # Was expect 3 before 2.4.  Earlier versions did not handle implicit
1186 # function pointers correctly.
1187 #
1188
1189 .PHONY: decl
1190 decl:
1191         -$(SPLINTR) decl.c -expect 2
1192         -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
1193         -$(SPLINTR) decl2 -expect 4
1194
1195 .PHONY: divzero
1196 divzero:
1197         -$(SPLINTR) divzero.c -varuse -expect 0
1198
1199 .PHONY: enum
1200 enum:
1201         -$(SPLINTR) enum -expect 16
1202         -$(SPLINTR) enum -misscase -expect 14
1203
1204 .PHONY: enumtag
1205 enumtag:
1206         -$(SPLINTR) enumtag.c -expect 2
1207
1208 .PHONY: exports
1209 exports:
1210         -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
1211         -$(SPLINTR) exports.c +exportany -expect 3
1212         -$(SPLINTR) exports.c
1213
1214 .PHONY: external
1215 external:
1216         -$(SPLINTR) external.c +partial
1217         -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
1218         -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
1219         -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
1220         -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
1221
1222 .PHONY: fields
1223 fields:
1224         -$(SPLINTR) fields.c +memchecks -expect 6
1225         -$(SPLINTR) fields2.c +memchecks -expect 5
1226         -$(SPLINTR) fields3.c +memchecks
1227
1228 .PHONY: flags
1229 flags:
1230         -$(SPLINTR) flags.c -expect 8
1231         -$(SPLINTR) +nocomments flags.c -expect 2
1232
1233 ### Added 2001-06-02
1234
1235 .PHONY: forbody
1236 forbody:
1237         ${SPLINTR} forbody.c -expect 2
1238
1239 ### Added 2001-06-03
1240 .PHONY: format
1241 format:
1242         ${SPLINTR} format.c -expect 3
1243         ${SPLINTR} format.c -formatconst 
1244
1245 # two new errors (invalid lhs)
1246
1247 .PHONY: funcpointer
1248 funcpointer:
1249         -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
1250
1251 .PHONY: functionmacro
1252 functionmacro:
1253         -$(SPLINTR) functionmacro.c -expect 2
1254
1255 .PHONY: glob
1256 glob:
1257         -$(SPLINTR) glob -expect 4
1258         -$(SPLINTR) glob -globuse -expect 3
1259         -$(SPLINTR) glob +globunspec -expect 6
1260
1261 .PHONY: globals
1262 globals:
1263         -$(SPLINTR) -modifies globals.c -expect 5
1264         -$(SPLINTR) -modifies globals.c +allglobals -expect 6
1265         -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
1266         -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
1267         -$(SPLINTR) -modifies globals.c +globunspec -expect 6
1268         -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
1269
1270 # Was -accessfile
1271 .PHONY: impabstract
1272 impabstract: 
1273         -$(SPLINTR) -accessmodule impabstract.c 
1274         -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
1275         -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
1276
1277 ###
1278 ### evans 2001-12-30: Handle unrecognized pre-processor directives
1279 ###    (Reported by Pierluigi Sanzani)
1280
1281 .PHONY: info
1282 info:
1283         ${SPLINTR} info.c -expect 4
1284
1285 ### evans 2001-10-14: Expected errors updated
1286 .PHONY: init
1287 init:
1288         -$(SPLINTR) init.c -expect 14
1289         -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
1290
1291 .PHONY: inparam
1292 inparam:
1293         -$(SPLINTR) inparam.c -expect 2
1294         -$(SPLINTR) +impouts inparam.c -expect 1
1295
1296 .PHONY: internal
1297 internal:
1298         -$(SPLINTR) internal.c -expect 1
1299         -$(SPLINTR) internal.c +distinctinternalnames -expect 1
1300         -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
1301         -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
1302         -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
1303         -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
1304
1305 ###
1306 ### iter
1307 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
1308 ### 
1309
1310 .PHONY: iter
1311 iter:
1312         -$(SPLINTR) iter -expect 14 -lclexpect 1
1313         -$(SPLINTR) iter2.c -expect 12
1314
1315 .PHONY: keep
1316 keep:
1317         -$(SPLINTR) keep.c +memchecks -expect 6
1318
1319 ### libs
1320 ### 2001-05-22: 2 new errors found (fixed spec of signal)
1321 ### 2001-05-30: 3 new errors found (formatconst)
1322 ### 2002-07-08: 2 new errors found (getc modifies errno)
1323
1324 .PHONY: libs
1325 libs:
1326         -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
1327         -$(SPLINTR) libs.c -expect 22
1328         -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
1329         -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 44
1330
1331 .PHONY: lintcomments
1332 lintcomments:
1333         -$(SPLINTR) lintcomments.c -expect 5
1334         -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
1335         -$(SPLINTR) lintcomments.c -lintcomments -expect 4
1336
1337 .PHONY: list
1338 list:
1339         -$(SPLINTR) list.c -expect 3
1340
1341 ###
1342 ### 2002-01-01: Added test case for obvious loop execution.
1343 ###
1344
1345 .PHONY: loopexec
1346 loopexec:
1347         -$(SPLINTR) loopexec.c -expect 1
1348         -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
1349
1350 .PHONY: looptesteffect
1351 looptesteffect:
1352         -$(SPLINTR) looptesteffect.c -expect 1
1353
1354 .PHONY: macros
1355 macros:
1356         -$(SPLINTR) macros -expect 17 
1357         -$(SPLINTR) macros.c +allmacros -expect 34
1358         -$(SPLINTR) macros.c +fcnmacros -expect 31
1359
1360 .PHONY: macrosef
1361 macrosef:
1362         -$(SPLINTR) macrosef -expect 4
1363         -$(SPLINTR) macrosef.c +allmacros -expect 3
1364         -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
1365
1366 .PHONY: merge
1367 merge:
1368         -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
1369
1370 .PHONY: mergenull
1371 mergenull:
1372         -$(SPLINTRN) mergenull.c 
1373
1374 .PHONY: modifies
1375 modifies:
1376         -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
1377
1378 .PHONY: modtest
1379 modtest:
1380         -$(SPLINTR) modtest -expect 10
1381         -$(SPLINTR) modtest +modunspec -expect 13
1382         -$(SPLINTR) modtest +mustmod -expect 14
1383
1384 .PHONY: moduncon
1385 moduncon:
1386         -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
1387         -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
1388
1389 .PHONY: mongoincludes
1390 mongoincludes:
1391         -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
1392         -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
1393         -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
1394         -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
1395         -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
1396
1397 .PHONY: mystrncat
1398 mystrncat:
1399         -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4 
1400
1401 .PHONY: noeffect
1402 noeffect:
1403         ${SPLINTP} noeffect.c +allmacros +checks -expect 3
1404
1405 ###
1406 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
1407 ###                         checking detects one new error
1408 ###
1409
1410 .PHONY: null
1411 null: 
1412         -$(SPLINTR) null1.c -expect 15
1413         -$(SPLINTR) null1.c -null -mustdefine -expect 4
1414         -$(SPLINTR) null2.c -expect 11
1415         -$(SPLINTR) null3.c -expect 15
1416         -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
1417         -$(SPLINTR) null4.c -expect 1
1418         -$(SPLINTR) null5.c -expect 4
1419         -$(SPLINTR) null6 -expect 4
1420         -$(SPLINTR) +quiet null6.lcl -dump null6
1421         -$(SPLINTR) null6.c -load null6 -expect 4
1422
1423 ### Added for 3.0 (bugs reported by Kevin Broady)
1424
1425 .PHONY: nullret
1426 nullret:
1427         -$(SPLINTR) nullret.c -expect 2
1428         -$(SPLINTR) -nullret nullret.c -expect 1
1429
1430 .PHONY: nullassign
1431 nullassign:
1432         -$(SPLINTR) nullassign.c -expect 2
1433         -$(SPLINTR) -nullassign nullassign.c -expect 1
1434
1435 #
1436 # Before 2.4, expected one more because error was reported both as 
1437 # dependent and observer.
1438 #
1439
1440 .PHONY: observer
1441 observer:
1442         -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
1443         -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
1444         -$(SPLINTR) observer.c -expect 7
1445
1446 .PHONY: oldstyle
1447 oldstyle:
1448         -$(SPLINTR) oldstyle oldstyle2.c -expect 5
1449
1450 .PHONY: outglob
1451 outglob:
1452         -$(SPLINTR) outglob -expect 10
1453
1454 .PHONY: outparam
1455 outparam:
1456         -$(SPLINTR) outparam -expect 12
1457
1458 ### evans 2001-08-26: postnotnull new
1459
1460 .PHONY: postnotnull
1461 postnotnull:
1462         ${SPLINTR} postnotnull.c -expect 1
1463
1464 ### evans 2002-02-09: added parentype.c
1465 .PHONY: parentype
1466 parentype:
1467         ${SPLINTR} parentype.c 
1468
1469 #
1470 # Four new +fcnuse errors for -strict (evans 2001-07-22)
1471
1472
1473 .PHONY: preds
1474 preds:
1475         -$(SPLINTR) +hints preds.c -expect 6
1476         -$(SPLINTRN) +hints preds.c -weak -expect 1
1477         -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
1478
1479 .PHONY: prefixes
1480 prefixes:
1481         -$(SPLINTR) prefixes.c +partial
1482         -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
1483         -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
1484         -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
1485         -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
1486         -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
1487         -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
1488         -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
1489         -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
1490         -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
1491         -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
1492         -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
1493         -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
1494         -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
1495         -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
1496         -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
1497
1498 .PHONY: printflike
1499 printflike:
1500         -$(SPLINTR) printflike.c -expect 6
1501         -$(SPLINTR) printflike.c -warnlintcomments -expect 5
1502
1503 .PHONY: rc
1504 rc:
1505         -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
1506         -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
1507         -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
1508         -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
1509         -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
1510
1511 .PHONY: rcfiles
1512 rcfiles:
1513         cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
1514
1515 .PHONY: refcounts
1516 refcounts:
1517         -$(SPLINTR) refcounts.c -expect 7 
1518
1519 .PHONY: release
1520 release:
1521         -$(SPLINTR) release.c +memchecks -expect 1
1522
1523 .PHONY: repexpose
1524 repexpose:
1525         -$(SPLINTR) +lh repexpose +memchecks -expect 12
1526         -$(SPLINTR) repexpose +memchecks +retalias -expect 15
1527         -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
1528
1529 ### returned added 2001-05-27
1530 ### (Bug discovered checking splint sources.)
1531
1532 .PHONY: returned
1533 returned:
1534         ${SPLINTR} returned.c -expect 1
1535
1536 .PHONY: sharing
1537 sharing: 
1538         -$(SPLINTR) sharing1.c -expect 21
1539         -$(SPLINTR) sharing3.c -expect  3
1540         -$(SPLINTR) sharing4.c -expect 13
1541         -$(SPLINTR) sharing4.c -paramimptemp -expect 12
1542         -$(SPLINTR) sharing5.c -expect 6
1543
1544 .PHONY: shifts
1545 shifts:
1546         -$(SPLINTR) shifts.c -expect 4
1547         -$(SPLINTR) shifts.c -shiftimplementation -expect 3
1548         -$(SPLINTR) shifts.c -shiftnegative -expect 1
1549
1550 .PHONY: slovaknames
1551 slovaknames:
1552         -$(SPLINTR) +hints slovaknames.c -expect 1
1553         -$(SPLINTR) +hints slovaknames.c +accessslovak 
1554         -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
1555         -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
1556         -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
1557
1558 .PHONY: specclauses
1559 specclauses:
1560         -$(SPLINTR) specclauses.c -expect 6
1561         -$(SPLINTR) specclauses2.c -expect 8
1562         -$(SPLINTR) specclauses3.c -expect 5
1563         -$(SPLINTR) specclauses4.c -expect 3
1564         -$(SPLINTR) specclauses5.c -expect 3
1565
1566 .PHONY: specclauses1
1567 specclauses1:
1568         -$(SPLINTR) specclauses.c -expect 6
1569
1570 .PHONY: specclauses2
1571 specclauses2:
1572         -$(SPLINTR) specclauses2.c -expect 8
1573
1574 .PHONY: specclauses3
1575 specclauses3:
1576         -$(SPLINTR) specclauses3.c -expect 6
1577
1578 .PHONY: specclauses4
1579 specclauses4:
1580         -$(SPLINTR) specclauses4.c -expect 3
1581
1582 .PHONY: specclauses5
1583 specclauses5:
1584         -$(SPLINTR) specclauses5.c -expect 3
1585
1586 .PHONY: special
1587 special:
1588         -$(SPLINTR) special -expect 20
1589         -$(SPLINTR) special -relaxquals -expect 22
1590
1591 .PHONY: stack
1592 stack:
1593         -$(SPLINTR) stack.c -expect 5
1594         -$(SPLINTR) stack.c -stackref
1595
1596 .PHONY: staticarray
1597 staticarray:
1598         -$(SPLINTR) staticarray.c -expect 3
1599
1600 ###
1601 ### evans 2002-03-16: Default setting of stringliteralnoroomfinalnull changed
1602 ### 
1603
1604 .PHONY: stringliteral
1605 stringliteral:
1606         -$(SPLINTR) stringliteral.c -stringliteralnoroomfinalnull -expect 3
1607         -$(SPLINTR) stringliteral.c -expect 4
1608
1609 .PHONY: strings
1610 strings:
1611         -$(SPLINTR) strings.c -expect 3
1612         -$(SPLINTR) -readonlystrings -expect 1 strings.c
1613         -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
1614
1615 .PHONY: structassign
1616 structassign:
1617         -$(SPLINTR) structassign.c -expect 4
1618
1619 .PHONY: typeof
1620 typeof:
1621         -$(SPLINTR) typeof.c -expect 2
1622
1623 .PHONY: typequals
1624 typequals:
1625         -$(SPLINTR) typequals.c tq.lcl -expect 5
1626         -$(SPLINTR) typequals.c -expect 2
1627
1628 .PHONY: ud
1629 ud:
1630         -$(SPLINTR) ud.c -expect 9
1631         -$(SPLINTR) ud2 -specundef -expect 3
1632
1633 .PHONY: ulstypes
1634 ulstypes:
1635         -$(SPLINTR) ulstypes.c -expect 8
1636         -$(SPLINTR) ulstypes.c +ignorequals 
1637         -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
1638
1639 # 3 more detected with version 2.5 (change in -numliteral setting)
1640
1641 .PHONY: union
1642 union:
1643         -$(SPLINTR) +memchecks union.c -expect 8
1644
1645 ###
1646 ### Added 2001-12-30: fixed union initializer checking in response to
1647 ### bug report from Jim Zelenka.
1648 ###
1649
1650 .PHONY: unioninit
1651 unioninit:
1652         -$(SPLINTR) unioninit.c -expect 2
1653
1654 .PHONY: unnamedsu
1655 unnamedsu:
1656         -$(SPLINTR) unnamedsu.c -expect 0
1657
1658 .PHONY: unreachable
1659 unreachable:
1660         -$(SPLINTR) unreachable.c -expect 5
1661         -$(SPLINTR) -unreachable unreachable.c -expect 2
1662         -$(SPLINTR) switch.c -expect 4
1663
1664 .PHONY: unsignedcompare
1665 unsignedcompare:
1666         ${SPLINTR} +posixlib unsignedcompare.c -expect 4
1667
1668 ###
1669 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
1670 ###
1671
1672 .PHONY: unused
1673 unused:
1674         -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
1675         -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
1676
1677 ###
1678 ### 2001-06-10: Provided by Jim Zalenka
1679 ###
1680
1681 .PHONY: ullint
1682 ullint:
1683         ${SPLINTRN} ullint.c -expect 5
1684         ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
1685
1686 ###
1687 ### 2001-12-30: Poor warnings reported by Peter Deutsch
1688 ###
1689 ### 2002-07-03: removed warnings for datatype/macro definitions
1690 ###
1691
1692 .PHONY: utypes
1693 utypes:
1694         ${SPLINTRN} utypes.c -expect 2
1695
1696 ###
1697
1698 .PHONY: void
1699 void:
1700         ${SPLINTRN} void.c -expect 2
1701
1702 ###
1703 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
1704 ###
1705
1706 .PHONY: widestrings
1707 widestrings:
1708         ${SPLINTRN} widestrings.c -expect 2
1709
1710 ###
1711 ### New since 2.5q:
1712 ###
1713
1714 .PHONY: linked
1715 linked:
1716         ${SPLINTR} linked.c -expect 4
1717         ${SPLINTR} linked2.c -expect 3
1718         ${SPLINTR} linked3.c -expect 5
1719         ${SPLINTR} linked4.c -expect 6
1720         ${SPLINTR} linked5.c -expect 4
1721         ${SPLINTR} linked6.c -expect 4
1722
1723 .PHONY: freearray
1724 freearray:
1725         ${SPLINTR} freearray.c -expect 1
1726
1727 .PHONY: sizeof
1728 sizeof:
1729         -$(SPLINTR) +bounds sizeof.c -expect 1
1730
1731 .PHONY: buffertest
1732 buffertest:
1733         -$(SPLINTR) +bounds buffertest1.c -expect 5
1734
1735 .PHONY: $(SUBDIRTESTS)
1736 $(SUBDIRTESTS):
1737         cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
1738 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1739 # Otherwise a system limit (for SysV at least) may be exceeded.
1740 .NOEXPORT:
This page took 2.753119 seconds and 3 git commands to generate.