test/svndigest_copy_cache_test2.sh

Code
Comments
Other
Rev Date Author Line
1506 31 Aug 12 peter 1 #!/bin/sh
1506 31 Aug 12 peter 2 # $Id$
1506 31 Aug 12 peter 3 #
1515 26 Sep 12 peter 4 # Copyright (C) 2012 Peter Johansson
1506 31 Aug 12 peter 5 #
1506 31 Aug 12 peter 6 # This file is part of svndigest, http://dev.thep.lu.se/svndigest
1506 31 Aug 12 peter 7 #
1506 31 Aug 12 peter 8 # svndigest is free software; you can redistribute it and/or modify it
1506 31 Aug 12 peter 9 # under the terms of the GNU General Public License as published by
1506 31 Aug 12 peter 10 # the Free Software Foundation; either version 3 of the License, or
1506 31 Aug 12 peter 11 # (at your option) any later version.
1506 31 Aug 12 peter 12 #
1506 31 Aug 12 peter 13 # svndigest is distributed in the hope that it will be useful, but
1506 31 Aug 12 peter 14 # WITHOUT ANY WARRANTY; without even the implied warranty of
1506 31 Aug 12 peter 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1506 31 Aug 12 peter 16 # General Public License for more details.
1506 31 Aug 12 peter 17 #
1506 31 Aug 12 peter 18 # You should have received a copy of the GNU General Public License
1506 31 Aug 12 peter 19 # along with svndigest. If not, see <http://www.gnu.org/licenses/>.
1506 31 Aug 12 peter 20
1506 31 Aug 12 peter 21 # test that svndigest_copy_cache copies cache for svncopyright
1506 31 Aug 12 peter 22
1506 31 Aug 12 peter 23 required="repo"
1525 01 Oct 12 peter 24 . test/init.sh || exit 99
1506 31 Aug 12 peter 25 set -e
1506 31 Aug 12 peter 26
1527 02 Oct 12 peter 27 SVNCOPYRIGHT_run 0 -r $rootdir
1506 31 Aug 12 peter 28 svn revert $rootdir -R
1506 31 Aug 12 peter 29
1506 31 Aug 12 peter 30 find $rootdir | $GREP svncopyright-cache || exit_fail
1506 31 Aug 12 peter 31
1506 31 Aug 12 peter 32 pristine=fresh_wc
1506 31 Aug 12 peter 33 rm -rf $pristine
1506 31 Aug 12 peter 34 $SVN co ${repo_url}/trunk $pristine
1506 31 Aug 12 peter 35
1506 31 Aug 12 peter 36 SVNDIGEST_COPY_CACHE_run 0 -r $rootdir -t $pristine
1506 31 Aug 12 peter 37
1506 31 Aug 12 peter 38 find $pristine | $GREP svncopyright-cache || exit_fail
1506 31 Aug 12 peter 39 rm -rf $pristine
1506 31 Aug 12 peter 40
1506 31 Aug 12 peter 41 exit_success