1506 |
31 Aug 12 |
peter |
#!/bin/sh |
1506 |
31 Aug 12 |
peter |
# $Id$ |
1506 |
31 Aug 12 |
peter |
3 |
# |
1515 |
26 Sep 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1506 |
31 Aug 12 |
peter |
5 |
# |
1506 |
31 Aug 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1506 |
31 Aug 12 |
peter |
7 |
# |
1506 |
31 Aug 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1506 |
31 Aug 12 |
peter |
# under the terms of the GNU General Public License as published by |
1506 |
31 Aug 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1506 |
31 Aug 12 |
peter |
# (at your option) any later version. |
1506 |
31 Aug 12 |
peter |
12 |
# |
1506 |
31 Aug 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1506 |
31 Aug 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1506 |
31 Aug 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1506 |
31 Aug 12 |
peter |
# General Public License for more details. |
1506 |
31 Aug 12 |
peter |
17 |
# |
1506 |
31 Aug 12 |
peter |
# You should have received a copy of the GNU General Public License |
1506 |
31 Aug 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1506 |
31 Aug 12 |
peter |
20 |
|
1506 |
31 Aug 12 |
peter |
# 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 |