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