source: trunk/test/traverse_test.sh

Last change on this file was 1525, checked in by Peter Johansson, 10 years ago

replace recursive Makefile with one single Makefile. Keeping multiple Makefile.ams which are included into main Makefile.am.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#!/bin/sh
2
3# $Id: traverse_test.sh 1525 2012-10-01 06:31:07Z peter $
4
5# Copyright (C) 2012 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
22# Test that svncopyright (and indirectly svndigest) does not traverse
23# into another WC. See ticket #512
24
25required="repo"
26
27rm -rf testSubdir/traverse_test.sh.dir
28
29. test/init.sh || exit 99
30
31daughter=.svndigest/branches_wc
32
33# check out
34rm -rf $rootdir/$daughter
35$SVN checkout file://$repo/branches $rootdir/$daughter || exit_fail
36
37#$SVN revert -R $rootdir/$daughter
38#$SVN update $rootdir/$daughter
39# modify file
40echo >> $rootdir/$daughter/NEWS
41
42$SVN revert -R $rootdir
43$SVN update $rootdir
44
45$SVN log $rootdir/$daughter
46SVNCOPYRIGHT_run 0 -v -r $rootdir
47$GREP "^Parsing.*$rootdir/bin/" stdout || exit_fail
48$GREP "^Parsing.*$rootdir/$daughter" stdout && exit_fail
49
50exit_success;
Note: See TracBrowser for help on using the repository browser.