source: trunk/test/Makefile.am @ 640

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

fixes #333

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[84]1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 640 2008-05-31 04:06:33Z peter $
4
[328]5# Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson
[556]6# Copyright (C) 2008 Peter Johansson
[6]7#
[519]8# This file is part of svndigest, http://trac.thep.lu.se/svndigest
[84]9#
[149]10# svndigest is free software; you can redistribute it and/or modify it
[84]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#
[149]15# svndigest is distributed in the hope that it will be useful, but
[84]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.
[8]24
[624]25check_PROGRAMS = config_test date_test gnuplot_pipe_test \
26  parser_test trac_test utility_test
[248]27
[556]28# these tests are only for developers since we do not distribute test repository
29if HAVE_SVN_WC
[624]30check_PROGRAMS += copyright_test stats_test
[556]31endif
32
[248]33TESTS = $(check_PROGRAMS)
[396]34# these tests are only for developers since we do not distribute test repository
[547]35if HAVE_SVN_WC
[328]36TESTS += test_repo.sh check_repo_status.sh
[219]37endif
[8]38
[598]39# tests not yet passing are listed here
[597]40XFAIL_TESTS =
[595]41
[596]42noinst_HEADERS = Suite.h
[595]43
[596]44check_LTLIBRARIES = libsvndigesttest.la
[8]45
[596]46
[640]47LDADD = @builddir@/libsvndigesttest.la \
48  @top_builddir@/lib/libsvndigest.la \
49  $(SVNDIGEST_LIBS)
50AM_LDFLAGS = $(STATICFLAG) $(SVNDIGEST_LDFLAGS)
[596]51
[640]52AM_CPPFLAGS = -I@top_srcdir@/lib $(SVNDIGEST_CPPFLAGS)
53AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
[9]54
[596]55libsvndigesttest_la_SOURCES = Suite.cc
56
[556]57config_test_SOURCES = config_test.cc
[624]58copyright_test_SOURCES = copyright_test.cc
59date_test_SOURCES = date_test.cc
60gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc
61parser_test_SOURCES = parser_test.cc
[556]62stats_test_SOURCES = stats_test.cc
[624]63trac_test_SOURCES = trac_test.cc
[422]64utility_test_SOURCES = utility_test.cc
[28]65
[556]66toy_project = toy_project
67rootdir = $(abs_srcdir)/$(toy_project)
[540]68targetdir = $(abs_builddir)/generated_output
69repodir = $(abs_srcdir)/repo/trunk
[328]70
[540]71
[568]72# some tests need the test repo to be checked out
73stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.la
[624]74copyright_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.la
[540]75
[633]76@top_builddir@/lib/libsvndigest.la:
77  @cd @top_builddir@/lib/ && $(MAKE) $(AM_MAKEFLAGS);
78
[556]79$(toy_project):
80  echo Checking out test repository && \
81  svn checkout file://$(repodir) $(toy_project);
82
[28]83clean-local:
[624]84  rm -rf *.png *.tmp *~ $(targetdir)
[633]85
86.PHONY: @top_builddir@/lib/libsvndigest.la
Note: See TracBrowser for help on using the repository browser.