source: trunk/test/Makefile.am @ 3130

Last change on this file since 3130 was 3130, checked in by Peter, 8 years ago

merge release 0.11 into trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.8 KB
RevLine 
[4]1## $Id: Makefile.am 3130 2013-11-18 07:38:59Z peter $
2
[2121]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
[2946]7# Copyright (C) 2009, 2010, 2011, 2012, 2013 Peter Johansson
[580]8#
[1437]9# This file is part of the yat library, http://dev.thep.lu.se/yat
[580]10#
[675]11# The yat library is free software; you can redistribute it
[580]12# and/or modify it under the terms of the GNU General Public License as
[1486]13# published by the Free Software Foundation; either version 3 of the
[580]14# License, or (at your option) any later version.
15#
[675]16# The yat library is distributed in the hope that it will be useful,
[580]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
[1487]22# along with yat. If not, see <http://www.gnu.org/licenses/>.
[580]23
[2229]24## we use suffix .cc for all source
25AM_DEFAULT_SOURCE_EXT = .cc
26
[2739]27noinst_HEADERS = test/Suite.h
[1214]28
[2739]29check_LTLIBRARIES = test/libyattest.la
[1228]30
[3036]31check_SCRIPTS = test/defs.sh
[1842]32
[3041]33EXTRA_DIST += test/init.sh
34
[2853]35EXTRA_PROGRAMS = test/alignment.test \
36  test/alignment2.test \
37  test/averager.test \
[2809]38  test/averager1.test \
39  test/averager3.test \
[2799]40  test/averager4.test \
[2986]41  test/bam.test \
[2982]42  test/bam_pair_analyse.test \
43  test/bam_iterator.test \
[2994]44  test/bam_read_filter.test \
[2980]45  test/bam_region_iterator.test \
46  test/bam_header.test \
[2739]47  test/codon.test test/commandline.test \
48  test/concept.test \
49  test/consensus_inputranker.test test/data_lookup_1d.test  \
[2858]50  test/data_weight.test test/data_weight_proxy.test \
51  test/deleter.test \
52  test/distance.test \
[2739]53  test/dna.test test/ensemble.test test/feature_selection.test \
54  test/fileutil.test \
55  test/fisher.test test/genomic_position.test test/getline_iterator.test \
56  test/gff.test test/help.test test/histogram.test \
57  test/igp.test test/index.test test/inputranker.test test/interpolation.test \
58  test/iterator.test test/kendall.test test/kernel_lookup.test \
59  test/kernel_pca.test test/kernel.test \
60  test/knn.test test/kolmogorov_smirnov.test test/large_file.test \
61  test/matrix_lookup.test \
62  test/matrix_lookup_weighted.test test/matrix.test \
[2995]63  test/matrix_weighted.test test/merge.test \
64  test/merge_iterator.test test/nbc.test \
[2739]65  test/ncc.test test/nni.test test/normalization.test test/pca.test \
[3063]66  test/queue.test test/queue2.test \
[2769]67  test/range.test test/regression.test test/rnd.test \
68  test/rng-mt.test \
69  test/roc.test \
[2739]70  test/score.test test/segment.test test/smart_ptr.test   \
71  test/smoother.test test/spearman.test \
72  test/split.test test/statistics.test test/stream_redirect.test \
73  test/subset_generator.test test/svd.test test/svm.test \
74  test/svm_multi_class.test test/target.test \
75  test/ttest.test test/tukey.test \
76  test/utility.test test/vector.test test/version.test test/view.test
[1693]77
[2231]78TESTS = $(EXTRA_PROGRAMS)
[2739]79CLEANFILES += $(EXTRA_PROGRAMS)
[285]80
[1420]81# tests not passing through yet
[2680]82XFAIL_TESTS =
[1418]83
[1897]84DISTRIBUTED_TESTS = \
[2853]85test/cmd_test.sh \
[2739]86test/doxygen_test.sh \
87test/help_test.sh \
88test/static_test.sh \
89test/yat_config_test.sh \
90test/yat_config_cblas_test.sh \
91test/yat_cpp_add_flag_test.sh \
92test/yat_cxx_add_flag_test.sh \
93test/yat_ld_add_flag_test.sh \
94test/yat_have_svn_wc_test.sh \
[3069]95test/yat_lt_compile_ifelse_test.sh \
[2739]96test/yat_lt_link_ifelse_test.sh \
[3069]97test/yat_lt_link_la_ifelse_test.sh \
[2739]98test/yat_msg_error_test.sh \
99test/yat_msg_error_test2.sh \
[3053]100test/yat_m4_with_bam_test.sh \
[2739]101test/yat_m4_test.sh \
102test/yat_m4_test2.sh \
[2950]103test/yat_pc_test.sh \
[2739]104test/yat_prog_move_if_change_test.sh \
105test/yat_revision_header_test.sh \
106test/yat_svn_release_year_test.sh \
[3034]107test/yat_svn_revision_test.sh \
108test/yat_use_libtool_tag_test.sh
[1846]109
110TESTS += $(DISTRIBUTED_TESTS)
[2739]111EXTRA_DIST += $(DISTRIBUTED_TESTS)
[1846]112
[2370]113TEST_EXTENSIONS = .sh .test
[2232]114
[2739]115LDADD = yat/libyat.la test/libyattest.la $(YAT_LIBS)
[210]116
[2893]117#test_large_file_test_LDADD = test/libyattest.la
[2413]118
[2893]119test_libyattest_la_LIBADD = yat/libyat.la
[2739]120test_libyattest_la_SOURCES = test/Suite.cc
[2232]121
[2649]122lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
[2232]123
[3037]124shell_test_deps = $(srcdir)/test/init.sh test/defs.sh
[3036]125
[2232]126# dependencies for lazycheck
[3036]127test/cmd_test.log: test/help.test $(shell_test_deps)
128test/help_test.log: test/help.test $(shell_test_deps)
129test/static_test.log: $(srcdir)/m4/yat.m4 $(shell_test_deps)
[2739]130test/yat_config_test.log: build_support/yat-config \
[3036]131  build_support/for_installation/yat-config $(shell_test_deps)
132test/yat_config_cblas_test.log: build_support/yat-config $(shell_test_deps)
[2739]133test/yat_cpp_add_flag_test.log: $(srcdir)/m4/yat_add_flag.m4 \
134  $(srcdir)/m4/ax_append_flag.m4 \
135  $(srcdir)/m4/ax_check_preproc_flag.m4 \
[3036]136  $(shell_test_deps)
[2739]137test/yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
[2525]138  $(top_srcdir)/m4/ax_append_compile_flags.m4 \
[2524]139  $(top_srcdir)/m4/ax_append_flag.m4 \
140  $(top_srcdir)/m4/ax_check_compile_flag.m4 \
[3036]141  $(shell_test_deps)
142test/yat_have_svn_wc_test.log: $(srcdir)/m4/yat_am_macros.m4 $(shell_test_deps)
[2739]143test/yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
[2524]144  $(top_srcdir)/m4/ax_append_flag.m4 \
[2525]145  $(top_srcdir)/m4/ax_append_link_flags.m4 \
[2524]146  $(top_srcdir)/m4/ax_check_link_flag.m4 \
[3036]147  $(shell_test_deps)
[3069]148test/yat_lt_compile_ifelse_test.log: $(shell_test_deps) \
149  $(top_srcdir)/m4/yat_lt_link_ifelse.m4
[2739]150test/yat_lt_link_ifelse_test.log: $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
[3036]151  $(top_srcdir)/m4/yat.m4 $(shell_test_deps) \
[2524]152  $(top_builddir)/build_support/yat-config
[3069]153test/yat_lt_link_la_ifelse_test.log: $(shell_test_deps) \
[3130]154  test/lib/libmy-shared.la \
[3070]155  $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
156  $(top_srcdir)/m4/yat_common.m4
[3036]157test/yat_m4_test.log:$(top_srcdir)/m4/yat.m4 $(shell_test_deps) \
[2237]158  $(top_builddir)/build_support/yat-config
[3036]159test/yat_m4_test2.log:$(top_srcdir)/m4/yat.m4 $(shell_test_deps)
160test/yat_msg_error_test.log:$(srcdir)/m4/yat_msg_error.m4 $(shell_test_deps)
161test/yat_msg_error_test2.log:$(srcdir)/m4/yat_msg_error.m4 $(shell_test_deps)
162test/yat_pc_test.log: $(shell_test_deps) build_support/yat.pc
[2739]163test/yat_prog_move_if_change_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
[2545]164  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
165  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
166  $(top_srcdir)/m4/ax_file_escapes.m4 \
[3036]167  $(shell_test_deps)
[2739]168test/yat_revision_header_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
[3036]169  $(shell_test_deps) \
[2545]170  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
171  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
172  $(top_srcdir)/m4/ax_file_escapes.m4
[2739]173test/yat_svn_release_year_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
[3036]174  $(shell_test_deps) \
[2545]175  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
176  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
177  $(top_srcdir)/m4/ax_file_escapes.m4
[2739]178test/yat_svn_revision_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
[3036]179  $(shell_test_deps) \
[2545]180  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
181  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
182  $(top_srcdir)/m4/ax_file_escapes.m4
[3036]183test/yat_use_libtool_tag_test.log: $(shell_test_deps) \
[3034]184  $(top_srcdir)/m4/yat_lt_link_ifelse.m4
[2232]185
[2762]186if DX_ENABLE_HTML
187test/doxygen_test.log: doc/$(DX_HTML_OUTPUT)/index.html
188endif
[2438]189
190# yat-hello is an example of a tiny package that uses yat
[2946]191dist_noinst_DATA = $(srcdir)/test/yat-hello-1.0.tar.gz
[2438]192
193# Directory yat-hello contains what a developer would check out
194# from a VCS, i.e., no files generated by autotools.
195yat_hello_sources  =
[2739]196yat_hello_sources += $(srcdir)/test/yat-hello/configure.ac
197yat_hello_sources += $(srcdir)/test/yat-hello/Makefile.am
198yat_hello_sources += $(srcdir)/test/yat-hello/hello.cc
[2438]199
200EXTRA_DIST += $(yat_hello_sources)
201
202yat_hello_tmp_files =
203yat_hello_tmp_files += Makefile.in
204yat_hello_tmp_files += autom4te.cache
205yat_hello_tmp_files += aclocal.m4
[2477]206yat_hello_tmp_files += build-aux
[2438]207yat_hello_tmp_files += configure
208yat_hello_tmp_files += m4
209
210
[2649]211yat_hello_deps = $(yat_hello_sources)
212yat_hello_deps += $(top_srcdir)/m4/yat.m4
[2438]213## We depend on version.m4 so tarball is updated at every release (at least)
214yat_hello_deps += $(top_srcdir)/m4/version.m4
215
[2739]216$(srcdir)/test/yat-hello-1.0.tar.gz: $(yat_hello_deps)
[3018]217  $(AM_V_GEN)$(MKDIR_P) $(srcdir)/test/yat-hello/m4 \
218  && cd $(srcdir)/test/yat-hello \
[2439]219  && cp $(abs_top_srcdir)/m4/yat.m4 m4/ \
[2744]220  && autoreconf -if $(yat_dev_null) \
221  && ./configure --without-yat $(yat_dev_null) \
222  && $(MAKE) $(AM_MAKEFLAGS) dist $(yat_dev_null) \
223  && $(MAKE) $(AM_MAKEFLAGS) distclean $(yat_dev_null) \
[2438]224  && mv yat-hello-1.0.tar.gz .. \
[2739]225  && rm -rf $(yat_hello_tmp_files)
[2438]226
[2853]227INSTALL_CHECK_TARGETS += yat-hello-check
[2438]228
[2739]229yat-hello-check: $(srcdir)/test/yat-hello-1.0.tar.gz
230  GZIP=$(GZIP_ENV) gzip -dc $(srcdir)/test/yat-hello-1.0.tar.gz | $(am__untar)\
[2438]231  && cd yat-hello-1.0 \
232  && ./configure --with-yat=$(bindir) \
233  && $(MAKE) $(AM_MAKEFLAGS) all \
234  && ./hello \
235  && cd .. \
236  && rm -rf yat-hello-1.0
[2452]237
238
239## test data
[2490]240EXTRA_DIST += \
[2888]241test/data/foo.sam \
[2739]242test/data/isoform.peaks \
243test/data/knni_matrix.data \
244test/data/knni_result.data \
245test/data/knni_weight.data \
246test/data/nm_alpha_linear_matlab.txt \
247test/data/nm_data_centralized.txt \
248test/data/nm_kernel.txt \
249test/data/nm_kernel2.txt \
250test/data/nm_kernel_gaussian.txt \
251test/data/nm_target_bin.txt \
252test/data/normalization_test.data \
253test/data/rank_data.txt \
254test/data/rank_target.txt \
255test/data/regression_gauss.data \
256test/data/small.gff2 \
257test/data/small.gff3 \
258test/data/sorlie_centroid_classes.txt \
259test/data/sorlie_centroid_data.txt  \
260test/data/sorlie_centroid_predictions.txt \
261test/data/sorlie_centroids.txt \
262test/data/vector1.data  \
263test/data/vector2.data \
264test/data/vector3.data \
265test/data/vector4.data \
266test/data/vector5.data \
267test/data/vector6.data  \
268test/data/vector7.data \
269test/data/wenni_result.data \
270test/data/wenni_weight.data
[2891]271
272CLEANFILES += test/data/.dirstamp
273CLEANFILES += test/data/foo.bam
[2943]274CLEANFILES += test/data/foo.sorted.bam
275CLEANFILES += test/data/foo.sorted.bam.bai
[2891]276
277check_DATA  = test/data/foo.sorted.bam
278check_DATA += test/data/foo.sorted.bam.bai
279
280test/data/.dirstamp:
281  @$(MKDIR_P) test/data
282  @: > $@
283
284if HAVE_SAMTOOLS
[2943]285test/data/foo.bam: test/data/foo.sam test/data/.dirstamp Makefile
[3042]286  $(AM_V_GEN)
287  $(AM_V_at)$(SAMTOOLS) view -Sb $(srcdir)/test/data/foo.sam \
288  > $@-t && mv $@-t $@
[2891]289
290test/data/foo.sorted.bam: test/data/foo.bam
[3042]291  $(AM_V_GEN)
292  $(AM_V_at)$(SAMTOOLS) sort test/data/foo.bam test/data/foo.sorted
[2891]293
294test/data/foo.sorted.bam.bai: test/data/foo.sorted.bam
[3042]295  $(AM_V_GEN)
296  $(AM_V_at)$(SAMTOOLS) index test/data/foo.sorted.bam
[2891]297else
[2943]298test/data/foo.sorted.bam: test/data/.dirstamp
[3099]299  $(AM_V_at): > $@
[2943]300
301test/data/foo.sorted.bam.bai: test/data/.dirstamp
[3099]302  $(AM_V_at): > $@
[2891]303endif
[3038]304
305test/lib/.dirstamp:
306  @$(MKDIR_P) test/lib
307  @: > $@
308
309check_DATA += test/lib/libmy-static.a
[3041]310EXTRA_DIST += test/gen_libmy_static.sh
[3038]311
312test/lib/libmy-static.a: test/lib/.dirstamp test/gen_libmy_static.sh \
313test/defs.sh
314  $(AM_V_GEN)
[3041]315  $(AM_V_at)$(SHELL) $(srcdir)/test/gen_libmy_static.sh $(yat_dev_null)
[3040]316
317check_DATA += test/lib/libmy-shared.la
[3041]318EXTRA_DIST += test/gen_libmy_shared.sh
[3040]319
320test/lib/libmy-shared.la: test/lib/.dirstamp test/gen_libmy_shared.sh \
321test/defs.sh
322  $(AM_V_GEN)
[3041]323  $(AM_V_at)$(SHELL) $(srcdir)/test/gen_libmy_shared.sh $(yat_dev_null)
Note: See TracBrowser for help on using the repository browser.