source: trunk/test/Makefile.am @ 668

Last change on this file since 668 was 668, checked in by Jari Häkkinen, 13 years ago

Fixes #340. Run 'bootstrap' after update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 668 2008-07-03 23:28:06Z jari $
4
5# Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
6#
7# This file is part of svndigest, http://trac.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 2 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 this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22# 02111-1307, USA.
23
24check_PROGRAMS = config_test date_test gnuplot_pipe_test \
25  parser_test trac_test utility_test
26
27# these tests are only for developers since we do not distribute test repository
28if HAVE_SVN_WC
29check_PROGRAMS += copyright_test stats_test
30endif
31
32TESTS = $(check_PROGRAMS)
33# these tests are only for developers since we do not distribute test repository
34if HAVE_SVN_WC
35TESTS += test_repo.sh check_repo_status.sh
36endif
37
38# tests not yet passing are listed here
39XFAIL_TESTS =
40
41noinst_HEADERS = Suite.h
42
43check_LIBRARIES = libsvndigesttest.a
44
45
46LDADD = @builddir@/libsvndigesttest.a \
47  @top_builddir@/lib/libsvndigest.a \
48  $(SVNDIGEST_LIBS)
49AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
50
51AM_CPPFLAGS = -I@top_srcdir@/lib $(SVNDIGEST_CPPFLAGS)
52AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
53
54libsvndigesttest_a_SOURCES = Suite.cc
55
56config_test_SOURCES = config_test.cc
57copyright_test_SOURCES = copyright_test.cc
58date_test_SOURCES = date_test.cc
59gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc
60parser_test_SOURCES = parser_test.cc
61stats_test_SOURCES = stats_test.cc
62trac_test_SOURCES = trac_test.cc
63utility_test_SOURCES = utility_test.cc
64
65toy_project = toy_project
66rootdir = $(abs_srcdir)/$(toy_project)
67targetdir = $(abs_builddir)/generated_output
68repodir = $(abs_srcdir)/repo/trunk
69
70
71# some tests need the test repo to be checked out
72stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.a
73copyright_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.a
74
75@top_builddir@/lib/libsvndigest.a:
76  @cd @top_builddir@/lib/ && $(MAKE) $(AM_MAKEFLAGS);
77
78$(toy_project):
79  echo Checking out test repository && \
80  svn checkout file://$(repodir) $(toy_project);
81
82clean-local:
83  rm -rf *.png *.tmp *~ $(targetdir)
84
85.PHONY: @top_builddir@/lib/libsvndigest.a
Note: See TracBrowser for help on using the repository browser.