source: branches/0.9-stable/test/traverse_test.sh @ 1464

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

closes #512

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#!/bin/sh
2
3# $Id: traverse_test.sh 1464 2012-03-11 07:20:18Z peter $
4
5# Copyright (C) 2011 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. ./init.sh || exit 99
30
31# skip this test as long as it is XFAIL because we get false negative
32# with older WC
33# FIXME, remove line below when this test is expected to be successful
34$SVN --version | $GREP "version 1.7" || exit_skip
35
36daughter=.svndigest/branches_wc
37
38# check out
39rm -rf $rootdir/$daughter
40$SVN checkout file://$repo/branches $rootdir/$daughter || exit_fail
41
42#$SVN revert -R $rootdir/$daughter
43#$SVN update $rootdir/$daughter
44# modify file
45echo >> $rootdir/$daughter/NEWS
46
47$SVN revert -R $rootdir
48$SVN update $rootdir
49
50$SVN log $rootdir/$daughter
51SVNCOPYRIGHT_run 0 -v -r $rootdir
52$GREP "^Parsing.*$rootdir/.svndigest" stdout || exit_fail
53$GREP "^Parsing.*$rootdir/$daughter" stdout && exit_fail
54
55exit_success;
Note: See TracBrowser for help on using the repository browser.