compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
decl divzero enum enumtag exports external fields flags forbody format freearray \
funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
- linked lintcomments list loopexec looptesteffect \
+ linked lintcomments list longint loopexec looptesteffect \
macros macrosef merge mergenull modifies modtest moduncon \
- mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
+ mongoincludes mystrncat noeffect null nullret nullassign numabstract observer oldstyle outglob outparam \
parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
returned sharing shifts sizesigns slovaknames \
specclauses \
SUBDIRTESTS = metastate mergestate tainted fileio \
simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
- maxset strchr for manual
+ maxset strchr sizeoftest for manual
### warnuse doesn't work yet!
SUBDIRTESTS += tests2.2
-@$(SPLINTP) +boolint +boolint
-@$(SPLINT) -help flags alpha
-
#commenting these out for the release because they will almost always fail
#since the default will only fit one system
#Don't want to panic the user...
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="
+#drl 12/07/2002 These rules for .c and .expect files don't make sense
+# and they are confusing make dist so I'm taking them out.
+
## Not real C code
-.c.expect:
- $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
+#.c.expect:
+# $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
+#
+#.c.diff:
+# $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
-.c.diff:
- $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
#drl temporally take this out.
#.PHONY: expects
### Two addition errors detected with 2.5 with -numliteral.
+### evans 2002-12-15: finds one more but in charlit
.PHONY: charlit
charlit:
-$(SPLINTR) +hints charlit.c -expect 4
-$(SPLINTR) +hints -numliteral charlit.c -expect 6
- -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
+ -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns -expect 1
.PHONY: clauses
clauses:
list:
-$(SPLINTR) list.c -expect 3
+###
+### 2002-12-12: Added test case for +longint and +shortint flags
+###
+
+.PHONY: longint
+longint:
+ -$(SPLINTR) longint.c -expect 3
+ -$(SPLINTR) longint.c +longint -expect 2
+ -$(SPLINTR) longint.c +shortint -expect 2
+ -$(SPLINTR) longint.c +shortint +longint -expect 0
+
###
### 2002-01-01: Added test case for obvious loop execution.
###
-$(SPLINTR) null1.c -null -mustdefine -expect 4
-$(SPLINTR) null2.c -expect 11
-$(SPLINTR) null3.c -expect 15
- -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
+ -$(SPLINTR) null3.c +unixlib -expect 16
-$(SPLINTR) null4.c -expect 1
-$(SPLINTR) null5.c -expect 4
-$(SPLINTR) null6 -expect 4
.PHONY: nullret
nullret:
-$(SPLINTR) nullret.c -expect 2
- -$(SPLINTR) -nullret nullret.c -expect 1
+ -$(SPLINTR) -nullret nullret.c -expect 0
.PHONY: nullassign
nullassign:
-$(SPLINTR) -nullassign nullassign.c -expect 1
+### Added for 3.1 - evans 2002-12-14
+
+.PHONY: numabstract
+numabstract:
+ -$(SPLINTR) numabstract.c -expect 11
+ -$(SPLINTR) numabstract.c +numabstractlit -expect 9
+ -$(SPLINTR) numabstract.c -numabstractcast -expect 10
+
#
# Before 2.4, expected one more because error was reported both as
# dependent and observer.
preds:
-$(SPLINTR) +hints preds.c -expect 6
-$(SPLINTRN) +hints preds.c -weak -expect 1
- -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
+ -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 10
.PHONY: prefixes
prefixes:
-$(SPLINTR) shifts.c -shiftimplementation -expect 3
-$(SPLINTR) shifts.c -shiftnegative -expect 1
+#drl comment this out until sizesigns is added to cvs
+
### evans - added 2002-08-17: check warnings with arbitrary integral types
sizesigns:
- -$(SPLINTR) +strict sizesigns.c
- -$(SPLINTR) +strict +ignoresigns sizesigns.c
- -$(SPLINTR) +strict +matcharbitraryintegral sizesigns.c
- -$(SPLINTR) +strict +matcharbitraryintegral +ignoresignz sizesigns.c
+ -$(SPLINTR) +strict sizesigns.c -expect 5
+ -$(SPLINTR) +strict +matchanyintegral sizesigns.c -expect 4
.PHONY: slovaknames
slovaknames:
sizeof:
-$(SPLINTR) +bounds sizeof.c -expect 1
+
.PHONY: buffertest
buffertest:
-$(SPLINTR) +bounds buffertest1.c -expect 5
./simplebufferConstraintTests/test3.c \
./simplebufferConstraintTests/test7.c \
./sizeoftest/sizeof.c \
+ ./sizeoftest/sizeofConst.c \
+ ./sizeoftest/Makefile \
./strchr/strchr.c \
./suppressfile/test.c \
./tainted/sprintf.c \
./tests2.5/immutable.h \
./tests2.5/impabsmodule.h \
./tests2.5/socket.h \
- ./Makefile-test.os2 \
+ ./Makefile.os2 \
./db1/Makefile \
./db2/Makefile \
./db3/Makefile \
unioninit.expect unioninit.c utypes.c \
utypes.expect widestrings.expect widestrings.c \
functionmacro.expect functionmacro.c info.c info.expect \
- loopexec.c looptesteffect.c mergenull.c shifts.c \
- sizesigns.c sizesigns.expect \
+ longint.c loopexec.c looptesteffect.c mergenull.c shifts.c \
+ longint.expect nullret.expect numabstract.expect \
+ sizesigns.expect typeof.expect \
manual.expect ./manual/Makefile \
./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 \
arraydims.expect arraydims.c \
moreBufferTests2/fixedArrayType.c oldstyle2.c \
divzero.expect parentype.expect \
divzero.c parentype.c \
-stringliteral.expect stringliteral.c
+stringliteral.expect stringliteral.c \
+ numabstract.c sizesigns.c typeof.c nullassign.expect
+
+# sizesigns.c sizesigns.expect \