source: branches/0.9-stable/test/Makefile.am @ 2841

Last change on this file since 2841 was 2841, checked in by Peter, 9 years ago

fixes #721. fix install-html-local rule and add a install-check rule just checking that html got installed to catch this problem within distcheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.5 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2841 2012-09-17 01:38:14Z peter $
4
5# Copyright (C) 2003 Daniel Dalevi, Jari Häkkinen
6# Copyright (C) 2004 Jari Häkkinen, Peter Johansson, Cecilia Ritz
7# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
9# Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson
10#
11# This file is part of the yat library, http://dev.thep.lu.se/yat
12#
13# The yat library is free software; you can redistribute it
14# and/or modify it under the terms of the GNU General Public License as
15# published by the Free Software Foundation; either version 3 of the
16# License, or (at your option) any later version.
17#
18# The yat library is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21# General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with yat. If not, see <http://www.gnu.org/licenses/>.
25
26## we use suffix .cc for all source
27AM_DEFAULT_SOURCE_EXT = .cc
28
29noinst_HEADERS = test/Suite.h
30
31check_LTLIBRARIES = test/libyattest.la
32
33check_SCRIPTS = test/common_defs.sh
34
35EXTRA_PROGRAMS = test/alignment.test test/averager.test \
36  test/averager1.test \
37  test/averager3.test \
38  test/averager4.test \
39  test/codon.test test/commandline.test \
40  test/concept.test \
41  test/consensus_inputranker.test test/data_lookup_1d.test  \
42  test/data_weight.test test/data_weight_proxy.test test/distance.test \
43  test/dna.test test/ensemble.test test/feature_selection.test \
44  test/fileutil.test \
45  test/fisher.test test/genomic_position.test test/getline_iterator.test \
46  test/gff.test test/help.test test/histogram.test \
47  test/igp.test test/index.test test/inputranker.test test/interpolation.test \
48  test/iterator.test test/kendall.test test/kernel_lookup.test \
49  test/kernel_pca.test test/kernel.test \
50  test/knn.test test/kolmogorov_smirnov.test test/large_file.test \
51  test/matrix_lookup.test \
52  test/matrix_lookup_weighted.test test/matrix.test \
53  test/matrix_weighted.test test/merge.test test/nbc.test \
54  test/ncc.test test/nni.test test/normalization.test test/pca.test \
55  test/range.test test/regression.test test/rnd.test \
56  test/rng-mt.test \
57  test/roc.test \
58  test/score.test test/segment.test test/smart_ptr.test   \
59  test/smoother.test test/spearman.test \
60  test/split.test test/statistics.test test/stream_redirect.test \
61  test/subset_generator.test test/svd.test test/svm.test \
62  test/svm_multi_class.test test/target.test \
63  test/ttest.test test/tukey.test \
64  test/utility.test test/vector.test test/version.test test/view.test
65
66TESTS = $(EXTRA_PROGRAMS)
67CLEANFILES += $(EXTRA_PROGRAMS)
68
69# tests not passing through yet
70XFAIL_TESTS =
71
72DISTRIBUTED_TESTS = \
73test/doxygen_test.sh \
74test/help_test.sh \
75test/static_test.sh \
76test/yat_config_test.sh \
77test/yat_config_cblas_test.sh \
78test/yat_cpp_add_flag_test.sh \
79test/yat_cxx_add_flag_test.sh \
80test/yat_ld_add_flag_test.sh \
81test/yat_have_svn_wc_test.sh \
82test/yat_lt_link_ifelse_test.sh \
83test/yat_msg_error_test.sh \
84test/yat_msg_error_test2.sh \
85test/yat_m4_test.sh \
86test/yat_m4_test2.sh \
87test/yat_prog_move_if_change_test.sh \
88test/yat_revision_header_test.sh \
89test/yat_svn_release_year_test.sh \
90test/yat_svn_revision_test.sh
91
92TESTS += $(DISTRIBUTED_TESTS)
93EXTRA_DIST += $(DISTRIBUTED_TESTS)
94
95TEST_EXTENSIONS = .sh .test
96
97LDADD = yat/libyat.la test/libyattest.la $(YAT_LIBS)
98
99test_large_file_test_LDADD = test/libyattest.la
100
101test_libyattest_la_SOURCES = test/Suite.cc
102
103lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
104
105# dependencies for lazycheck
106test/help_test.log: test/help.test test/common_defs.sh
107test/static_test.log: $(srcdir)/m4/yat.m4 test/common_defs.sh
108test/yat_config_test.log: build_support/yat-config \
109  build_support/for_installation/yat-config test/common_defs.sh
110test/yat_config_cblas_test.log: build_support/yat-config test/common_defs.sh
111test/yat_cpp_add_flag_test.log: $(srcdir)/m4/yat_add_flag.m4 \
112  $(srcdir)/m4/ax_append_flag.m4 \
113  $(srcdir)/m4/ax_check_preproc_flag.m4 \
114  test/common_defs.sh
115test/yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
116  $(top_srcdir)/m4/ax_append_compile_flags.m4 \
117  $(top_srcdir)/m4/ax_append_flag.m4 \
118  $(top_srcdir)/m4/ax_check_compile_flag.m4 \
119  test/common_defs.sh
120test/yat_have_svn_wc_test.log: $(srcdir)/m4/yat_am_macros.m4 test/common_defs.sh
121test/yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
122  $(top_srcdir)/m4/ax_append_flag.m4 \
123  $(top_srcdir)/m4/ax_append_link_flags.m4 \
124  $(top_srcdir)/m4/ax_check_link_flag.m4 \
125  test/common_defs.sh
126test/yat_lt_link_ifelse_test.log: $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
127  $(top_srcdir)/m4/yat.m4 test/common_defs.sh \
128  $(top_builddir)/build_support/yat-config
129test/yat_m4_test.log:$(top_srcdir)/m4/yat.m4 test/common_defs.sh \
130  $(top_builddir)/build_support/yat-config
131test/yat_m4_test2.log:$(top_srcdir)/m4/yat.m4 test/common_defs.sh
132test/yat_msg_error_test.log:$(srcdir)/m4/yat_msg_error.m4 test/common_defs.sh
133test/yat_msg_error_test2.log:$(srcdir)/m4/yat_msg_error.m4 test/common_defs.sh
134test/yat_prog_move_if_change_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
135  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
136  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
137  $(top_srcdir)/m4/ax_file_escapes.m4 \
138  test/common_defs.sh
139test/yat_revision_header_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
140  test/common_defs.sh \
141  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
142  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
143  $(top_srcdir)/m4/ax_file_escapes.m4
144test/yat_svn_release_year_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
145  test/common_defs.sh \
146  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
147  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
148  $(top_srcdir)/m4/ax_file_escapes.m4
149test/yat_svn_revision_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
150  test/common_defs.sh \
151  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
152  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
153  $(top_srcdir)/m4/ax_file_escapes.m4
154
155if DX_ENABLE_HTML
156test/doxygen_test.log: doc/$(DX_HTML_OUTPUT)/index.html
157endif
158
159# yat-hello is an example of a tiny package that uses yat
160noinst_DATA = $(srcdir)/test/yat-hello-1.0.tar.gz
161
162# Directory yat-hello contains what a developer would check out
163# from a VCS, i.e., no files generated by autotools.
164yat_hello_sources  =
165yat_hello_sources += $(srcdir)/test/yat-hello/configure.ac
166yat_hello_sources += $(srcdir)/test/yat-hello/Makefile.am
167yat_hello_sources += $(srcdir)/test/yat-hello/hello.cc
168
169EXTRA_DIST += $(yat_hello_sources)
170
171yat_hello_tmp_files =
172yat_hello_tmp_files += Makefile.in
173yat_hello_tmp_files += autom4te.cache
174yat_hello_tmp_files += aclocal.m4
175yat_hello_tmp_files += build-aux
176yat_hello_tmp_files += configure
177yat_hello_tmp_files += m4
178
179
180yat_hello_deps = $(yat_hello_sources)
181yat_hello_deps += $(top_srcdir)/m4/yat.m4
182## We depend on version.m4 so tarball is updated at every release (at least)
183yat_hello_deps += $(top_srcdir)/m4/version.m4
184
185EXTRA_DIST += $(srcdir)/test/yat-hello-1.0.tar.gz
186
187$(srcdir)/test/yat-hello-1.0.tar.gz: $(yat_hello_deps)
188  $(AM_V_GEN)cd $(srcdir)/test/yat-hello \
189  && $(MKDIR_P) m4 \
190  && cp $(abs_top_srcdir)/m4/yat.m4 m4/ \
191  && autoreconf -if $(yat_dev_null) \
192  && ./configure --without-yat $(yat_dev_null) \
193  && $(MAKE) $(AM_MAKEFLAGS) dist $(yat_dev_null) \
194  && $(MAKE) $(AM_MAKEFLAGS) distclean $(yat_dev_null) \
195  && mv yat-hello-1.0.tar.gz .. \
196  && rm -rf $(yat_hello_tmp_files)
197
198INSTALL_CHECK_TARGETS += yat-hello-check
199
200yat-hello-check: $(srcdir)/test/yat-hello-1.0.tar.gz
201  GZIP=$(GZIP_ENV) gzip -dc $(srcdir)/test/yat-hello-1.0.tar.gz | $(am__untar)\
202  && cd yat-hello-1.0 \
203  && ./configure --with-yat=$(bindir) \
204  && $(MAKE) $(AM_MAKEFLAGS) all \
205  && ./hello \
206  && cd .. \
207  && rm -rf yat-hello-1.0
208
209
210## test data
211EXTRA_DIST += \
212test/data/isoform.peaks \
213test/data/knni_matrix.data \
214test/data/knni_result.data \
215test/data/knni_weight.data \
216test/data/nm_alpha_linear_matlab.txt \
217test/data/nm_data_centralized.txt \
218test/data/nm_kernel.txt \
219test/data/nm_kernel2.txt \
220test/data/nm_kernel_gaussian.txt \
221test/data/nm_target_bin.txt \
222test/data/normalization_test.data \
223test/data/rank_data.txt \
224test/data/rank_target.txt \
225test/data/regression_gauss.data \
226test/data/small.gff2 \
227test/data/small.gff3 \
228test/data/sorlie_centroid_classes.txt \
229test/data/sorlie_centroid_data.txt  \
230test/data/sorlie_centroid_predictions.txt \
231test/data/sorlie_centroids.txt \
232test/data/vector1.data  \
233test/data/vector2.data \
234test/data/vector3.data \
235test/data/vector4.data \
236test/data/vector5.data \
237test/data/vector6.data  \
238test/data/vector7.data \
239test/data/wenni_result.data \
240test/data/wenni_weight.data
Note: See TracBrowser for help on using the repository browser.