source: trunk/test/Makefile.am @ 730

Last change on this file since 730 was 730, checked in by Peter Johansson, 13 years ago

Check if we HAVE_SVN_WC by looking for .svn directory rather
than relying on svnversion output.

Check if we HAVE_TEST_REPO by looking for test/repo. This variable is
used to activate test that need the test repo, i.e., they are
activated also in svn export mode.

refs #362 and #355

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 730 2008-12-15 13:14:14Z peter $
4
5# Copyright (C) 2005, 2006, 2007, 2008 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_PROGRAMS = config_test date_test gnuplot_pipe_test \
23  parser_test trac_test utility_test
24
25# these tests are only for developers since we do not distribute test repository
26if HAVE_TEST_REPO
27check_PROGRAMS += copyright_test stats_test
28endif
29
30TESTS = $(check_PROGRAMS)
31# these tests are only for developers since we do not distribute test repository
32if HAVE_TEST_REPO
33TESTS += test_repo.sh check_repo_status.sh
34endif
35
36# tests not yet passing are listed here
37XFAIL_TESTS =
38
39noinst_HEADERS = Suite.h
40
41check_LIBRARIES = libsvndigesttest.a
42
43
44LDADD = $(builddir)/libsvndigesttest.a \
45  $(top_builddir)/lib/libsvndigest.a \
46  $(SVNDIGEST_LIBS)
47AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
48
49AM_CPPFLAGS = -I$(top_srcdir)/lib $(SVNDIGEST_CPPFLAGS)
50AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
51
52libsvndigesttest_a_SOURCES = Suite.cc
53
54config_test_SOURCES = config_test.cc
55copyright_test_SOURCES = copyright_test.cc
56date_test_SOURCES = date_test.cc
57gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc
58parser_test_SOURCES = parser_test.cc
59stats_test_SOURCES = stats_test.cc
60trac_test_SOURCES = trac_test.cc
61utility_test_SOURCES = utility_test.cc
62
63toy_project = toy_project
64rootdir = $(abs_srcdir)/$(toy_project)
65targetdir = $(abs_builddir)/generated_output
66repodir = $(abs_srcdir)/repo/trunk
67
68
69# some tests need the test repo to be checked out
70stats_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a
71copyright_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a
72
73$(toy_project):
74  echo Checking out test repository && \
75  svn checkout file://$(repodir) $(toy_project);
76
77clean-local:
78  rm -rf *.png *.tmp *~ $(targetdir)
Note: See TracBrowser for help on using the repository browser.