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