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