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