source: trunk/test/Makefile.am

Last change on this file was 1673, checked in by Peter Johansson, 4 weeks ago

closes #541. Require installed libyat

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1673 2023-08-26 15:36:10Z peter $
4
5# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2011, 2012 Peter Johansson
7# Copyright (C) 2015 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2020 Peter Johansson
9#
10# This file is part of svndigest, http://dev.thep.lu.se/svndigest
11#
12# svndigest is free software; you can redistribute it and/or modify it
13# under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 3 of the License, or
15# (at your option) any later version.
16#
17# svndigest is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
24
25check_SCRIPTS = test/svn_update.sh test/init.sh
26
27## we use suffix .cc for all test source
28AM_DEFAULT_SOURCE_EXT = .cc
29
30EXTRA_PROGRAMS = test/cache.test test/cache_partial.test test/color.test \
31  test/config.test test/copyright.test test/date.test \
32  test/graph.test test/htmlstream.test test/ignore_rev.test \
33  test/parser.test test/option.test test/stats.test \
34  test/svn_cat.test test/svn_cat2.test \
35  test/svn_log.test test/trac.test test/utility.test \
36  test/vector.test
37
38CLEANFILES += $(EXTRA_PROGRAMS)
39
40test_option_test_SOURCES = test/option.cc bin/Parameter.cc \
41  bin/AbstractParameter.cc bin/svndigestParameter.cc
42
43distributed_TESTS =
44distributed_TESTS += test/cmd_format_test.sh
45distributed_TESTS += test/config2_test.sh
46distributed_TESTS += test/config3_test.sh
47distributed_TESTS += test/config_props_test.sh
48distributed_TESTS += test/copyright2_test.sh
49distributed_TESTS += test/copyright3_test.sh
50distributed_TESTS += test/copyright_cache_test.sh
51distributed_TESTS += test/error_test.sh
52distributed_TESTS += test/ignore_revs_test.sh
53distributed_TESTS += test/link_root_test.sh
54distributed_TESTS += test/permission_test.sh
55distributed_TESTS += test/remove_cache_test.sh
56distributed_TESTS += test/repo_status_test.sh
57distributed_TESTS += test/repo_test.sh
58distributed_TESTS += test/svncopyright_test.sh
59distributed_TESTS += test/svndigest_copy_cache_test.sh
60distributed_TESTS += test/svndigest_copy_cache_test2.sh
61distributed_TESTS += test/traverse_test.sh
62distributed_TESTS += test/try_help_test.sh
63distributed_TESTS += test/update_test.sh
64distributed_TESTS += test/update_test2.sh
65distributed_TESTS += test/update_test3.sh
66distributed_TESTS += test/update_test4.sh
67
68TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS)
69
70TEST_EXTENSIONS = .sh .test
71
72EXTRA_DIST += $(distributed_TESTS)
73
74# tests not yet passing are listed here
75XFAIL_TESTS =
76
77noinst_HEADERS += test/Suite.h
78
79check_LIBRARIES = test/libsvndigesttest.a
80
81LDADD = test/libsvndigesttest.a \
82  lib/libsvndigest_core.a \
83  $(SVN_LIBS) $(APR_LIBS) $(YAT_LIBS) $(PLPLOT_LIBS)
84
85## graph test needs to link against Graph class
86test_graph_test_LDADD = test/libsvndigesttest.a \
87  lib/libsvndigest.a lib/libsvndigest_core.a \
88  $(SVN_LIBS) $(APR_LIBS) $(YAT_LIBS) $(PLPLOT_LIBS)
89
90test_libsvndigesttest_a_SOURCES = test/Suite.cc
91
92.PHONY: lazycheck
93
94lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
95
96if HAVE_SVN_WC
97repo_stamp = $(srcdir)/test/repo/db/current test/svn_update.sh
98else
99repo_stamp =
100endif
101
102# dependencies for lazycheck
103test/cmd_format_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp)
104test/config2_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp)
105test/config3_test.log: test/init.sh bin/svndigest$(EXEEXT)
106test/config_props_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp)
107test/copyright2_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp)
108test/copyright3_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp)
109test/copyright_cache_test.log: test/init.sh bin/svncopyright$(EXEEXT) \
110  $(repo_stamp)
111test/link_root_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp)
112test/permission_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp)
113test/repo_status_test.log: test/init.sh
114test/repo_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp)
115test/svncopyright_test.log: test/init.sh bin/svncopyright$(EXEEXT)
116test/svndigest_copy_cache_test.log: test/init.sh bin/svndigest-copy-cache \
117  $(repo_stamp)
118test/svndigest_copy_cache_test.log: test/init.sh bin/svndigest-copy-cache \
119  $(repo_stamp)
120test/try_help_test.log: test/init.sh bin/svndigest
121test/try_help_test.log: test/init.sh bin/svndigest $(repo_stamp)
122test/update_test.log: test/init.sh bin/svndigest $(repo_stamp)
123test/update_test2.log: test/init.sh bin/svndigest $(repo_stamp)
124test/update_test3.log: test/init.sh bin/svndigest $(repo_stamp)
125test/update_test4.log: test/init.sh bin/svndigest $(repo_stamp)
126
127test/cache_partial.log: $(repo_stamp)
128test/copyright.log: $(repo_stamp)
129test/stats.log: $(repo_stamp)
130test/svn_cat.log: $(repo_stamp)
Note: See TracBrowser for help on using the repository browser.