source: trunk/test/Makefile.am @ 2232

Last change on this file since 2232 was 2232, checked in by Peter, 12 years ago

refs #475. added a lazycheck target; will need some docs in test/README.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2232 2010-03-26 12:21:58Z 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 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
26SUBDIRS = data
27
28## we use suffix .cc for all source
29AM_DEFAULT_SOURCE_EXT = .cc
30
31noinst_HEADERS = Suite.h
32
33check_LTLIBRARIES = libyattest.la
34
35check_SCRIPTS = common_defs.sh
36
37.PHONY: FORCE
38
39clean-local:; rm -rf yathello testSubDir
40
41FORCE:
42
43yathello: create_yathello.sh $(top_srcdir)/m4/yat.m4
44  ./create_yathello.sh
45
46# testing autoconf macro YAT_CHECK_YAT on an installed yat (the bindir
47# argument requires some care).
48yat_check_yat_test: yathello FORCE
49  cd yathello && autoreconf -sivf && \
50  ./configure --with-yat=$(bindir) && $(MAKE) check
51
52EXTRA_PROGRAMS = alignment_test averager_test \
53  commandline_test \
54  consensus_inputranker_test data_lookup_1d_test  \
55  data_weight_test data_weight_proxy_test distance_test \
56  ensemble_test feature_selection_test fileutil_test \
57  fisher_test getline_iterator_test histogram_test \
58  igp_test index_test inputranker_test interpolation_test \
59  iterator_test kernel_lookup_test kernel_test \
60  knn_test kolmogorov_smirnov_test large_file_test matrix_lookup_test \
61  matrix_lookup_weighted_test matrix_test \
62  matrix_weighted_test merge_test nbc_test \
63  ncc_test nni_test normalization_test pca_test \
64  range_test regression_test rnd_test roc_test \
65  score_test  smart_ptr_test    \
66  smoother_test statistics_test stream_redirect_test \
67  subset_generator_test svd_test svm_test \
68  svm_multi_class_test target_test  \
69  ttest_test \
70  utility_test vector_test version_test view_test
71
72TESTS = $(EXTRA_PROGRAMS)
73CLEANFILES = $(EXTRA_PROGRAMS)
74
75# tests not passing through yet
76XFAIL_TESTS =
77
78TESTS += documentation_test.sh
79
80DISTRIBUTED_TESTS = \
81static_test.sh \
82yat_config_cblas_test.sh \
83yat_cpp_add_flag_test.sh \
84yat_cxx_add_flag_test.sh \
85yat_ld_add_flag_test.sh \
86yat_m4_test.sh \
87yat_m4_test2.sh
88
89TESTS += $(DISTRIBUTED_TESTS)
90EXTRA_DIST = $(DISTRIBUTED_TESTS)
91
92TEST_EXTENSIONS = .sh
93
94LDADD = $(top_builddir)/$(YAT_LIB_LOCATION)/libyat.la libyattest.la $(YAT_LIBS)
95
96libyattest_la_SOURCES = Suite.cc
97
98lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
99
100# dependencies for lazycheck
101static_test.sh: $(top_srcdir)/m4/yat.m4
102yat_config_cblas_test.sh: $(top_builddir)/build_support/yat-config
103yat_cpp_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_cxxcpp_check_flag.m4
104yat_cxx_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_cxx_check_flag.m4
105yat_ld_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_ld_check_flag.m4
106yat_m4_test.sh:$(top_srcdir)/m4/yat.m4 $(top_builddir)/build_support/yat-config
107yat_m4_test2.sh:$(top_srcdir)/m4/yat.m4
108
109# all shell tests depend on common_defs.sh
110$(DISTRIBUTED_TESTS): common_defs.sh
111
112## we wanna rerun documentation_test if a header file has
113## changed. Depending on libyat should cover all those cases. When
114## libyat has beed recreated due to source changes and not header file
115## changes the documentation_test is very cheap anyway since 'make
116## doc' will do nothing.
117documentation_test.sh: $(top_builddir)/yat/libyat.la
Note: See TracBrowser for help on using the repository browser.