source: trunk/test/Makefile.am @ 734

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

check_repo_status.sh needs svn meta information - actually the entire purpose of the check is gone when building from an svn export - refs #355

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