Mercurial > octave
annotate test/module.mk @ 23495:8308417aff1c
use automake %reldir% feature
* configure.ac (AM_INIT_AUTOMAKE): Require automake 1.14.
* doc/doxyhtml/module.mk, doc/interpreter/module.mk,
doc/liboctave/module.mk, doc/module.mk, doc/refcard/module.mk,
etc/module.mk, examples/module.mk, libgui/graphics/module.mk,
libgui/module.mk, libgui/src/module.mk, libinterp/corefcn/module.mk,
libinterp/dldfcn/config-module.awk, libinterp/module.mk,
libinterp/octave-value/module.mk, libinterp/operators/module.mk,
libinterp/parse-tree/module.mk, libinterp/template-inst/module.mk,
liboctave/array/module.mk, liboctave/external/Faddeeva/module.mk,
liboctave/external/amos/module.mk,
liboctave/external/blas-xtra/module.mk,
liboctave/external/daspk/module.mk,
liboctave/external/dasrt/module.mk,
liboctave/external/dassl/module.mk,
liboctave/external/fftpack/module.mk,
liboctave/external/lapack-xtra/module.mk,
liboctave/external/module.mk, liboctave/external/odepack/module.mk,
liboctave/external/ordered-qz/module.mk,
liboctave/external/quadpack/module.mk,
liboctave/external/ranlib/module.mk,
liboctave/external/slatec-err/module.mk,
liboctave/external/slatec-fn/module.mk, liboctave/module.mk,
liboctave/numeric/module.mk, liboctave/operators/module.mk,
liboctave/system/module.mk, liboctave/util/module.mk,
liboctave/wrappers/module.mk, m4/module.mk,
scripts/+containers/module.mk, scripts/@ftp/module.mk,
scripts/audio/module.mk, scripts/deprecated/module.mk,
scripts/elfun/module.mk, scripts/general/module.mk,
scripts/geometry/module.mk, scripts/gui/module.mk,
scripts/help/module.mk, scripts/image/module.mk, scripts/io/module.mk,
scripts/java/module.mk, scripts/linear-algebra/module.mk,
scripts/miscellaneous/module.mk, scripts/module.mk,
scripts/ode/module.mk, scripts/optimization/module.mk,
scripts/path/module.mk, scripts/pkg/module.mk,
scripts/plot/appearance/module.mk, scripts/plot/draw/module.mk,
scripts/plot/util/module.mk, scripts/polynomial/module.mk,
scripts/prefs/module.mk, scripts/profiler/module.mk,
scripts/set/module.mk, scripts/signal/module.mk,
scripts/sparse/module.mk, scripts/specfun/module.mk,
scripts/special-matrix/module.mk, scripts/startup/module.mk,
scripts/statistics/base/module.mk,
scripts/statistics/distributions/module.mk,
scripts/statistics/models/module.mk,
scripts/statistics/tests/module.mk, scripts/strings/module.mk,
scripts/testfun/module.mk, scripts/time/module.mk, src/module.mk,
test/bug-35448/module.mk, test/bug-36025/module.mk,
test/bug-38236/module.mk, test/bug-38691/module.mk,
test/bug-41723/module.mk, test/bug-44940/module.mk,
test/bug-46660/module.mk, test/bug-50014/module.mk,
test/bug-50035/module.mk, test/bug-50716/module.mk,
test/class-concat/module.mk,
test/classdef-multiple-inheritance/module.mk, test/classdef/module.mk,
test/classes/module.mk, test/ctor-vs-method/module.mk,
test/fcn-handle-derived-resolution/module.mk, test/module.mk,
test/nest/module.mk, test/publish/module.mk:
Use %reldir% and %canon_reldir% where possible.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 15 May 2017 16:17:58 -0400 |
parents | f1ea44e92df8 |
children | 279a6bd429f4 |
rev | line source |
---|---|
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
1 %canon_reldir%_EXTRA_DIST = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
2 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
3 %canon_reldir%_CLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
4 %canon_reldir%_DISTCLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
5 %canon_reldir%_MAINTAINERCLEANFILES = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
6 |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 TEST_FILES += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
8 %reldir%/fntests.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
9 %reldir%/args.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
10 %reldir%/bug-31371.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
11 %reldir%/bug-38565.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
12 %reldir%/bug-38576.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
13 %reldir%/bug-46330.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
14 %reldir%/bug-49904.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
15 %reldir%/colormaps.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
16 %reldir%/command.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
17 %reldir%/complex.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
18 %reldir%/diag-perm.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
19 %reldir%/error.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
20 %reldir%/eval-catch.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
21 %reldir%/for.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
22 %reldir%/func.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
23 %reldir%/global.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
24 %reldir%/if.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
25 %reldir%/index.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
26 %reldir%/io.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
27 %reldir%/jit.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
28 %reldir%/line-continue.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
29 %reldir%/logical-index.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
30 %reldir%/null-assign.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
31 %reldir%/parser.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
32 %reldir%/prefer.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
33 %reldir%/range.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
34 %reldir%/recursion.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
35 %reldir%/return.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
36 %reldir%/single-index.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
37 %reldir%/slice.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
38 %reldir%/struct.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
39 %reldir%/switch.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
40 %reldir%/system.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
41 %reldir%/transpose.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
42 %reldir%/try.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
43 %reldir%/unwind.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
44 %reldir%/while.tst |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
46 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
48 include %reldir%/bug-35448/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
49 include %reldir%/bug-36025/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
50 include %reldir%/bug-38236/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
51 include %reldir%/bug-38691/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
52 include %reldir%/bug-41723/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
53 include %reldir%/bug-44940/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
54 include %reldir%/bug-46660/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
55 include %reldir%/bug-50014/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
56 include %reldir%/bug-50035/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
57 include %reldir%/bug-50716/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
58 include %reldir%/class-concat/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
59 include %reldir%/classdef/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
60 include %reldir%/classdef-multiple-inheritance/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
61 include %reldir%/classes/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
62 include %reldir%/ctor-vs-method/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
63 include %reldir%/fcn-handle-derived-resolution/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
64 include %reldir%/nest/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
65 include %reldir%/publish/module.mk |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
67 ALL_LOCAL_TARGETS += %reldir%/.gdbinit |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
69 %reldir%/.gdbinit: etc/gdbinit |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 @$(gdbinit_install_rule) |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
71 |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
72 define run-octave-tests |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
73 cd test && $(SHELL) ../run-octave $(RUN_OCTAVE_OPTIONS) $(1) --norc --silent --no-history $(abs_top_srcdir)/%reldir%/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
|
74 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
|
75 echo ""; \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
76 if [ -f %reldir%/fntests.log ]; then \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
77 echo "Contents of %reldir%/fntests.log:"; \ |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
78 echo ""; \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
79 $(AWK) -f $(srcdir)/%reldir%/show-failures.awk %reldir%/fntests.log; \ |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
80 else \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
81 echo "%reldir%/fntests.log is missing!"; \ |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
82 fi; \ |
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
83 fi |
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
84 endef |
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
85 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
86 check-local: $(GENERATED_TEST_FILES) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp) |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
87 $(call run-octave-tests) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
88 |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
89 if AMCOND_HAVE_LLVM |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
90 check-jit: $(GENERATED_TEST_FILES) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp) |
23278
eb19c1545fb8
display fntests.log at end of make check if V=1
John W. Eaton <jwe@octave.org>
parents:
23048
diff
changeset
|
91 $(call run-octave-tests,--jit-compiler) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 endif |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
94 COVERAGE_DIR = %reldir%/coverage |
22109
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
95 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
|
96 |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
97 ## 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
|
98 ## 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
|
99 ## --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
|
100 ## 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
|
101 ## option working. |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
102 |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
103 coverage: all |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
104 lcov --directory . --zerocounters |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
105 $(MAKE) $(AM_MAKEFLAGS) check |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
106 $(MKDIR_P) $(COVERAGE_DIR) |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
107 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
|
108 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
|
109 @echo "" |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
110 @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
|
111 @echo "" |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
112 @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
|
113 @echo "" |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
114 @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
|
115 @echo "" |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
116 .PHONY: coverage |
57ca47db75ec
build: add 'make coverage' target to build code coverage report
Mike Miller <mtmiller@octave.org>
parents:
22085
diff
changeset
|
117 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
118 %reldir%/sparse.tst: %reldir%/build-sparse-tests.sh | %reldir%/$(octave_dirstamp) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
119 $(AM_V_GEN)rm -f $@-t $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
120 $(SHELL) $(srcdir)/%reldir%/build-sparse-tests.sh > $@-t && \ |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
121 mv $@-t $@ |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
123 %reldir%/conv.tst: %reldir%/build-conv-tests.sh | %reldir%/$(octave_dirstamp) |
22284
a7e68243a326
new tests for type conversions
John W. Eaton <jwe@octave.org>
parents:
22113
diff
changeset
|
124 $(AM_V_GEN)rm -f $@-t $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
125 $(SHELL) $(srcdir)/%reldir%/build-conv-tests.sh > $@-t && \ |
22284
a7e68243a326
new tests for type conversions
John W. Eaton <jwe@octave.org>
parents:
22113
diff
changeset
|
126 mv $@-t $@ |
a7e68243a326
new tests for type conversions
John W. Eaton <jwe@octave.org>
parents:
22113
diff
changeset
|
127 |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
128 GENERATED_BC_OVERLOADS_DIRS := \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
129 $(shell $(SHELL) $(srcdir)/%reldir%/build-bc-overload-tests.sh test --list-dirs) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
130 |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
131 GENERATED_BC_OVERLOADS_FILES := \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
132 $(shell $(SHELL) $(srcdir)/%reldir%/build-bc-overload-tests.sh test --list-files) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
133 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
134 $(GENERATED_BC_OVERLOADS_FILES): %reldir%/.bc-overload-tests-stamp |
20311
3373f2f760bc
fix dependencies for generated overload operator tests
John W. Eaton <jwe@octave.org>
parents:
20310
diff
changeset
|
135 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
136 %reldir%/.bc-overload-tests-stamp: %reldir%/build-bc-overload-tests.sh %reldir%/bc-overloads-expected | %reldir%/$(octave_dirstamp) |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
137 $(AM_V_GEN)rm -f $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
138 $(SHELL) $(srcdir)/%reldir%/build-bc-overload-tests.sh test $(srcdir)/%reldir%/bc-overloads-expected && \ |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
139 touch $@ |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
140 |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
141 GENERATED_TEST_FILES = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
142 %reldir%/conv.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
143 %reldir%/sparse.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
144 %reldir%/.bc-overload-tests-stamp |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
145 |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
146 fixedtestsdir := $(octtestsdir)/fixed |
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
147 |
20373
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
148 TEST_INST_FILES = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
149 %reldir%/conv.tst \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
150 %reldir%/sparse.tst \ |
20310
c7f9fcff42f2
test/module.mk: New file missing from changeset bacaec9b5535.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
151 $(GENERATED_BC_OVERLOADS_FILES) \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
152 $(filter-out %reldir%/fntests.m, $(TEST_FILES)) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
153 |
20373
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
154 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
|
155 |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
156 uninstall-local: uninstall-test-files |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
157 |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
158 install-test-files: |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
159 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
|
160 if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
161 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \ |
20373
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
162 $(MKDIR_P) $(DESTDIR)$(fixedtestsdir)/`echo $$base | $(SED) 's,/*[^/]*$$,,'`; \ |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
163 $(INSTALL_DATA) $$d$$f $(DESTDIR)$(fixedtestsdir)/$$base; \ |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
164 done |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
165 .PHONY: install-test-files |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
166 |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
167 uninstall-test-files: |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
168 for f in $(TEST_INST_FILES); do \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
169 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \ |
20373
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
170 rm -f $(DESTDIR)$(fixedtestsdir)/$$base; \ |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
171 done |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
172 .PHONY: uninstall-test-files |
3c70050faa1e
Fix install paths of fixed and generated test files
Mike Miller <mtmiller@octave.org>
parents:
20368
diff
changeset
|
173 |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
174 BUILT_SOURCES += $(GENERATED_TEST_FILES) |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
175 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
176 %canon_reldir%_EXTRA_DIST += \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
177 %reldir%/build-conv-tests.sh \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
178 %reldir%/build-sparse-tests.sh \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
179 %reldir%/build-bc-overload-tests.sh \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
180 %reldir%/bc-overloads-expected \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
181 %reldir%/build_bc_overloads_expected.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
182 %reldir%/show-failures.awk \ |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
183 $(TEST_FILES) |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
184 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
185 EXTRA_DIST += $(%canon_reldir%_EXTRA_DIST) |
20368
2f9119bb3fe5
build: Add EXTRA_DIST files frob libgui/ and test/ to tarball.
Rik <rik@octave.org>
parents:
20367
diff
changeset
|
186 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
187 %canon_reldir%_CLEANFILES += \ |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
188 $(GENERATED_BC_OVERLOADS_FILES) \ |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
189 $(GENERATED_TEST_FILES) |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
190 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
191 %canon_reldir%_DISTCLEANFILES += \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
192 %reldir%/.gdbinit \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
193 %reldir%/fntests.log |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
194 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
195 CLEANFILES += $(%canon_reldir%_CLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
196 DISTCLEANFILES += $(%canon_reldir%_DISTCLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
197 MAINTAINERCLEANFILES += $(%canon_reldir%_MAINTAINERCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
198 |
22043
7d28674f6ff0
build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents:
21964
diff
changeset
|
199 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
|
200 |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
201 test-clean: |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
202 rm -f $(%canon_reldir%_CLEANFILES) |
22043
7d28674f6ff0
build: delete generated @class subdirectories for test suite on 'make clean'
Mike Miller <mtmiller@octave.org>
parents:
21964
diff
changeset
|
203 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
|
204 rm -rf $(COVERAGE_DIR) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
205 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
206 test-distclean: test-clean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
207 rm -f $(%canon_reldir%_DISTCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
208 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20330
diff
changeset
|
209 test-maintainer-clean: test-distclean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23386
diff
changeset
|
210 rm -f $(%canon_reldir%_MAINTAINERCLEANFILES) |