source: trunk/test/Makefile.am @ 1364

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

adding test for copyright cache. refs #385.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1364 2011-06-05 00:01:14Z peter $
4
5# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2011 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_partial.test color.test \
29  config.test copyright.test date.test \
30  graph.test htmlstream.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 $(top_srcdir)/bin/Parameter.cc \
37  $(top_srcdir)/bin/AbstractParameter.cc $(top_srcdir)/bin/svndigestParameter.cc
38
39distributed_TESTS =
40distributed_TESTS += cmd_format_test.sh
41distributed_TESTS += config2_test.sh
42distributed_TESTS += config3_test.sh
43distributed_TESTS += copyright2_test.sh
44distributed_TESTS += copyright_cache_test.sh
45distributed_TESTS += error_test.sh
46distributed_TESTS += link_root_test.sh
47distributed_TESTS += repo_status_test.sh
48distributed_TESTS += repo_test.sh
49distributed_TESTS += svncopyright_test.sh
50distributed_TESTS += svndigest_copy_cache_test.sh
51
52TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS)
53
54TEST_EXTENSIONS = .sh .test
55
56EXTRA_DIST = $(distributed_TESTS)
57
58# tests not yet passing are listed here
59XFAIL_TESTS = copyright_cache_test.sh
60
61noinst_HEADERS = Suite.h
62
63check_LIBRARIES = libsvndigesttest.a
64
65LDADD = $(builddir)/libsvndigesttest.a \
66  $(top_builddir)/lib/libsvndigest_core.a \
67  $(top_builddir)/yat/libyat.a \
68  $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
69
70## graph test needs to link against Graph class
71graph_test_LDADD = $(LDADD) $(top_builddir)/lib/libsvndigest.a
72
73AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
74
75AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
76AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
77
78libsvndigesttest_a_SOURCES = Suite.cc
79
80clean-local:
81  rm -rf generated_output toy_project testSubDir
82
83mostlyclean-local:
84  rm -f *.png *.tmp *~
85
86.PHONY: lazycheck
87
88lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
89
90if HAVE_SVN_WC
91repo_stamp = $(srcdir)/repo/db/current
92else
93repo_stamp =
94endif
95
96# dependencies for lazycheck
97cmd_format_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
98config2_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
99config3_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT)
100copyright2_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp)
101copyright_cache_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp)
102link_root_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
103repo_status_test.log:init.sh
104repo_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp)
105svncopyright_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT)
106svndigest_copy_cache_test.log:init.sh $(top_builddir)/bin/svndigest-copy-cache $(repo_stamp)
107
108cache_partial.log: $(repo_stamp)
109copyright.log: $(repo_stamp)
110stats.log: $(repo_stamp)
111
Note: See TracBrowser for help on using the repository browser.