source: trunk/test/Makefile.am @ 556

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

Fixing statistics bugs and links on first page

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 556 2008-01-16 13:35:00Z peter $
4
5# Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2008 Peter Johansson
7#
8# This file is part of svndigest, http://trac.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 2 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 this program; if not, write to the Free Software
22# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23# 02111-1307, USA.
24
25check_PROGRAMS = config_test date gnuplot_pipe parser trac utility_test
26
27# these tests are only for developers since we do not distribute test repository
28if HAVE_SVN_WC
29check_PROGRAMS += 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
38LDADD = $(STATICFLAG) @top_builddir@/lib/libsvndigest.la
39
40AM_CPPFLAGS = -I@top_srcdir@/lib
41
42config_test_SOURCES = config_test.cc
43date_SOURCES = date.cc
44gnuplot_pipe_SOURCES = gnuplot_pipe.cc
45parser_SOURCES = parser.cc
46stats_test_SOURCES = stats_test.cc
47trac_SOURCES = trac.cc
48utility_test_SOURCES = utility_test.cc
49
50toy_project = toy_project
51
52# some tests need the test repo to be checked out
53stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.la
54
55rootdir = $(abs_srcdir)/$(toy_project)
56targetdir = $(abs_builddir)/generated_output
57repodir = $(abs_srcdir)/repo/trunk
58
59do_subst = $(SED) -e 's,%SHELL%,$(SHELL),g' \
60            -e 's,%SED%,$(SED),g' \
61            -e 's,%DISTFILES%,$(DISTFILES),g' \
62            -e 's,%GREP%,$(GREP),g' \
63            -e 's,%abs_srcdir%,$(abs_srcdir),g' \
64            -e 's,%repodir%,$(repodir),g' \
65            -e 's,%rootdir%,$(rootdir),g' \
66            -e 's,%targetdir%,$(targetdir),g' \
67            -e 's,%abs_top_builddir%,$(abs_top_builddir),g'
68
69
70check_repo_status.sh: check_repo_status.sh.in Makefile
71  @$(do_subst) < $< > $@
72  @chmod +x $@
73  @echo creating $@
74
75test_repo.sh: test_repo.sh.in Makefile $(toy_project)
76  @$(do_subst) < $< > $@
77  @chmod +x $@
78  @echo creating $@
79
80$(toy_project):
81  echo Checking out test repository && \
82  svn checkout file://$(repodir) $(toy_project);
83
84clean-local:
85  rm -rf *.png *.tmp *~ check_repo_status.sh test_repo.sh \
86  $(targetdir) 
Note: See TracBrowser for help on using the repository browser.