source: trunk/test/Makefile.am @ 1533

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

initial test for --update option (refs #334)

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