source: trunk/test/Makefile.am @ 3605

Last change on this file since 3605 was 3605, checked in by Peter, 6 years ago

A first go at implementing template expression in order to provide
fast linalg operators with a intuitive interface.

Currently these operators are implemented (far from a complete set)
Vector + Vector
Vector - Vector
Vector * Vector
Scalar * Vector
Vector * Scalar
Matrix * Vector
Vector * Matrix
Matrix + Matrix
Matrix - Matrix
Matrix * Matrix
Scalar * Matrix
Matrix * Scalar

refs #836

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.5 KB
Line 
1## $Id: Makefile.am 3605 2017-01-27 05:19:50Z peter $
2
3# Copyright (C) 2003 Daniel Dalevi, Jari Häkkinen
4# Copyright (C) 2004 Jari Häkkinen, Peter Johansson, Cecilia Ritz
5# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
7# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Peter Johansson
8#
9# This file is part of the yat library, http://dev.thep.lu.se/yat
10#
11# The yat library is free software; you can redistribute it
12# and/or modify it under the terms of the GNU General Public License as
13# published by the Free Software Foundation; either version 3 of the
14# License, or (at your option) any later version.
15#
16# The yat library is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with yat. If not, see <http://www.gnu.org/licenses/>.
23
24## we use suffix .cc for all source
25AM_DEFAULT_SOURCE_EXT = .cc
26
27noinst_HEADERS = test/Suite.h
28
29check_LTLIBRARIES = test/libyattest.la
30
31check_SCRIPTS = test/defs.sh
32
33EXTRA_DIST += test/init.sh
34
35EXTRA_PROGRAMS = test/alignment.test \
36  test/alignment2.test \
37  test/averager.test \
38  test/averager1.test \
39  test/averager3.test \
40  test/averager4.test \
41  test/bam.test \
42  test/bam_pair_analyse.test \
43  test/bam_iterator.test \
44  test/bam_read_filter.test \
45  test/bam_region_iterator.test \
46  test/bam_header.test \
47  test/bam_header2.test \
48  test/bam_pair_iterator.test \
49  test/cigar.test \
50  test/cigar2.test \
51  test/cigar_iterator.test \
52  test/codon.test test/commandline.test \
53  test/concept.test \
54  test/consensus_inputranker.test \
55  test/copy_k_of_n.test \
56  test/data_lookup_1d.test  \
57  test/data_weight.test test/data_weight_proxy.test \
58  test/deleter.test \
59  test/distance.test \
60  test/dna.test \
61  test/dna_reverse_complement.test \
62  test/ensemble.test \
63  test/fasta.test \
64  test/feature_selection.test \
65  test/fileutil.test \
66  test/fisher.test test/genomic_position.test test/getline_iterator.test \
67  test/gff.test test/help.test test/histogram.test \
68  test/igp.test test/index.test test/inputranker.test test/interpolation.test \
69  test/iterator.test test/kendall.test test/kernel_lookup.test \
70  test/kernel_matrix.test \
71  test/kernel_pca.test test/kernel.test \
72  test/knn.test test/kolmogorov_smirnov.test test/large_file.test \
73  test/likelihood_ratio_test_binomial.test \
74  test/matrix_lookup.test \
75  test/matrix_lookup_weighted.test test/matrix.test \
76  test/matrix_expression.test \
77  test/matrix_weighted.test test/merge.test \
78  test/merge_iterator.test test/nbc.test \
79  test/ncc.test test/nni.test test/normalization.test \
80  test/ostream_iterator.test \
81  test/pca.test \
82  test/phred.test \
83  test/pileup.test \
84  test/priority_queue.test \
85  test/queue.test test/queue2.test \
86  test/range.test test/regression.test test/rnd.test \
87  test/rng-mt.test \
88  test/roc.test \
89  test/score.test \
90  test/scheduler.test \
91  test/scheduler2.test \
92  test/scheduler3.test \
93  test/segment.test test/smart_ptr.test \
94  test/smith_waterman.test \
95  test/smoother.test test/spearman.test \
96  test/split.test test/statistics.test test/stream_redirect.test \
97  test/subset_generator.test test/svd.test test/svm.test \
98  test/svm_multi_class.test test/target.test \
99  test/ttest.test test/tukey.test \
100  test/utility.test test/vector.test test/version.test \
101  test/weighted_iterator_archetype.test \
102  test/vector_expression.test \
103  test/view.test
104
105CLEANFILES += $(EXTRA_PROGRAMS)
106
107# tests not passing through yet
108XFAIL_TESTS =
109
110DISTRIBUTED_TESTS = \
111test/cmd_test.sh \
112test/doxygen_test.sh \
113test/help_test.sh \
114test/yat_config_test.sh \
115test/yat_config_cblas_test.sh \
116test/yat_cpp_add_flag_test.sh \
117test/yat_cxx_add_flag_test.sh \
118test/yat_header_assert_test.sh \
119test/yat_ld_add_flag_test.sh \
120test/yat_have_svn_wc_test.sh \
121test/yat_lt_compile_ifelse_test.sh \
122test/yat_lt_link_ifelse_test.sh \
123test/yat_lt_link_la_ifelse_test.sh \
124test/yat_msg_error_test.sh \
125test/yat_msg_error_test2.sh \
126test/yat_m4_with_bam_test.sh \
127test/yat_m4_test.sh \
128test/yat_m4_test2.sh \
129test/yat_pc_test.sh \
130test/yat_prog_move_if_change_test.sh \
131test/yat_revision_header_test.sh \
132test/yat_svn_release_year_test.sh \
133test/yat_svn_revision_test.sh \
134test/yat_use_libtool_tag_test.sh
135
136TESTS = $(DISTRIBUTED_TESTS) $(EXTRA_PROGRAMS)
137EXTRA_DIST += $(DISTRIBUTED_TESTS)
138
139TEST_EXTENSIONS = .sh .test
140
141LDADD = yat/libyat.la test/libyattest.la $(YAT_LIBS)
142
143#test_large_file_test_LDADD = test/libyattest.la
144
145test_libyattest_la_LIBADD = yat/libyat.la
146test_libyattest_la_SOURCES = test/Suite.cc
147
148lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
149
150shell_test_deps = $(srcdir)/test/init.sh test/defs.sh
151
152# dependencies for lazycheck
153test/bam.log: test/data/foo.sorted.bam
154test/bam_header.log: test/data/foo.sorted.bam
155test/bam_header2.log: test/data/foo.sorted.bam
156test/bam_iterator.log: test/data/foo.sorted.bam
157test/bam_pair_analyse.log: test/data/foo.sorted.bam
158test/bam_pair_iterator.log: test/data/foo.sorted.bam
159test/bam_read_filter.log: test/data/foo.sorted.bam
160test/bam_region_iterator.log: test/data/foo.sorted.bam
161test/cmd_test.log: test/help.test $(shell_test_deps)
162test/help_test.log: test/help.test $(shell_test_deps)
163test/pileup.log: test/data/foo.sorted.bam
164test/static_test.log: $(srcdir)/m4/yat.m4 $(shell_test_deps)
165test/yat_config_test.log: build_support/yat-config \
166  build_support/for_installation/yat-config $(shell_test_deps)
167test/yat_config_cblas_test.log: build_support/yat-config $(shell_test_deps)
168test/yat_cpp_add_flag_test.log: $(srcdir)/m4/yat_add_flag.m4 \
169  $(srcdir)/m4/ax_append_flag.m4 \
170  $(srcdir)/m4/ax_check_preproc_flag.m4 \
171  $(shell_test_deps)
172test/yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
173  $(top_srcdir)/m4/ax_append_compile_flags.m4 \
174  $(top_srcdir)/m4/ax_append_flag.m4 \
175  $(top_srcdir)/m4/ax_check_compile_flag.m4 \
176  $(top_srcdir)/m4/ax_require_defined.m4 \
177  $(shell_test_deps)
178test/yat_have_svn_wc_test.log: $(srcdir)/m4/yat_am_macros.m4 $(shell_test_deps)
179test/yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
180  $(top_srcdir)/m4/ax_append_flag.m4 \
181  $(top_srcdir)/m4/ax_append_link_flags.m4 \
182  $(top_srcdir)/m4/ax_check_link_flag.m4 \
183  $(top_srcdir)/m4/ax_require_defined.m4 \
184  $(shell_test_deps)
185test/yat_lt_compile_ifelse_test.log: $(shell_test_deps) \
186  $(top_srcdir)/m4/yat_lt_link_ifelse.m4
187test/yat_lt_link_ifelse_test.log: $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
188  $(top_srcdir)/m4/yat.m4 $(shell_test_deps) \
189  $(top_builddir)/build_support/yat-config
190test/yat_lt_link_la_ifelse_test.log: $(shell_test_deps) \
191  test/lib/libmy-shared.la \
192  $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
193  $(top_srcdir)/m4/yat_common.m4
194test/yat_m4_test.log:$(top_srcdir)/m4/yat.m4 $(shell_test_deps) \
195  $(top_builddir)/build_support/yat-config
196test/yat_m4_test2.log:$(top_srcdir)/m4/yat.m4 $(shell_test_deps)
197test/yat_msg_error_test.log:$(srcdir)/m4/yat_msg_error.m4 $(shell_test_deps)
198test/yat_msg_error_test2.log:$(srcdir)/m4/yat_msg_error.m4 $(shell_test_deps)
199test/yat_pc_test.log: $(shell_test_deps) build_support/yat.pc
200test/yat_prog_move_if_change_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
201  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
202  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
203  $(top_srcdir)/m4/ax_file_escapes.m4 \
204  $(shell_test_deps)
205test/yat_revision_header_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
206  $(shell_test_deps) \
207  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
208  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
209  $(top_srcdir)/m4/ax_file_escapes.m4
210test/yat_svn_release_year_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
211  $(shell_test_deps) \
212  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
213  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
214  $(top_srcdir)/m4/ax_file_escapes.m4
215test/yat_svn_revision_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
216  $(shell_test_deps) \
217  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
218  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
219  $(top_srcdir)/m4/ax_file_escapes.m4
220test/yat_use_libtool_tag_test.log: $(shell_test_deps) \
221  $(top_srcdir)/m4/yat_lt_link_ifelse.m4
222
223if DX_ENABLE_HTML
224test/doxygen_test.log: doc/$(DX_HTML_OUTPUT)/index.html
225endif
226
227# yat-hello is an example of a tiny package that uses yat
228dist_noinst_DATA = $(srcdir)/test/yat-hello-1.0.tar.gz
229
230# Directory yat-hello contains what a developer would check out
231# from a VCS, i.e., no files generated by autotools.
232yat_hello_sources  =
233yat_hello_sources += $(srcdir)/test/yat-hello/configure.ac
234yat_hello_sources += $(srcdir)/test/yat-hello/Makefile.am
235yat_hello_sources += $(srcdir)/test/yat-hello/hello.cc
236
237EXTRA_DIST += $(yat_hello_sources)
238
239yat_hello_tmp_files =
240yat_hello_tmp_files += Makefile.in
241yat_hello_tmp_files += autom4te.cache
242yat_hello_tmp_files += aclocal.m4
243yat_hello_tmp_files += build-aux
244yat_hello_tmp_files += configure
245yat_hello_tmp_files += config.h.in
246yat_hello_tmp_files += m4
247
248
249yat_hello_deps = $(yat_hello_sources)
250yat_hello_deps += $(top_srcdir)/m4/yat.m4
251## We depend on version.m4 so tarball is updated at every release (at least)
252yat_hello_deps += $(top_srcdir)/m4/version.m4
253
254$(srcdir)/test/yat-hello-1.0.tar.gz: $(yat_hello_deps)
255  $(AM_V_GEN)$(MKDIR_P) $(srcdir)/test/yat-hello/m4 \
256  && cd $(srcdir)/test/yat-hello \
257  && cp $(abs_top_srcdir)/m4/yat.m4 m4/ \
258  && autoreconf -if $(yat_dev_null) \
259  && ./configure --without-yat $(yat_dev_null) \
260  && $(MAKE) $(AM_MAKEFLAGS) dist $(yat_dev_null) \
261  && $(MAKE) $(AM_MAKEFLAGS) distclean $(yat_dev_null) \
262  && mv yat-hello-1.0.tar.gz .. \
263  && rm -rf $(yat_hello_tmp_files)
264
265INSTALL_CHECK_TARGETS += yat-hello-check
266
267yat-hello-check: $(srcdir)/test/yat-hello-1.0.tar.gz
268  GZIP=$(GZIP_ENV) gzip -dc $(srcdir)/test/yat-hello-1.0.tar.gz | $(am__untar)\
269  && cd yat-hello-1.0 \
270  && ./configure --with-yat=$(bindir) \
271  && $(MAKE) $(AM_MAKEFLAGS) all \
272  && ./hello \
273  && test x"`./hello`" = x"$(VERSION)" \
274  && cd .. \
275  && rm -rf yat-hello-1.0
276
277
278## test data
279EXTRA_DIST += \
280test/data/foo.sam \
281test/data/isoform.peaks \
282test/data/knni_matrix.data \
283test/data/knni_result.data \
284test/data/knni_weight.data \
285test/data/nm_alpha_linear_matlab.txt \
286test/data/nm_data_centralized.txt \
287test/data/nm_kernel.txt \
288test/data/nm_kernel2.txt \
289test/data/nm_kernel_gaussian.txt \
290test/data/nm_target_bin.txt \
291test/data/normalization_test.data \
292test/data/rank_data.txt \
293test/data/rank_target.txt \
294test/data/regression_gauss.data \
295test/data/small.gff2 \
296test/data/small.gff3 \
297test/data/sorlie_centroid_classes.txt \
298test/data/sorlie_centroid_data.txt  \
299test/data/sorlie_centroid_predictions.txt \
300test/data/sorlie_centroids.txt \
301test/data/vector1.data  \
302test/data/vector2.data \
303test/data/vector3.data \
304test/data/vector4.data \
305test/data/vector5.data \
306test/data/vector6.data  \
307test/data/vector7.data \
308test/data/wenni_result.data \
309test/data/wenni_weight.data
310
311CLEANFILES += test/data/.dirstamp
312CLEANFILES += test/data/foo.sorted.bam
313CLEANFILES += test/data/foo.sorted.bam.bai
314CLEANFILES += test/data/foo.fasta
315CLEANFILES += test/data/foo.fasta.fai
316
317check_DATA  = test/data/foo.sorted.bam
318check_DATA += test/data/foo.sorted.bam.bai
319check_DATA += test/data/foo.fasta
320check_DATA += test/data/foo.fasta.fai
321
322test/data/.dirstamp:
323  @$(MKDIR_P) test/data
324  @: > $@
325
326if HAVE_SAMTOOLS_EXECUTABLE
327# depend on config.h to ensure rule is triggered when
328# HAVE_SAMTOOLS_EXECUTABLE has changed and possible (empty) dummy bam
329# file is replaced with a proper one.
330test/data/foo.sorted.bam: test/data/.dirstamp test/data/foo.sam config.h
331  $(AM_V_GEN)
332  $(AM_V_at)$(SAMTOOLS) sort -T foo -o $@ $(srcdir)/test/data/foo.sam
333
334test/data/foo.sorted.bam.bai: test/data/foo.sorted.bam
335  $(AM_V_GEN)
336  $(AM_V_at)$(SAMTOOLS) index test/data/foo.sorted.bam
337
338else
339test/data/foo.sorted.bam: test/data/.dirstamp
340  $(AM_V_at): > $@
341
342test/data/foo.sorted.bam.bai: test/data/.dirstamp
343  $(AM_V_at): > $@
344endif
345
346if HAVE_SAMTOOLS_FASTA_EXECUTABLE
347test/data/foo.fasta: test/data/foo.sorted.bam
348  $(AM_V_GEN)
349  $(AM_V_at)$(SAMTOOLS) fasta test/data/foo.sorted.bam > $@
350
351test/data/foo.fasta.fai: test/data/foo.fasta
352  $(AM_V_GEN)
353  $(AM_V_at)$(SAMTOOLS) faidx test/data/foo.fasta
354
355else
356test/data/foo.fasta: test/data/.dirstamp
357  $(AM_V_at): > $@
358
359test/data/foo.fasta.fai: test/data/.dirstamp
360  $(AM_V_at): > $@
361endif
362
363test/lib/.dirstamp:
364  @$(MKDIR_P) test/lib
365  @: > $@
366
367check_DATA += test/lib/libmy-static.a
368EXTRA_DIST += test/gen_libmy_static.sh
369
370test/lib/libmy-static.a: test/lib/.dirstamp test/gen_libmy_static.sh \
371test/defs.sh
372  $(AM_V_GEN)
373  $(AM_V_at)$(SHELL) $(srcdir)/test/gen_libmy_static.sh $(yat_dev_null)
374
375check_DATA += test/lib/libmy-shared.la
376EXTRA_DIST += test/gen_libmy_shared.sh
377
378test/lib/libmy-shared.la: test/lib/.dirstamp test/gen_libmy_shared.sh \
379test/defs.sh
380  $(AM_V_GEN)
381  $(AM_V_at)$(SHELL) $(srcdir)/test/gen_libmy_shared.sh $(yat_dev_null)
Note: See TracBrowser for help on using the repository browser.