source: trunk/test/Makefile.am @ 738

Last change on this file since 738 was 738, checked in by Peter Johansson, 14 years ago

refs #355 - check_repo_status.sh is now skipped when not appropriate

  • 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 738 2008-12-15 23:40:28Z 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
35TESTS += check_repo_status.sh
36
37# tests not yet passing are listed here
38XFAIL_TESTS =
39
40noinst_HEADERS = Suite.h
41
42check_LIBRARIES = libsvndigesttest.a
43
44
45LDADD = $(builddir)/libsvndigesttest.a \
46  $(top_builddir)/lib/libsvndigest.a \
47  $(SVNDIGEST_LIBS)
48AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
49
50AM_CPPFLAGS = -I$(top_srcdir)/lib $(SVNDIGEST_CPPFLAGS)
51AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
52
53libsvndigesttest_a_SOURCES = Suite.cc
54
55config_test_SOURCES = config_test.cc
56copyright_test_SOURCES = copyright_test.cc
57date_test_SOURCES = date_test.cc
58gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc
59parser_test_SOURCES = parser_test.cc
60stats_test_SOURCES = stats_test.cc
61trac_test_SOURCES = trac_test.cc
62utility_test_SOURCES = utility_test.cc
63
64toy_project = toy_project
65rootdir = $(abs_srcdir)/$(toy_project)
66targetdir = $(abs_builddir)/generated_output
67
68# some tests need the test repo to be checked out
69stats_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a
70copyright_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a
71
72$(toy_project):
73  echo Checking out test repository && \
74  repo=`cd $(abs_srcdir)/repo && pwd` && \
75  svn checkout file://$$repo/trunk $(toy_project);
76
77clean-local:
78  rm -rf *.png *.tmp *~ $(targetdir)
Note: See TracBrowser for help on using the repository browser.