source: branches/0.9-stable/test/Makefile.am @ 1311

Last change on this file since 1311 was 1311, checked in by Peter Johansson, 11 years ago

refs #487. Only depend on repo when we are in wc. Strictly speaking we could depend also when not in wc but have test repo, i.e., building from an svn export, but that corner case seemed less important and Automake Conditinal HAVE_SVN_WC was already available.

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