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