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