Mercurial > octave-nkf
annotate test/Makefile.am @ 20339:dadfb0be8a42
write sparse tests to stdout
* test/build-sparse-tests.sh: Write output to stdout.
* Makefile.am (sparse.tst): Adapt rule.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Jul 2015 18:00:39 -0400 |
parents | 38487298513b |
children | 4f911b4e012b |
rev | line source |
---|---|
15269
b42167e9d805
maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents:
14544
diff
changeset
|
1 # Makefile for Octave's test directory |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # |
19731
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19669
diff
changeset
|
3 # Copyright (C) 1994-2015 John W. Eaton |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 # |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 # This file is part of Octave. |
19627
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
6 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 # Octave is free software; you can redistribute it and/or modify it |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 # under the terms of the GNU General Public License as published by the |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 # Free Software Foundation; either version 3 of the License, or (at |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 # your option) any later version. |
19627
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
11 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 # Octave is distributed in the hope that it will be useful, but WITHOUT |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 # for more details. |
19627
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
16 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 # You should have received a copy of the GNU General Public License |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 # along with Octave; see the file COPYING. If not, see |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 # <http://www.gnu.org/licenses/>. |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12717
diff
changeset
|
21 include $(top_srcdir)/build-aux/common.mk |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 FCN_FILES = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 fntests.m \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
25 args.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
26 bug-31371.tst \ |
16360
11115c237231
recognize variables when parsing (bug #38576)
John W. Eaton <jwe@octave.org>
parents:
16030
diff
changeset
|
27 bug-38576.tst \ |
19669
bdf90710dddf
Map -pi to pi for principal argument used in complex operators (bug #43313).
Daniel J Sebald <daniel.sebald@ieee.org>
parents:
19647
diff
changeset
|
28 colormaps.tst \ |
bdf90710dddf
Map -pi to pi for principal argument used in complex operators (bug #43313).
Daniel J Sebald <daniel.sebald@ieee.org>
parents:
19647
diff
changeset
|
29 complex.tst \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
30 diag-perm.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
31 error.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
32 eval-catch.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
33 for.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
34 func.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
35 global.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
36 if.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
37 index.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
38 io.tst \ |
16930
c2a57f9c6a2e
maint: Move tests for JIT compiler into separate .tst file.
Rik <rik@octave.org>
parents:
16605
diff
changeset
|
39 jit.tst \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
40 line-continue.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
41 logical-index.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
42 null-assign.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
43 parser.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
44 prefer.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
45 range.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
46 recursion.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
47 return.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
48 slice.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
49 struct.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
50 switch.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
51 system.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
52 transpose.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
53 try.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
54 unwind.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
55 while.tst |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 |
14329
8d1ae996c122
also save and restore symbol table context in parser (bug #35448)
John W. Eaton <jwe@octave.org>
parents:
14163
diff
changeset
|
57 include bug-35448/module.mk |
14507
3f21c0c34b8f
check for function/file name mismatch when parsing class methods
John W. Eaton <jwe@octave.org>
parents:
14330
diff
changeset
|
58 include bug-36025/module.mk |
15998
59715612ea72
add a test for bug #38236
Carlo de Falco <cdf@users.sourceforge.net>
parents:
15269
diff
changeset
|
59 include bug-38236/module.mk |
16605
2f8fb02a6c31
erase subfunctions when primary function scope is deleted (bug #38691)
John W. Eaton <jwe@octave.org>
parents:
16604
diff
changeset
|
60 include bug-38691/module.mk |
20225
38487298513b
Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
19826
diff
changeset
|
61 include bug-44940/module.mk |
15952
9c7e1c633e47
Include classdef tests in Makefile.am
Ben Abbott <bpabbott@mac.com>
parents:
15269
diff
changeset
|
62 include classdef/module.mk |
13192
968e89b45bbf
move tests for classes into subdirectories
John W. Eaton <jwe@octave.org>
parents:
13147
diff
changeset
|
63 include classes/module.mk |
13814
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
13193
diff
changeset
|
64 include class-concat/module.mk |
13147
6c952376482d
look for methods before constructors
John W. Eaton <jwe@octave.org>
parents:
13140
diff
changeset
|
65 include ctor-vs-method/module.mk |
13193
a00ff5cedb9b
also look to parent classes for overloaded functions called through handles
John W. Eaton <jwe@octave.org>
parents:
13192
diff
changeset
|
66 include fcn-handle-derived-resolution/module.mk |
14544
be18c9e359bf
Nested function support (bug #35772)
Max Brister <max@2bass.com>
parents:
14507
diff
changeset
|
67 include nest/module.mk |
13147
6c952376482d
look for methods before constructors
John W. Eaton <jwe@octave.org>
parents:
13140
diff
changeset
|
68 |
16603
e5c0acc31640
install .gdbinit in test directory
John W. Eaton <jwe@octave.org>
parents:
16360
diff
changeset
|
69 all-local: .gdbinit |
e5c0acc31640
install .gdbinit in test directory
John W. Eaton <jwe@octave.org>
parents:
16360
diff
changeset
|
70 |
e5c0acc31640
install .gdbinit in test directory
John W. Eaton <jwe@octave.org>
parents:
16360
diff
changeset
|
71 .gdbinit: ../etc/gdbinit |
e5c0acc31640
install .gdbinit in test directory
John W. Eaton <jwe@octave.org>
parents:
16360
diff
changeset
|
72 @$(gdbinit_install_rule) |
e5c0acc31640
install .gdbinit in test directory
John W. Eaton <jwe@octave.org>
parents:
16360
diff
changeset
|
73 |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
74 check: sparse.tst bc-overload-tests.stamp |
16604
5b6d8bfdea25
allow options to be passed to run-octave script used in check target
John W. Eaton <jwe@octave.org>
parents:
16603
diff
changeset
|
75 $(top_builddir)/run-octave $(RUN_OCTAVE_OPTIONS) --norc --silent --no-history $(srcdir)/fntests.m $(srcdir) |
10004
e517da95bf98
Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents:
9995
diff
changeset
|
76 |
18328
c3f3fa5a5db5
build: Add rule to check with jit compiler enabled
Stefan Mahr <dac922@gmx.de>
parents:
17745
diff
changeset
|
77 if AMCOND_HAVE_LLVM |
c3f3fa5a5db5
build: Add rule to check with jit compiler enabled
Stefan Mahr <dac922@gmx.de>
parents:
17745
diff
changeset
|
78 check-jit: sparse.tst bc-overload-tests.stamp |
c3f3fa5a5db5
build: Add rule to check with jit compiler enabled
Stefan Mahr <dac922@gmx.de>
parents:
17745
diff
changeset
|
79 $(top_builddir)/run-octave $(RUN_OCTAVE_OPTIONS) --jit-compiler --norc --silent --no-history $(srcdir)/fntests.m $(srcdir) |
c3f3fa5a5db5
build: Add rule to check with jit compiler enabled
Stefan Mahr <dac922@gmx.de>
parents:
17745
diff
changeset
|
80 endif |
c3f3fa5a5db5
build: Add rule to check with jit compiler enabled
Stefan Mahr <dac922@gmx.de>
parents:
17745
diff
changeset
|
81 |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
82 sparse.tst: build-sparse-tests.sh |
20339
dadfb0be8a42
write sparse tests to stdout
John W. Eaton <jwe@octave.org>
parents:
20225
diff
changeset
|
83 $(AM_V_GEN)rm -f $@-t $@ && \ |
dadfb0be8a42
write sparse tests to stdout
John W. Eaton <jwe@octave.org>
parents:
20225
diff
changeset
|
84 $(srcdir)/build-sparse-tests.sh > $@-t && \ |
dadfb0be8a42
write sparse tests to stdout
John W. Eaton <jwe@octave.org>
parents:
20225
diff
changeset
|
85 mv $@-t $@ |
10004
e517da95bf98
Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents:
9995
diff
changeset
|
86 |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
87 GENERATED_BC_OVERLOADS_DIRS := \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
88 $(shell $(srcdir)/build-bc-overload-tests.sh --list-dirs) |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
89 |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
90 GENERATED_BC_OVERLOADS_FILES := \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
91 $(shell $(srcdir)/build-bc-overload-tests.sh --list-files) |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
92 |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
93 bc-overload-tests.stamp: build-bc-overload-tests.sh bc-overloads-expected |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
94 $(srcdir)/build-bc-overload-tests.sh $(srcdir)/bc-overloads-expected |
16028
85b8a1d435d6
* test/Makefile.am: Use stamp file for bc-overload-tests.
John W. Eaton <jwe@octave.org>
parents:
16024
diff
changeset
|
95 touch $@ |
16024
98f90d4dca20
fix rules for generated test files
John W. Eaton <jwe@octave.org>
parents:
16019
diff
changeset
|
96 |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
97 BUILT_SOURCES = bc-overload-tests.stamp |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
98 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
99 EXTRA_DIST = \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
100 build-sparse-tests.sh \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
101 build-bc-overload-tests.sh \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
102 bc-overloads-expected \ |
10090
655ab6f6c369
add tests for built-in class overloads
Jaroslav Hajek <highegg@gmail.com>
parents:
10004
diff
changeset
|
103 build_bc_overloads_expected.m \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 $(FCN_FILES) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 |
9906 | 106 CLEANFILES = \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
107 sparse.tst \ |
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
108 bc-overload-tests.stamp \ |
16024
98f90d4dca20
fix rules for generated test files
John W. Eaton <jwe@octave.org>
parents:
16019
diff
changeset
|
109 $(GENERATED_BC_OVERLOADS_FILES) |
9906 | 110 |
111 DISTCLEANFILES = \ | |
17381
06b46e67f868
build: Remove generated files so that 'make distcheck' passes.
Rik <rik@octave.org>
parents:
16930
diff
changeset
|
112 .gdbinit \ |
9906 | 113 fntests.log |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
114 |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
115 fixedtestsdir := $(octtestsdir)/fixed |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
116 |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
117 nobase_fixedtests_DATA = \ |
16030
1af8d21608b7
rename all test files in the test directory from test_X.m to X.tst
John W. Eaton <jwe@octave.org>
parents:
16028
diff
changeset
|
118 sparse.tst \ |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
119 $(GENERATED_BC_OVERLOADS_FILES) \ |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
120 $(filter-out fntests.m, $(FCN_FILES)) |
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
121 |
10837
6ea0cf31667d
Add Makefile options to clean up build directories and allow 'make distcheck' to finish
Rik <octave@nomad.inbox5.com>
parents:
10096
diff
changeset
|
122 clean-local: |
16019
5b2126a8c84f
install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents:
15998
diff
changeset
|
123 -rm -rf $(GENERATED_BC_OVERLOADS_DIRS) |