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