annotate test/Makefile.am @ 30813:2637e294ea6b stable

fix botched file rename from previous change * test/Makefile.am: Rename from test/module.mk. Adjust filenames and commands so they will work when executed in the $builddir/test directory.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Mar 2022 15:01:32 -0500
parents test/module.mk@75fb18f0469a
children c62c8717ebf6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
1 BUILT_SOURCES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
2 DIRSTAMP_FILES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
3 EXTRA_DIST =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
4 CLEANFILES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
5 DISTCLEANFILES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
6 MAINTAINERCLEANFILES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
7 TEST_FILES =
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
8 noinst_TEST_FILES =
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
9
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 TEST_FILES += \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
11 fntests.m \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
12 args.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
13 bug-31371.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
14 bug-40117.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
15 bug-45969.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
16 bug-45972.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
17 bug-46330.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
18 bug-49904.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
19 bug-53579.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
20 bug-53599.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
21 bug-54490.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
22 bug-55308.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
23 bug-55321.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
24 bug-55322.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
25 bug-59950.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
26 bug-61201.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
27 colormaps.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
28 command.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
29 complex.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
30 deprecate-props.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
31 diag-perm.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
32 error.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
33 eval-catch.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
34 eval-command.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
35 for.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
36 func.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
37 global.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
38 if.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
39 index.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
40 inline-fcn.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
41 integer.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
42 io.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
43 leftdiv.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
44 line-continue.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
45 logical-index.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
46 null-assign.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
47 parser.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
48 prefer.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
49 range.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
50 recursion.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
51 return.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
52 single-index.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
53 slice.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
54 sparse-assign.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
55 struct.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
56 switch.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
57 system.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
58 transpose.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
59 try.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
60 unwind.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
61 while.tst
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
63 DIRSTAMP_FILES += $(octave_dirstamp)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
65 include bug-35448/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
66 include bug-35881/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
67 include bug-36025/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
68 include bug-38236/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
69 include bug-38691/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
70 include bug-41723/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
71 include bug-44940/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
72 include bug-45351/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
73 include bug-46660/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
74 include bug-47680/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
75 include bug-49379/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
76 include bug-50014/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
77 include bug-50035/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
78 include bug-50716/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
79 include bug-50831/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
80 include bug-51192/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
81 include bug-51532/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
82 include bug-51534/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
83 include bug-51599/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
84 include bug-52075/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
85 include bug-52722/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
86 include bug-52851/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
87 include bug-53027/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
88 include bug-53468/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
89 include bug-53956/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
90 include bug-54995/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
91 include bug-55758/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
92 include bug-56068/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
93 include bug-58572/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
94 include bug-58593/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
95 include bug-59451/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
96 include bug-59617/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
97 include bug-59661/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
98 include bug-59704/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
99 include bug-59937/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
100 include bug-60237/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
101 include bug-60882/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
102 include bug-61105/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
103 include bug-61191/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
104 include class-concat/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
105 include classdef/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
106 include classdef-multiple-inheritance/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
107 include classes/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
108 include colon-op/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
109 include ctor-vs-method/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
110 include fcn-handle/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
111 include json/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
112 include jupyter-notebook/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
113 include local-functions/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
114 include mex/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
115 include nest/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
116 include private-functions/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
117 include publish/module.mk
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
118 include pkg/module.mk
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
120 define run-octave-tests
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
121 ( $(SHELL) ../run-octave $(RUN_OCTAVE_OPTIONS) $(1) --no-init-file --silent --no-history -p $(abs_top_builddir)/test/mex $(abs_top_srcdir)/test/fntests.m $(abs_top_srcdir)/test ) && \
23278
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
122 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
123 echo ""; \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
124 if [ -f fntests.log ]; then \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
125 echo "Contents of test/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
126 echo ""; \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
127 $(AWK) -f $(srcdir)/show-failures.awk 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
128 else \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
129 echo "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
130 fi; \
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
131 fi
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
132 endef
eb19c1545fb8 display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents: 23048
diff changeset
133
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
134 check-local: $(GENERATED_TEST_FILES) $(MEX_TEST_FUNCTIONS) | $(OCTAVE_INTERPRETER_TARGETS) $(octave_dirstamp)
23883
b3b136bc7ce2 shorten messages displayed at end of make check
John W. Eaton <jwe@octave.org>
parents: 23852
diff changeset
135 $(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
136
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
137 COVERAGE_DIR = coverage
22109
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
138 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
139
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
140 ## 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
141 ## 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
142 ## --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
143 ## 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
144 ## option working.
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
145
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
146 coverage: all
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
147 lcov --directory . --zerocounters
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
148 $(MAKE) $(AM_MAKEFLAGS) check
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
149 $(MKDIR_P) $(COVERAGE_DIR)
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
150 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
151 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
152 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
153 @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
154 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
155 @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
156 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
157 @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
158 @echo ""
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
159 .PHONY: coverage
57ca47db75ec build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents: 22085
diff changeset
160
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
161 conv.tst: mk-conv-tst.sh | $(octave_dirstamp)
23852
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
162 $(AM_V_GEN)rm -f $@-t $@ && \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
163 $(SHELL) $(srcdir)/mk-conv-tst.sh > $@-t && \
23852
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
164 mv $@-t $@
9f05f5afff45 maint: sort lists of files in test makefile snippets
Mike Miller <mtmiller@octave.org>
parents: 23842
diff changeset
165
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
166 sparse.tst: mk-sparse-tst.sh | $(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 $@-t $@ && \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
168 $(SHELL) $(srcdir)/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
169 mv $@-t $@
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 GENERATED_BC_OVERLOADS_DIRS := \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
172 $(shell $(SHELL) $(srcdir)/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
173
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 GENERATED_BC_OVERLOADS_FILES := \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
175 $(shell $(SHELL) $(srcdir)/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
176
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
177 $(GENERATED_BC_OVERLOADS_FILES): mk-bc-overloads-tst-stamp
20311
3373f2f760bc fix dependencies for generated overload operator tests
John W. Eaton <jwe@octave.org>
parents: 20310
diff changeset
178
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
179 .bc-overload-tests-stamp: mk-bc-overloads-tst.sh bc-overloads-expected | $(octave_dirstamp)
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 $(AM_V_GEN)rm -f $@ && \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
181 $(SHELL) $(srcdir)/mk-bc-overloads-tst.sh test $(srcdir)/bc-overloads-expected && \
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 touch $@
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
184 GENERATED_TEST_FILES = \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
185 conv.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
186 sparse.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
187 .bc-overload-tests-stamp
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 fixedtestsdir := $(octtestsdir)/fixed
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
191 TEST_INST_FILES = \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
192 conv.tst \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
193 sparse.tst \
20310
c7f9fcff42f2 test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 $(GENERATED_BC_OVERLOADS_FILES) \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
195 $(filter-out fntests.m, $(TEST_FILES))
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
196
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
197 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
198
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
199 uninstall-local: uninstall-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
200
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
201 install-test-files:
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
202 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
203 if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
204 $(MKDIR_P) $(DESTDIR)$(fixedtestsdir)/`echo $$f | $(SED) 's,/*[^/]*$$,,'`; \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
205 $(INSTALL_DATA) $$d$$f $(DESTDIR)$(fixedtestsdir)/$$f; \
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
206 done
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
207 .PHONY: install-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
208
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
209 uninstall-test-files:
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
210 for f in $(TEST_INST_FILES); do \
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
211 rm -f $(DESTDIR)$(fixedtestsdir)/$$f; \
20373
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
212 done
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
213 .PHONY: uninstall-test-files
3c70050faa1e Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
214
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
215 BUILT_SOURCES += $(GENERATED_TEST_FILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
216
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
217 EXTRA_DIST += \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
218 bc-overloads-expected \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
219 mk-bc-overloads-tst.sh \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
220 mk-conv-tst.sh \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
221 mk-sparse-tst.sh \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
222 mk_bc_overloads_expected.m \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
223 show-failures.awk \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
224 $(addprefix $(srcdir)/, $(TEST_FILES)) \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
225 $(addprefix $(srcdir)/, $(noinst_TEST_FILES)) \
25453
e255f09dc70e initial framework for testing MEX files
John W. Eaton <jwe@octave.org>
parents: 25381
diff changeset
226 $(MEX_TEST_SRC)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
227
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
228 CLEANFILES += \
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
229 $(GENERATED_BC_OVERLOADS_FILES) \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
230 $(GENERATED_TEST_FILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
231
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
232 DISTCLEANFILES += \
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
233 fntests.log
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
234
22043
7d28674f6ff0 build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents: 21964
diff changeset
235 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
236
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
237 test-clean:
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
238 rm -f $(CLEANFILES)
22043
7d28674f6ff0 build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents: 21964
diff changeset
239 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
240 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
241 rm -rf $(MEX_TEST_FUNCTIONS)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
242
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
243 test-distclean: test-clean
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
244 rm -f $(DISTCLEANFILES)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
245
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20330
diff changeset
246 test-maintainer-clean: test-distclean
30813
2637e294ea6b fix botched file rename from previous change
John W. Eaton <jwe@octave.org>
parents: 30208
diff changeset
247 rm -f $(MAINTAINERCLEANFILES)