annotate test/module.mk @ 29066:a922c2176394 stable

test: Add BIST for bug #59451. * test/bug-59451/bug-59451.tst, test/bug-59451/bug59451.m, test/bug-59451/foo/@double/bug59451.m, test/bug-59451/foo/@single/bug59451.m, test/bug-59451/module.mk: Add new files. * test/module.mk: Include new module.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 14 Nov 2020 09:47:41 +0100
parents 3719f5d452d4
children 913088ffe8e3 eec0fe95576e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
1 %canon_reldir%_EXTRA_DIST =
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
2
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
3 %canon_reldir%_CLEANFILES =
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
4 %canon_reldir%_DISTCLEANFILES =
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
5 %canon_reldir%_MAINTAINERCLEANFILES =
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
6
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 TEST_FILES += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
8 %reldir%/fntests.m \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
9 %reldir%/args.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
10 %reldir%/bug-31371.tst \
26473
a08602475855 maint: move simple fixed test scripts up a level
Mike Miller <mtmiller@octave.org>
parents: 26420
diff changeset
11 %reldir%/bug-45969.tst \
a08602475855 maint: move simple fixed test scripts up a level
Mike Miller <mtmiller@octave.org>
parents: 26420
diff changeset
12 %reldir%/bug-45972.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
13 %reldir%/bug-46330.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
14 %reldir%/bug-49904.tst \
25203
72ea868ca63a allow function parameters to be global (bug #53579)
John W. Eaton <jwe@octave.org>
parents: 25201
diff changeset
15 %reldir%/bug-53579.tst \
25201
c80323fe4938 improve handling of global symbols (bug #53599)
John W. Eaton <jwe@octave.org>
parents: 24977
diff changeset
16 %reldir%/bug-53599.tst \
25795
cbb197e84b60 fix typo in changeset cc9da21511c1
John W. Eaton <jwe@octave.org>
parents: 25789
diff changeset
17 %reldir%/bug-54490.tst \
26473
a08602475855 maint: move simple fixed test scripts up a level
Mike Miller <mtmiller@octave.org>
parents: 26420
diff changeset
18 %reldir%/bug-55308.tst \
a08602475855 maint: move simple fixed test scripts up a level
Mike Miller <mtmiller@octave.org>
parents: 26420
diff changeset
19 %reldir%/bug-55321.tst \
a08602475855 maint: move simple fixed test scripts up a level
Mike Miller <mtmiller@octave.org>
parents: 26420
diff changeset
20 %reldir%/bug-55322.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
21 %reldir%/colormaps.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
22 %reldir%/command.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
23 %reldir%/complex.tst \
23834
9f31de57ad36 Include recently added test files in the source distribution
Mike Miller <mtmiller@octave.org>
parents: 23814
diff changeset
24 %reldir%/deprecate-props.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
25 %reldir%/diag-perm.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
26 %reldir%/error.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
27 %reldir%/eval-catch.tst \
26662
05fc703b419a update handling of command-style function call syntax in eval
John W. Eaton <jwe@octave.org>
parents: 26526
diff changeset
28 %reldir%/eval-command.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
29 %reldir%/for.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
30 %reldir%/func.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
31 %reldir%/global.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
32 %reldir%/if.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
33 %reldir%/index.tst \
28427
7a8c69c4eb55 convert obsolete octave_fcn_inline object to @inline class
John W. Eaton <jwe@octave.org>
parents: 28180
diff changeset
34 %reldir%/inline-fcn.tst \
25839
7094f73d4ece Add new integer.tst module to test saturation mechanics.
Rik <rik@octave.org>
parents: 25489
diff changeset
35 %reldir%/integer.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
36 %reldir%/io.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
37 %reldir%/jit.tst \
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents: 24185
diff changeset
38 %reldir%/leftdiv.tst \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
39 %reldir%/line-continue.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
40 %reldir%/logical-index.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
41 %reldir%/null-assign.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
42 %reldir%/parser.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
43 %reldir%/prefer.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
44 %reldir%/range.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
45 %reldir%/recursion.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
46 %reldir%/return.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
47 %reldir%/single-index.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
48 %reldir%/slice.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
49 %reldir%/struct.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
50 %reldir%/switch.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
51 %reldir%/system.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
52 %reldir%/transpose.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
53 %reldir%/try.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
54 %reldir%/unwind.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
55 %reldir%/while.tst
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
57 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
59 include %reldir%/bug-35448/module.mk
24185
068556c5167e Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents: 24099
diff changeset
60 include %reldir%/bug-35881/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
61 include %reldir%/bug-36025/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
62 include %reldir%/bug-38236/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
63 include %reldir%/bug-38691/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
64 include %reldir%/bug-41723/module.mk
28180
d597dc0a5f74 build: include tests for bug #50831 in the build system
Mike Miller <mtmiller@octave.org>
parents: 27745
diff changeset
65 include %reldir%/bug-44940/module.mk
26796
45fc6505a803 allow handles to methods created inside method or ctor to work (bug #45351)
John W. Eaton <jwe@octave.org>
parents: 26760
diff changeset
66 include %reldir%/bug-45351/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
67 include %reldir%/bug-46660/module.mk
26719
91b152968ec1 allow object.method@superclass (...) to work (bug #47680)
John W. Eaton <jwe@octave.org>
parents: 26697
diff changeset
68 include %reldir%/bug-47680/module.mk
23975
976a7a350274 new tests for classdef constructor and method argument names (bug #49379)
John W. Eaton <jwe@octave.org>
parents: 23883
diff changeset
69 include %reldir%/bug-49379/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
70 include %reldir%/bug-50014/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
71 include %reldir%/bug-50035/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
72 include %reldir%/bug-50716/module.mk
28180
d597dc0a5f74 build: include tests for bug #50831 in the build system
Mike Miller <mtmiller@octave.org>
parents: 27745
diff changeset
73 include %reldir%/bug-50831/module.mk
23834
9f31de57ad36 Include recently added test files in the source distribution
Mike Miller <mtmiller@octave.org>
parents: 23814
diff changeset
74 include %reldir%/bug-51192/module.mk
23838
6e0fd7e3c262 Fix argument lookup in '+' package functions (Bug #51532).
Piotr Held <pjheld@gmail.com>
parents: 23834
diff changeset
75 include %reldir%/bug-51532/module.mk
23842
ff893e26aeeb make calling parent class constructors work again (bug #51534)
Piotr Held <pjheld@gmail.com>
parents: 23838
diff changeset
76 include %reldir%/bug-51534/module.mk
23814
3ac5d3d01cad Anonymous functions to local functions in classdef files (bug #51599).
Piotr Held <pjheld@gmail.com>
parents: 23710
diff changeset
77 include %reldir%/bug-51599/module.mk
24069
f8b8a8e6bd79 make local functions and method names unique for parser (Bug #52075)
Piotr Held <pjheld@gmail.com>
parents: 23975
diff changeset
78 include %reldir%/bug-52075/module.mk
24459
b728b7ac1601 Add BIST test for bug #52722.
Rik <rik@octave.org>
parents: 24251
diff changeset
79 include %reldir%/bug-52722/module.mk
28698
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents: 28481
diff changeset
80 include %reldir%/bug-52851/module.mk
24977
2b040946dc69 improve handling of clear for globals, forwarded symbols (bug #53027)
John W. Eaton <jwe@octave.org>
parents: 24952
diff changeset
81 include %reldir%/bug-53027/module.mk
26713
7b9a5ab8350f Properly integrate hgload tests in the build system (bug #53468)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 26526
diff changeset
82 include %reldir%/bug-53468/module.mk
26926
71724787d972 don't call inherited delete methods (bug #53956)
John W. Eaton <jwe@octave.org>
parents: 26924
diff changeset
83 include %reldir%/bug-53956/module.mk
26526
75c7aafca6bb test for bug #54995
Guillaume Flandin <guillaume.offline@gmail.com>
parents: 26473
diff changeset
84 include %reldir%/bug-54995/module.mk
26924
ab9520ef3895 ensure classdef dtor doesn't wipe out expression value (bug #53844, bug #55758)
John W. Eaton <jwe@octave.org>
parents: 26796
diff changeset
85 include %reldir%/bug-55758/module.mk
28481
1be719d8b375 fix dispatch error with classsimple function handle (bug #58572)
John W. Eaton <jwe@octave.org>
parents: 28427
diff changeset
86 include %reldir%/bug-58572/module.mk
28804
3719f5d452d4 refactor implementation of END indexing in interpreter (bug #58953)
John W. Eaton <jwe@octave.org> and Fernando Alvarruiz
parents: 28698
diff changeset
87 include %reldir%/bug-58593/module.mk
29066
a922c2176394 test: Add BIST for bug #59451.
Markus Mützel <markus.muetzel@gmx.de>
parents: 28804
diff changeset
88 include %reldir%/bug-59451/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
89 include %reldir%/class-concat/module.mk
23838
6e0fd7e3c262 Fix argument lookup in '+' package functions (Bug #51532).
Piotr Held <pjheld@gmail.com>
parents: 23834
diff changeset
90 include %reldir%/classdef/module.mk
23834
9f31de57ad36 Include recently added test files in the source distribution
Mike Miller <mtmiller@octave.org>
parents: 23814
diff changeset
91 include %reldir%/classdef-multiple-inheritance/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
92 include %reldir%/classes/module.mk
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
93 include %reldir%/ctor-vs-method/module.mk
26960
6731d89ef576 new tests for functions in package directories (bug #51709, bug #55975)
John W. Eaton <jwe@octave.org>
parents: 26926
diff changeset
94 include %reldir%/fcn-handle/module.mk
24952
1fbd8afcf625 Ensure that local functions do not have a static workspace (bug #53405).
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 24844
diff changeset
95 include %reldir%/local-functions/module.mk
25453
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
96 include %reldir%/mex/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
97 include %reldir%/nest/module.mk
27745
7a45100a40c4 allow private scripts to be called from other private scripts
John W. Eaton <jwe@octave.org>
parents: 26960
diff changeset
98 include %reldir%/private-functions/module.mk
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
99 include %reldir%/publish/module.mk
24968
30c7aa427506 test: first pkg test suite
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents: 24952
diff changeset
100 include %reldir%/pkg/module.mk
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
102 define run-octave-tests
26697
8e97a2e5ab66 Read sitewide init-file when running 'make check'
Rik <rik@octave.org>
parents: 26662
diff changeset
103 ( cd %reldir% && $(SHELL) ../run-octave $(RUN_OCTAVE_OPTIONS) $(1) --no-init-file --silent --no-history -p $(abs_top_builddir)/%reldir%/mex $(abs_top_srcdir)/%reldir%/fntests.m $(abs_top_srcdir)/%reldir% ) && \
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
104 if $(AM_V_P); then \
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
105 echo ""; \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
106 if [ -f %reldir%/fntests.log ]; then \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
107 echo "Contents of %reldir%/fntests.log:"; \
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
108 echo ""; \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
109 $(AWK) -f $(srcdir)/%reldir%/show-failures.awk %reldir%/fntests.log; \
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
110 else \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
111 echo "%reldir%/fntests.log is missing!"; \
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
112 fi; \
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
113 fi
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
114 endef
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
115
25453
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
116 check-local: $(GENERATED_TEST_FILES) $(MEX_TEST_FUNCTIONS) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp)
23883
b3b136bc7ce2 shorten messages displayed at end of make check
John W. Eaton <jwe@octave.org>
parents: 23852
diff changeset
117 $(AM_V_at)$(call run-octave-tests)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119 if AMCOND_HAVE_LLVM
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
120 check-jit: $(GENERATED_TEST_FILES) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp)
23883
b3b136bc7ce2 shorten messages displayed at end of make check
John W. Eaton <jwe@octave.org>
parents: 23852
diff changeset
121 $(AM_V_at)$(call run-octave-tests,--jit-compiler)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 endif
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
124 COVERAGE_DIR = %reldir%/coverage
22109
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
125 COVERAGE_INFO = $(COVERAGE_DIR)/$(PACKAGE).info
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
126
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
127 ## FIXME: To get something useful out of 'make coverage', you should use gcc
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
128 ## and configure with compiler flags set to '-g --coverage'. Adding the
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
129 ## --coverage option to either WARN_CXXFLAGS or XTRA_CXXFLAGS resulted in
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
130 ## link errors, so some work still needed to get a '--enable-coverage-flags'
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
131 ## option working.
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
132
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
133 coverage: all
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
134 lcov --directory . --zerocounters
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
135 $(MAKE) $(AM_MAKEFLAGS) check
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
136 $(MKDIR_P) $(COVERAGE_DIR)
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
137 lcov --directory . --capture --output-file $(COVERAGE_INFO)
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
138 genhtml --output-directory $(COVERAGE_DIR) $(COVERAGE_INFO)
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
139 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
140 @echo "Code coverage report successfully built. Open the file"
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
141 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
142 @echo " $(abs_top_builddir)/$(COVERAGE_DIR)/index.html"
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
143 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
144 @echo "in a web browser to view the results."
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
145 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
146 .PHONY: coverage
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
147
23852
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
148 %reldir%/conv.tst: %reldir%/mk-conv-tst.sh | %reldir%/$(octave_dirstamp)
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
149 $(AM_V_GEN)rm -f $@-t $@ && \
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
150 $(SHELL) $(srcdir)/%reldir%/mk-conv-tst.sh > $@-t && \
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
151 mv $@-t $@
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
152
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
153 %reldir%/sparse.tst: %reldir%/mk-sparse-tst.sh | %reldir%/$(octave_dirstamp)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 $(AM_V_GEN)rm -f $@-t $@ && \
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
155 $(SHELL) $(srcdir)/%reldir%/mk-sparse-tst.sh > $@-t && \
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 mv $@-t $@
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
157
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
158 GENERATED_BC_OVERLOADS_DIRS := \
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
159 $(shell $(SHELL) $(srcdir)/%reldir%/mk-bc-overloads-tst.sh test --list-dirs)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 GENERATED_BC_OVERLOADS_FILES := \
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
162 $(shell $(SHELL) $(srcdir)/%reldir%/mk-bc-overloads-tst.sh test --list-files)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
164 $(GENERATED_BC_OVERLOADS_FILES): %reldir%/mk-bc-overloads-tst-stamp
20311
3373f2f760bc fix dependencies for generated overload operator tests
John W. Eaton <jwe@octave.org>
parents: 20310
diff changeset
165
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
166 %reldir%/.bc-overload-tests-stamp: %reldir%/mk-bc-overloads-tst.sh %reldir%/bc-overloads-expected | %reldir%/$(octave_dirstamp)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 $(AM_V_GEN)rm -f $@ && \
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
168 $(SHELL) $(srcdir)/%reldir%/mk-bc-overloads-tst.sh test $(srcdir)/%reldir%/bc-overloads-expected && \
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 touch $@
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
171 GENERATED_TEST_FILES = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
172 %reldir%/conv.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
173 %reldir%/sparse.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
174 %reldir%/.bc-overload-tests-stamp
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 fixedtestsdir := $(octtestsdir)/fixed
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
178 TEST_INST_FILES = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
179 %reldir%/conv.tst \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
180 %reldir%/sparse.tst \
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 $(GENERATED_BC_OVERLOADS_FILES) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
182 $(filter-out %reldir%/fntests.m, $(TEST_FILES))
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
183
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
184 install-data-local: install-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
185
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
186 uninstall-local: uninstall-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
187
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
188 install-test-files:
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
189 for f in $(TEST_INST_FILES); do \
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
190 if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
191 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
192 $(MKDIR_P) $(DESTDIR)$(fixedtestsdir)/`echo $$base | $(SED) 's,/*[^/]*$$,,'`; \
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
193 $(INSTALL_DATA) $$d$$f $(DESTDIR)$(fixedtestsdir)/$$base; \
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
194 done
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
195 .PHONY: install-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
196
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
197 uninstall-test-files:
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
198 for f in $(TEST_INST_FILES); do \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
199 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
200 rm -f $(DESTDIR)$(fixedtestsdir)/$$base; \
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
201 done
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
202 .PHONY: uninstall-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
203
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
204 BUILT_SOURCES += $(GENERATED_TEST_FILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
205
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
206 %canon_reldir%_EXTRA_DIST += \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
207 %reldir%/bc-overloads-expected \
23710
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
208 %reldir%/mk-bc-overloads-tst.sh \
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
209 %reldir%/mk-conv-tst.sh \
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
210 %reldir%/mk-sparse-tst.sh \
279a6bd429f4 rename a few more build scripts for consistency
John W. Eaton <jwe@octave.org>
parents: 23495
diff changeset
211 %reldir%/mk_bc_overloads_expected.m \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
212 %reldir%/show-failures.awk \
25453
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
213 $(TEST_FILES) \
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
214 $(noinst_TEST_FILES) \
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
215 $(MEX_TEST_SRC)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
216
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
217 EXTRA_DIST += $(%canon_reldir%_EXTRA_DIST)
20368
2f9119bb3fe5 build: Add EXTRA_DIST files frob libgui/ and test/ to tarball.
Rik <rik@octave.org>
parents: 20367
diff changeset
218
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
219 %canon_reldir%_CLEANFILES += \
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
220 $(GENERATED_BC_OVERLOADS_FILES) \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
221 $(GENERATED_TEST_FILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
222
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
223 %canon_reldir%_DISTCLEANFILES += \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
224 %reldir%/fntests.log
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
225
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
226 CLEANFILES += $(%canon_reldir%_CLEANFILES)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
227 DISTCLEANFILES += $(%canon_reldir%_DISTCLEANFILES)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
228 MAINTAINERCLEANFILES += $(%canon_reldir%_MAINTAINERCLEANFILES)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
229
22043
7d28674f6ff0 build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents: 21964
diff changeset
230 clean-local: test-clean
7d28674f6ff0 build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents: 21964
diff changeset
231
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
232 test-clean:
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
233 rm -f $(%canon_reldir%_CLEANFILES)
22043
7d28674f6ff0 build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents: 21964
diff changeset
234 rm -rf $(GENERATED_BC_OVERLOADS_DIRS)
22109
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
235 rm -rf $(COVERAGE_DIR)
25468
e959d4b33eb1 * test/module.mk (test-clean): Also remove .mex files.
John W. Eaton <jwe@octave.org>
parents: 25453
diff changeset
236 rm -rf $(MEX_TEST_FUNCTIONS)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
237
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
238 test-distclean: test-clean
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
239 rm -f $(%canon_reldir%_DISTCLEANFILES)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
240
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
241 test-maintainer-clean: test-distclean
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 23386
diff changeset
242 rm -f $(%canon_reldir%_MAINTAINERCLEANFILES)