]> andersk Git - splint.git/blob - test/Makefile.in
Added doc/ directory
[splint.git] / test / Makefile.in
1 # Makefile.in generated automatically by automake 1.5 from Makefile.am.
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 # Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 SHELL = @SHELL@
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 bindir = @bindir@
25 sbindir = @sbindir@
26 libexecdir = @libexecdir@
27 datadir = @datadir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
31 libdir = @libdir@
32 infodir = @infodir@
33 mandir = @mandir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 top_builddir = ..
40
41 ACLOCAL = @ACLOCAL@
42 AUTOCONF = @AUTOCONF@
43 AUTOMAKE = @AUTOMAKE@
44 AUTOHEADER = @AUTOHEADER@
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 INSTALL_SCRIPT = @INSTALL_SCRIPT@
50 INSTALL_HEADER = $(INSTALL_DATA)
51 transform = @program_transform_name@
52 NORMAL_INSTALL = :
53 PRE_INSTALL = :
54 POST_INSTALL = :
55 NORMAL_UNINSTALL = :
56 PRE_UNINSTALL = :
57 POST_UNINSTALL = :
58 host_alias = @host_alias@
59 host_triplet = @host@
60 AMTAR = @AMTAR@
61 AWK = @AWK@
62 BISON = @BISON@
63 CAT = @CAT@
64 CC = @CC@
65 CP = @CP@
66 CPP = @CPP@
67 CXX = @CXX@
68 DEPDIR = @DEPDIR@
69 DIFF = @DIFF@
70 EXEEXT = @EXEEXT@
71 GREP = @GREP@
72 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
73 LCLOBJ = @LCLOBJ@
74 LEX = @LEX@
75 LN_S = @LN_S@
76 MV = @MV@
77 OBJEXT = @OBJEXT@
78 PACKAGE = @PACKAGE@
79 RM = @RM@
80 VERSION = @VERSION@
81 am__include = @am__include@
82 am__quote = @am__quote@
83 install_sh = @install_sh@
84
85 AUTOMAKE_OPTIONS = 1.5 foreign
86
87 DIFFFLAGS = -u
88
89 LCLINT = $(top_builddir)/src/lclint$(EXEEXT)
90
91 ### This is horrible!  Can't we make top_builddir absolute?
92 LCLINTNEST = ../$(top_builddir)/src/lclint$(EXEEXT)
93
94 LCLINTPNEST = @$(LCLINTNEST)
95 LCLINTP = @$(LCLINT)
96
97 # Make sure .lclintrc files are not used so test results do not
98 # depend on local settings.
99 LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
100 LCLINTR = $(LCLINTRN) -exportlocal +debugfcnconstraint
101
102 LCLINTRNNEST = $(LCLINTPNEST) -nof -hints -booltype "bool"
103 LCLINTRNEST = $(LCLINTRNNEST) -exportlocal +debugfcnconstraint
104
105
106 ###
107 ### !!! 
108 ### These tests have been temporarily removed because of problems with the new build process:
109 ###   fileio tainted mergestate metastate \
110 ###   tests2.2 tests2.2a tests2.4 tests2.5 
111 ###  
112 ###   maxset strchr for
113 UNITTESTS = \
114   help \
115   fileio tainted mergestate metastate sizeof buffertest \
116   tests2.2 tests2.2a tests2.4 tests2.5  \
117   simplebufferConstraintTests moreBufferTests globalbufferannotation \
118   maxset strchr for \
119   abstptr abstract alias alttypes ansireserved argorder \
120   args blocks break cases cast charlit clauses commentchar compdestroy \
121   constannot controldepth csyntax czechnames czechoslovaknames deadparam \
122   decl enum exports external fields flags forbody format freearray \
123   funcpointer glob globals impabstract init inparam internal iter keep libs \
124   linked lintcomments list macros macrosef merge modifies modtest moduncon \
125   mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
126   postnotnull preds prefixes printflike rc refcounts release repexpose \
127   returned sharing slovaknames specclauses special stack staticarray strings \
128   structassign typequals ud ulstypes union unreachable unsignedcompare \
129   unused ullint void
130
131 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
132
133 INTEGTESTS = db1 db2 db3
134 INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
135
136 LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
137
138 QUICKTESTS = db3
139
140 CLEANOUTPUT = $(GREP) -v "LCLint 3." | $(GREP) -v "$(LCLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:"
141
142
143 ### Rules for tests start here
144
145 ###
146 ### Bugs fixed and new features since version 2.1b
147 ###
148 SUBDIRTESTS = metastate mergestate tainted fileio warnuse ensuresclauses \
149    simplebufferConstraintTests moreBufferTests globalbufferannotation \
150    maxset strchr for \
151 tests2.2 tests2.2a tests2.4 tests2.5 db1 db2 db3
152 subdir = test
153 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
154 CONFIG_HEADER = $(top_builddir)/config.h
155 CONFIG_CLEAN_FILES =
156 DIST_SOURCES =
157 DIST_COMMON = Makefile.am Makefile.in
158 all: all-am
159
160 .SUFFIXES:
161 .SUFFIXES: .c .diff .expect
162 $(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
163         cd $(top_srcdir) && \
164           $(AUTOMAKE) --foreign  test/Makefile
165 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
166         cd $(top_builddir) && \
167           CONFIG_HEADERS= CONFIG_LINKS= \
168           CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
169 uninstall-info-am:
170 tags: TAGS
171 TAGS:
172
173
174 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
175
176 top_distdir = ..
177 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
178
179 distdir: $(DISTFILES)
180         @for file in $(DISTFILES); do \
181           if test -f $$file; then d=.; else d=$(srcdir); fi; \
182           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
183           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
184             $(mkinstalldirs) "$(distdir)/$$dir"; \
185           fi; \
186           if test -d $$d/$$file; then \
187             cp -pR $$d/$$file $(distdir) \
188             || exit 1; \
189           else \
190             test -f $(distdir)/$$file \
191             || cp -p $$d/$$file $(distdir)/$$file \
192             || exit 1; \
193           fi; \
194         done
195 check-am: all-am
196 check: check-am
197 all-am: Makefile
198
199 installdirs:
200
201 install: install-am
202 install-exec: install-exec-am
203 install-data: install-data-am
204 uninstall: uninstall-am
205
206 install-am: all-am
207         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
208
209 installcheck: installcheck-am
210 install-strip:
211         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
212           `test -z '$(STRIP)' || \
213             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
214 mostlyclean-generic:
215
216 clean-generic:
217
218 distclean-generic:
219         -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
220
221 maintainer-clean-generic:
222         @echo "This command is intended for maintainers to use"
223         @echo "it deletes files that may require special tools to rebuild."
224 clean: clean-am
225
226 clean-am: clean-generic clean-local mostlyclean-am
227
228 distclean: distclean-am
229
230 distclean-am: clean-am distclean-generic
231
232 dvi: dvi-am
233
234 dvi-am:
235
236 info: info-am
237
238 info-am:
239
240 install-data-am:
241
242 install-exec-am:
243
244 install-info: install-info-am
245
246 install-man:
247
248 installcheck-am:
249
250 maintainer-clean: maintainer-clean-am
251
252 maintainer-clean-am: distclean-am maintainer-clean-generic
253
254 mostlyclean: mostlyclean-am
255
256 mostlyclean-am: mostlyclean-generic
257
258 uninstall-am: uninstall-info-am
259
260 .PHONY: all all-am check check-am clean clean-generic clean-local \
261         distclean distclean-generic distdir dvi dvi-am info info-am \
262         install install-am install-data install-data-am install-exec \
263         install-exec-am install-info install-info-am install-man \
264         install-strip installcheck installcheck-am installdirs \
265         maintainer-clean maintainer-clean-generic mostlyclean \
266         mostlyclean-generic uninstall uninstall-am uninstall-info-am
267
268
269 .PHONY: all check
270 all check: fulltest
271
272 .PHONY: version
273 version:
274         -$(LCLINTP) -help version
275
276 .PHONY: help
277 help:
278         -@$(LCLINTP)
279         -@LARCH_PATH=/dev/null; $(LCLINT) empty.lcl
280         -@$(LCLINTP) -help
281         -@$(LCLINTP) -asdf
282         -@$(LCLINTP) +boolint +boolint 
283         -@$(LCLINTP) -help flags alpha
284         -@$(LCLINTP) -help flags all
285
286 .PHONY: clean-local
287 clean-local:
288         -rm -f *~ #*# *.o *.lcs a.out
289         -cd db1; $(MAKE) clean
290         -cd db2; $(MAKE) clean
291         -cd db3; $(MAKE) clean
292
293 $(LCLINTTESTS): $(LCLINT)
294
295 $(LCLINT):
296         cd $(top_builddir)/src; $(MAKE)
297
298 .c.expect:
299         $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
300
301 .c.diff:
302         $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
303
304 .PHONY: expects
305 expects:
306         @echo "Saving old expects..."; \
307          cat *.expect >expects-`date +"%y-%m-%d-%H"`
308         @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
309            echo "Making $$TEST.expect..."; \
310            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
311            cat $$TEST.expect; \
312          done
313
314 .PHONY: quicktest
315 quicktest:
316         @for TEST in $(QUICKTESTS); do \
317            echo "Checking $$TEST..."; \
318            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
319              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
320                echo "*** FAIL ***"; \
321          done
322
323 .PHONY: fulltest
324 fulltest:
325         @echo "Testing $(PACKAGE) $(VERSION)..."
326         @echo
327         @echo "Version Info:"
328         @$(LCLINTP) -help version
329         @$(LCLINTP) -help vars
330         @echo ""
331         @echo "Unit tests:"
332         @echo ""
333         @for TEST in $(UNITTESTS); do \
334            echo "Checking $$TEST..."; \
335            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
336              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
337                echo "*** FAIL ***"; \
338          done
339         @echo ""
340         @echo "Integration tests:"
341         @echo ""
342         @for TEST in $(INTEGTESTS); do \
343            echo "Checking $$TEST..."; \
344            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
345              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
346                echo "*** FAIL ***"; \
347          done
348
349 .PHONY: abstptr
350 abstptr:
351         $(LCLINTR) abstptr -expect 9
352         $(LCLINTR) abstptr +voidabstract -expect 6
353
354 .PHONY: abstract
355 abstract:
356         $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
357
358 .PHONY: alias
359 alias:
360         $(LCLINTR) +lh mut
361         $(LCLINTR) mut alias +globalias -expect 19
362         $(LCLINTR) mut alias2 +globalias -expect 17
363         $(LCLINTR) +lh alias3 -expect 14 
364         $(LCLINTR) +lh alias4 +boolint
365         $(LCLINTR) alias4 -pred +retalias -expect 6
366         $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
367
368 .PHONY: alttypes
369 alttypes:
370         $(LCLINTR) alttypes.c -expect 2
371
372 ###
373 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
374 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
375 ###    variable (could be a macro?)
376 ### Reports 3 additional errors for +checks; no longer suppresses name errors
377 ###    in the presense of other errors.
378 ###
379
380 .PHONY: ansireserved
381 ansireserved:
382         $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 9
383         $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
384         $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
385         $(LCLINTR) ansireserved2.c +ansireserved -expect 1
386
387 .PHONY: argorder
388 argorder:
389         $(LCLINTR) argorder.c -expect 4
390         $(LCLINTR) argorder2  -expect 5
391         $(LCLINTR) argorder3.c -expect 8
392         $(LCLINTR) argorder4 -expect 9
393         $(LCLINTR) argorder4 -evalorder -expect 1
394         $(LCLINTR) argorder5.c +evalorderuncon -expect 3
395
396 .PHONY: args
397 args:
398         $(LCLINTR) args -noeffect -expect 12
399
400 .PHONY: blocks
401 blocks:
402         $(LCLINTR) blocks.c -expect 4
403         $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
404         $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
405         $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
406         $(LCLINTR) blocks.c +allempty -expect 6
407         $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
408
409 .PHONY: break
410 break:
411         $(LCLINTR) break.c -expect 4
412         $(LCLINTR) break.c +deepbreak -expect 6
413         $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
414
415 .PHONY: cases
416 cases: 
417         $(LCLINTR) cases.c -expect 5
418         $(LCLINTR) cases2.c -expect 2
419         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
420         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
421
422 .PHONY: cast
423 cast:
424         $(LCLINTR) cast -accessmodule -expect 20
425         $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
426
427 ### Two addition errors detected with 2.5 with -numliteral.
428
429 .PHONY: charlit
430 charlit:
431         $(LCLINTR) +hints charlit.c -expect 4
432         $(LCLINTR) +hints -numliteral charlit.c -expect 6
433         $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
434
435 .PHONY: clauses
436 clauses: 
437         $(LCLINTR) clauses.c +memchecks -expect 4
438         $(LCLINTR) clauses2.c +memchecks 
439         $(LCLINTR) clauses3.c +memchecks -expect 2
440         $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
441
442 .PHONY: commentchar
443 commentchar:
444         $(LCLINTR) commentchar.c -expect 4
445         $(LCLINTR) -commentchar '#' commentchar.c -expect 4
446
447 .PHONY: controldepth
448 controldepth:
449         $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
450         $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
451
452 .PHONY: compdestroy
453 compdestroy:
454         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
455         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
456         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
457         $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
458
459 .PHONY: constannot
460 constannot:
461         ${LCLINTRN} constannot.c +arraybounds  -exportlocal -expect 2
462
463 .PHONY: csyntax
464 csyntax:
465         $(LCLINTR) +quiet -incondefs csyntax.c -expect 1 
466         $(LCLINTR) +quiet csyntax2.c -expect 2
467         $(LCLINTR) +quiet csyntax3.c -expect 1
468         $(LCLINTR) +quiet -incondefs csyntax4.c
469         $(LCLINTR) +quiet csyntax5.c
470         $(LCLINTR) +quiet csyntax6.c
471         $(LCLINTR) +quiet csyntax7.c
472         $(LCLINTR) +quiet csyntax8.c
473         $(LCLINTR) +quiet csyntax9.c
474         $(LCLINTR) +quiet csyntax10.c
475         $(LCLINTR) +quiet csyntax11.c
476         $(LCLINTR) +quiet csyntax12.c
477         $(LCLINTR) +quiet csyntax13.c -expect 1
478         $(LCLINTR) +quiet csyntax14.c
479         $(LCLINTR) +quiet csyntax15.c
480         $(LCLINTR) +quiet csyntax16.c -expect 2
481         $(LCLINTR) +quiet csyntax17.c -expect 3
482
483 .PHONY: czechnames
484 czechnames:
485         $(LCLINTR) czechnames.c
486         $(LCLINTR) +hints +czech czechnames.c -expect 2
487         $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
488         $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
489
490 .PHONY: czechoslovaknames
491 czechoslovaknames:
492         $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
493         $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
494         $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
495
496 ###
497 ### deadparam added 2001-05-27
498 ###
499
500 .PHONY: deadparam
501 deadparam:
502         ${LCLINTR} deadparam.c -expect 3
503
504 #
505 # Was expect 3 before 2.4.  Earlier versions did not handle implicit
506 # function pointers correctly.
507 #
508
509 .PHONY: decl
510 decl:
511         $(LCLINTR) decl.c -expect 2
512         $(LCLINTRN) decl.c +strict -exportlocal -expect 5
513         $(LCLINTR) decl2 -expect 4
514
515 .PHONY: enum
516 enum:
517         $(LCLINTR) enum -expect 16
518         $(LCLINTR) enum -misscase -expect 14
519
520 .PHONY: exports
521 exports:
522         $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
523         $(LCLINTR) exports.c +exportany -expect 3
524         $(LCLINTR) exports.c
525
526 .PHONY: external
527 external:
528         $(LCLINTR) external.c +partial
529         $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
530         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
531         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
532         $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
533
534 .PHONY: fields
535 fields:
536         $(LCLINTR) fields.c +memchecks -expect 6
537         $(LCLINTR) fields2.c +memchecks -expect 5
538         $(LCLINTR) fields3.c +memchecks
539
540 .PHONY: flags
541 flags:
542         $(LCLINTR) flags.c -expect 8
543         $(LCLINTR) +nocomments flags.c -expect 2
544
545 ### Added 2001-06-02
546
547 .PHONY: forbody
548 forbody:
549         ${LCLINTR} forbody.c -expect 2
550
551 ### Added 2001-06-03
552 .PHONY: format
553 format:
554         ${LCLINTR} format.c -expect 3
555         ${LCLINTR} format.c -formatconst 
556
557 # two new errors (invalid lhs)
558
559 .PHONY: funcpointer
560 funcpointer:
561         $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
562
563 .PHONY: glob
564 glob:
565         $(LCLINTR) glob -expect 4
566         $(LCLINTR) glob -globuse -expect 3
567         $(LCLINTR) glob +globunspec -expect 6
568
569 .PHONY: globals
570 globals:
571         $(LCLINTR) -modifies globals.c -expect 5
572         $(LCLINTR) -modifies globals.c +allglobals -expect 6
573         $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
574         $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
575         $(LCLINTR) -modifies globals.c +globunspec -expect 6
576         $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
577
578 # Was -accessfile
579 .PHONY: impabstract
580 impabstract: 
581         $(LCLINTR) -accessmodule impabstract.c 
582         $(LCLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
583         $(LCLINTR) -accessmodule +hints +impabstract impabstract -expect 4
584
585 ### evans 2001-10-14: Expected errors updated
586 .PHONY: init
587 init:
588         $(LCLINTR) init.c -expect 14
589         $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
590
591 .PHONY: inparam
592 inparam:
593         $(LCLINTR) inparam.c -expect 2
594         $(LCLINTR) +impouts inparam.c -expect 1
595
596 .PHONY: internal
597 internal:
598         $(LCLINTR) internal.c -expect 1
599         $(LCLINTR) internal.c +distinctinternalnames -expect 2
600         $(LCLINTR) internal.c -internalnamelen 28 -expect 3
601         $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
602         $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
603
604 ###
605 ### iter
606 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
607 ### 
608
609 .PHONY: iter
610 iter:
611         $(LCLINTR) iter -expect 14 -lclexpect 1
612         $(LCLINTR) iter2.c -expect 12
613
614 .PHONY: keep
615 keep:
616         $(LCLINTR) keep.c +memchecks -expect 6
617
618 ### libs
619 ### 2001-05-22: 2 new errors found (fixed spec of signal)
620 ### 2001-05-30: 3 new errors found (formatconst)
621
622 .PHONY: libs
623 libs:
624         $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 18
625         $(LCLINTR) libs.c -expect 22
626         $(LCLINTR) libs.c +globunspec +modunspec -expect 25
627         $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
628
629 .PHONY: lintcomments
630 lintcomments:
631         $(LCLINTR) lintcomments.c -expect 4
632         $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
633         $(LCLINTR) lintcomments.c -lintcomments -expect 4
634
635 .PHONY: list
636 list:
637         $(LCLINTR) list.c -expect 3
638
639 .PHONY: macros
640 macros:
641         $(LCLINTR) macros -expect 17 
642         $(LCLINTR) macros.c +allmacros -expect 34
643         $(LCLINTR) macros.c +fcnmacros -expect 31
644
645 .PHONY: macrosef
646 macrosef:
647         $(LCLINTR) macrosef -expect 4
648         $(LCLINTR) macrosef.c +allmacros -expect 3
649         $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
650
651 .PHONY: merge
652 merge:
653         $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
654
655 .PHONY: modifies
656 modifies:
657         $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
658
659 .PHONY: modtest
660 modtest:
661         $(LCLINTR) modtest -expect 10
662         $(LCLINTR) modtest +modunspec -expect 13
663         $(LCLINTR) modtest +mustmod -expect 14
664
665 .PHONY: moduncon
666 moduncon:
667         $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
668         $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
669
670 .PHONY: mongoincludes
671 mongoincludes:
672         $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
673         $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
674         $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
675         $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
676         $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
677
678 .PHONY: mystrncat
679 mystrncat:
680         $(LCLINTR) mystrncat.c +arraybounds  +arrayboundsread -expect 4 
681
682 .PHONY: noeffect
683 noeffect:
684         ${LCLINT} -nof noeffect.c +allmacros +checks -expect 3
685
686 .PHONY: null
687 null: 
688         $(LCLINTR) null1.c -expect 14
689         $(LCLINTR) null1.c -null -expect 4
690         $(LCLINTR) null2.c -expect 10
691         $(LCLINTR) null3.c -expect 15
692         $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
693         $(LCLINTR) null4.c -expect 1
694         $(LCLINTR) null5.c -expect 4
695         $(LCLINTR) null6 -expect 4
696         $(LCLINTR) +quiet null6.lcl -dump null6
697         $(LCLINTR) null6.c -load null6 -expect 4
698
699 ### Added for 3.0 (bugs reported by Kevin Broady)
700
701 .PHONY: nullret
702 nullret:
703         $(LCLINTR) nullret.c -expect 2
704         $(LCLINTR) -nullret nullret.c -expect 1
705
706 .PHONY: nullassign
707 nullassign:
708         $(LCLINTR) nullassign.c -expect 2
709         $(LCLINTR) -nullassign nullassign.c -expect 1
710
711 #
712 # Before 2.4, expected one more because error was reported both as 
713 # dependent and observer.
714 #
715
716 .PHONY: observer
717 observer:
718         $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
719         $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
720         $(LCLINTR) observer.c -expect 7
721
722 .PHONY: oldstyle
723 oldstyle:
724         $(LCLINTR) oldstyle -expect 3
725
726 .PHONY: outglob
727 outglob:
728         $(LCLINTR) outglob -expect 10
729
730 .PHONY: outparam
731 outparam:
732         $(LCLINTR) outparam -expect 12
733
734 ### evans 2001-08-26: postnotnull new
735
736 .PHONY: postnotnull
737 postnotnull:
738         ${LCLINTR} postnotnull.c -expect 1
739 #
740 # Four new +fcnuse errors for -strict (evans 2001-07-22)
741
742
743 .PHONY: preds
744 preds:
745         $(LCLINTR) +hints preds.c -expect 6
746         $(LCLINTRN) +hints preds.c -weak -expect 1
747         $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
748
749 .PHONY: prefixes
750 prefixes:
751         $(LCLINTR) prefixes.c +partial
752         $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
753         $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
754         $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
755         $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
756         $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
757         $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
758         $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
759         $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
760         $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
761         $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
762         $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
763         $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
764         $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
765         $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
766         $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
767
768 .PHONY: printflike
769 printflike:
770         $(LCLINTR) printflike.c -expect 6
771         $(LCLINTR) printflike.c -warnlintcomments -expect 5
772
773 .PHONY: rc
774 rc:
775         $(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
776         $(LCLINTR) -DMYSTERY=12 rc.c -expect 1
777         $(LCLINTR) -f rc1.lclintrc rc.c -expect 1
778         $(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
779         $(LCLINTR) -f rc3.lclintrc rc.c -expect 1
780
781 .PHONY: refcounts
782 refcounts:
783         $(LCLINTR) refcounts.c -expect 7 
784
785 .PHONY: release
786 release:
787         $(LCLINTR) release.c +memchecks -expect 1
788
789 .PHONY: repexpose
790 repexpose:
791         $(LCLINTR) +lh repexpose +memchecks -expect 12
792         $(LCLINTR) repexpose +memchecks +retalias -expect 15
793         $(LCLINTRN) repexpose +checks -exportlocal -expect 27
794
795 ### returned added 2001-05-27
796 ### (Bug discovered checking lclint sources.)
797
798 .PHONY: returned
799 returned:
800         ${LCLINTR} returned.c -expect 1
801
802 .PHONY: sharing
803 sharing: 
804         $(LCLINTR) sharing1.c -expect 21
805         $(LCLINTR) sharing3.c -expect  3
806         $(LCLINTR) sharing4.c -expect 13
807         $(LCLINTR) sharing4.c -paramimptemp -expect 12
808         $(LCLINTR) sharing5.c -expect 6
809
810 .PHONY: slovaknames
811 slovaknames:
812         $(LCLINTR) +hints slovaknames.c -expect 1
813         $(LCLINTR) +hints slovaknames.c +accessslovak 
814         $(LCLINTR) +hints +slovak slovaknames.c -expect 3
815         $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
816         $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
817
818 .PHONY: specclauses
819 specclauses:
820         $(LCLINTR) specclauses.c -expect 6
821         $(LCLINTR) specclauses2.c -expect 8
822         $(LCLINTR) specclauses3.c -expect 6
823         $(LCLINTR) specclauses4.c -expect 3
824         $(LCLINTR) specclauses5.c -expect 3
825
826 .PHONY: special
827 special:
828         $(LCLINTR) special -expect 20
829         $(LCLINTR) special -relaxquals -expect 22
830
831 .PHONY: stack
832 stack:
833         $(LCLINTR) stack.c -expect 5
834         $(LCLINTR) stack.c -stackref
835
836 .PHONY: staticarray
837 staticarray:
838         $(LCLINTR) staticarray.c -expect 3
839
840 .PHONY: strings
841 strings:
842         $(LCLINTR) strings.c -expect 3
843         $(LCLINTR) -readonlystrings -expect 1 strings.c
844         $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
845
846 .PHONY: structassign
847 structassign:
848         $(LCLINTR) structassign.c -expect 4
849
850 .PHONY: typequals
851 typequals:
852         $(LCLINTR) typequals.c tq.lcl -expect 5
853         $(LCLINTR) typequals.c -expect 2
854
855 .PHONY: ud
856 ud:
857         $(LCLINTR) ud.c -expect 9
858         $(LCLINTR) ud2 -specundef -expect 3
859
860 .PHONY: ulstypes
861 ulstypes:
862         $(LCLINTR) ulstypes.c -expect 8
863         $(LCLINTR) ulstypes.c +ignorequals 
864         $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
865 # 3 more detected with version 2.5 (change in -numliteral setting)
866
867 .PHONY: union
868 union:
869         $(LCLINTR) +memchecks union.c -expect 8
870
871 .PHONY: unreachable
872 unreachable:
873         $(LCLINTR) unreachable.c -expect 5
874         $(LCLINTR) -unreachable unreachable.c -expect 2
875         $(LCLINTR) switch.c -expect 4
876
877 .PHONY: unsignedcompare
878 unsignedcompare:
879         ${LCLINTR} +posixlib unsignedcompare.c -expect 4
880
881 ###
882 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
883 ###
884
885 .PHONY: unused
886 unused:
887         $(LCLINTRN) unused.c +checks -exportlocal -expect 5
888         $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 8
889
890 ###
891 ### 2001-06-10: Provided by Jim Zalenka
892 ###
893
894 .PHONY: ullint
895 ullint:
896         ${LCLINTRN} ullint.c -expect 5
897         ${LCLINTRN} ullint.c +charint +charintliteral -expect 2
898
899 .PHONY: void
900 void:
901         ${LCLINTRN} void.c -expect 2
902
903 ###
904 ### New since 2.5q:
905 ###
906
907 .PHONY: linked
908 linked:
909         ${LCLINTR} linked.c -expect 4
910         ${LCLINTR} linked2.c -expect 3
911         ${LCLINTR} linked3.c -expect 5
912         ${LCLINTR} linked4.c -expect 6
913         ${LCLINTR} linked5.c -expect 4
914         ${LCLINTR} linked6.c -expect 4
915
916 .PHONY: freearray
917 freearray:
918         ${LCLINTR} freearray.c -expect 1
919
920 .PHONY: sizeof
921 sizeof:
922         $(LCLINTR) +arraybounds +arrayboundsread sizeof.c -expect 1
923
924 .PHONY: buffertest
925 buffertest:
926         $(LCLINTR) +arraybounds +arrayboundsread buffertest1.c -expect 5
927
928 .PHONY: $(SUBDIRTESTS)
929 $(SUBDIRTESTS):
930         cd $@; $(MAKE) LCLINT="$(LCLINTRNNEST)"
931 # Tell versions [3.59,3.63) of GNU make to not export all variables.
932 # Otherwise a system limit (for SysV at least) may be exceeded.
933 .NOEXPORT:
This page took 0.394777 seconds and 5 git commands to generate.