Changeset 556 for trunk/test


Ignore:
Timestamp:
Jan 16, 2008, 2:35:00 PM (14 years ago)
Author:
Peter Johansson
Message:

Fixing statistics bugs and links on first page

Location:
trunk/test
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r547 r556  
    44
    55# Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson
     6# Copyright (C) 2008 Peter Johansson
    67#
    78# This file is part of svndigest, http://trac.thep.lu.se/svndigest
     
    2223# 02111-1307, USA.
    2324
    24 check_PROGRAMS = date gnuplot_pipe parser trac utility_test
     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
    2531
    2632TESTS = $(check_PROGRAMS)
     
    3440AM_CPPFLAGS = -I@top_srcdir@/lib
    3541
     42config_test_SOURCES = config_test.cc
    3643date_SOURCES = date.cc
    3744gnuplot_pipe_SOURCES = gnuplot_pipe.cc
    3845parser_SOURCES = parser.cc
     46stats_test_SOURCES = stats_test.cc
    3947trac_SOURCES = trac.cc
    4048utility_test_SOURCES = utility_test.cc
    4149
    42 rootdir = $(abs_srcdir)/toy_project
     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)
    4356targetdir = $(abs_builddir)/generated_output
    4457repodir = $(abs_srcdir)/repo/trunk
     
    6073  @echo creating $@
    6174
    62 test_repo.sh: test_repo.sh.in Makefile
     75test_repo.sh: test_repo.sh.in Makefile $(toy_project)
    6376  @$(do_subst) < $< > $@
    6477  @chmod +x $@
    6578  @echo creating $@
    6679
     80$(toy_project):
     81  echo Checking out test repository && \
     82  svn checkout file://$(repodir) $(toy_project);
     83
    6784clean-local:
    6885  rm -rf *.png *.tmp *~ check_repo_status.sh test_repo.sh \
    6986  $(targetdir) 
    70 
  • trunk/test/parser.cc

    r552 r556  
    4343{
    4444  using namespace theplu::svndigest;
    45   os << "Testing: " << file << std::endl;
    4645  LineTypeParser parser(file);
    4746  std::ifstream is(file.c_str());
  • trunk/test/test_repo.sh.in

    r540 r556  
    2121# 02111-1307, USA.
    2222
    23 # test repository does not exist and need to be checked out
    24 if [ ! -d %rootdir% ]; then
    25     repodir=`cd "%abs_srcdir%" && pwd`;
    26     repodir=$repodir"/repo/trunk";
    27     svn checkout file://$repodir %rootdir%;
    28 fi
    29 
    3023svn update %rootdir% > /dev/null;
    3124
Note: See TracChangeset for help on using the changeset viewer.