annotate test/Makefile.am @ 31149:f125ddb46055

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