source: branches/0.10-stable/test/Makefile.am @ 1581

Last change on this file since 1581 was 1581, checked in by Peter Johansson, 7 years ago

fixes #529

Provide object files for linking rather than corresponding source
files as SOURCES for option.test. It removes the warning from automake
1.15 and it avoids some extra compilations as we recycle the object
files instead.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1581 2015-02-25 08:09:58Z peter $
4
5# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2011, 2012, 2015 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 = svn_update.sh init.sh
24
25## we use suffix .cc for all source
26AM_DEFAULT_SOURCE_EXT = .cc
27
28EXTRA_PROGRAMS = cache.test cache_partial.test color.test \
29  config.test copyright.test date.test \
30  graph.test htmlstream.test ignore_rev.test \
31  parser.test option.test stats.test svn_diff.test trac.test utility.test \
32  vector.test
33
34CLEANFILES = $(EXTRA_PROGRAMS)
35
36option_test_SOURCES = option.cc
37
38distributed_TESTS =
39distributed_TESTS += cmd_format_test.sh
40distributed_TESTS += config2_test.sh
41distributed_TESTS += config3_test.sh
42distributed_TESTS += config_props_test.sh
43distributed_TESTS += copyright2_test.sh
44distributed_TESTS += copyright_cache_test.sh
45distributed_TESTS += error_test.sh
46distributed_TESTS += ignore_revs_test.sh
47distributed_TESTS += link_root_test.sh
48distributed_TESTS += permission_test.sh
49distributed_TESTS += remove_cache_test.sh
50distributed_TESTS += repo_status_test.sh
51distributed_TESTS += repo_test.sh
52distributed_TESTS += svncopyright_test.sh
53distributed_TESTS += svndigest_copy_cache_test.sh
54distributed_TESTS += svndigest_copy_cache_test2.sh
55distributed_TESTS += traverse_test.sh
56distributed_TESTS += try_help_test.sh
57
58TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS)
59
60TEST_EXTENSIONS = .sh .test
61
62EXTRA_DIST = $(distributed_TESTS)
63
64# tests not yet passing are listed here
65XFAIL_TESTS =
66
67noinst_HEADERS = Suite.h
68
69check_LIBRARIES = libsvndigesttest.a
70
71LDADD = $(builddir)/libsvndigesttest.a \
72  $(top_builddir)/lib/libsvndigest_core.a \
73  $(top_builddir)/yat/libyat.a \
74  $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
75
76## graph test needs to link against Graph class
77graph_test_LDADD = $(LDADD) $(top_builddir)/lib/libsvndigest.a
78
79## we need to link in some object files from bin/
80option_test_LDADD = ../bin/Parameter.$(OBJEXT) \
81  ../bin/AbstractParameter.$(OBJEXT) \
82  ../bin/svndigestParameter.$(OBJEXT) $(LDADD)
83
84AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
85
86AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
87AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
88
89libsvndigesttest_a_SOURCES = Suite.cc
90
91clean-local:
92  rm -rf generated_output toy_project testSubDir
93
94mostlyclean-local:
95  rm -f *.png *.tmp *~
96
97.PHONY: lazycheck
98
99lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
100
101if HAVE_SVN_WC
102repo_stamp = $(srcdir)/repo/db/current svn_update.sh
103else
104repo_stamp =
105endif
106
107# dependencies for lazycheck
108cmd_format_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
109config2_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
110config3_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT)
111config_props_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
112copyright2_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp)
113copyright_cache_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp)
114link_root_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
115permission_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp)
116repo_status_test.log:init.sh
117repo_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
118svncopyright_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT)
119svndigest_copy_cache_test.log:init.sh $(top_builddir)/bin/svndigest-copy-cache $(repo_stamp)
120svndigest_copy_cache_test.log:init.sh $(top_builddir)/bin/svndigest-copy-cache $(repo_stamp)
121try_help_test.log:init.sh $(top_builddir)/bin/svndigest
122
123cache_partial.log: $(repo_stamp)
124copyright.log: $(repo_stamp)
125stats.log: $(repo_stamp)
Note: See TracBrowser for help on using the repository browser.