912 |
30 Nov 09 |
peter |
#!/bin/sh |
912 |
30 Nov 09 |
peter |
# $Id$ |
912 |
30 Nov 09 |
peter |
3 |
# |
1532 |
05 Oct 12 |
peter |
# Copyright (C) 2009, 2010, 2012 Peter Johansson |
912 |
30 Nov 09 |
peter |
5 |
# |
912 |
30 Nov 09 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
912 |
30 Nov 09 |
peter |
7 |
# |
912 |
30 Nov 09 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
912 |
30 Nov 09 |
peter |
# under the terms of the GNU General Public License as published by |
912 |
30 Nov 09 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
912 |
30 Nov 09 |
peter |
# (at your option) any later version. |
912 |
30 Nov 09 |
peter |
12 |
# |
912 |
30 Nov 09 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
912 |
30 Nov 09 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
912 |
30 Nov 09 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
912 |
30 Nov 09 |
peter |
# General Public License for more details. |
912 |
30 Nov 09 |
peter |
17 |
# |
912 |
30 Nov 09 |
peter |
# You should have received a copy of the GNU General Public License |
912 |
30 Nov 09 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
912 |
30 Nov 09 |
peter |
20 |
|
968 |
09 Dec 09 |
peter |
21 |
required="repo" |
1525 |
01 Oct 12 |
peter |
22 |
. test/init.sh || exit 99 |
912 |
30 Nov 09 |
peter |
23 |
set -e |
912 |
30 Nov 09 |
peter |
24 |
|
912 |
30 Nov 09 |
peter |
25 |
for opt in --version --help; do |
1293 |
14 Nov 10 |
peter |
26 |
SVNDIGEST_COPY_CACHE_run 0 $opt |
1293 |
14 Nov 10 |
peter |
27 |
test -n "`cat stdout`" || exit_fail |
1293 |
14 Nov 10 |
peter |
28 |
test -z "`cat stderr`" || exit_fail |
912 |
30 Nov 09 |
peter |
29 |
done |
912 |
30 Nov 09 |
peter |
30 |
|
1092 |
12 Jun 10 |
peter |
31 |
pristine=fresh_wc |
957 |
06 Dec 09 |
peter |
32 |
rm -rf $pristine |
957 |
06 Dec 09 |
peter |
33 |
$SVN co ${repo_url}/trunk $pristine |
957 |
06 Dec 09 |
peter |
34 |
|
1293 |
14 Nov 10 |
peter |
35 |
SVNDIGEST_run 0 -r $rootdir --no-report |
1293 |
14 Nov 10 |
peter |
36 |
SVNDIGEST_COPY_CACHE_run 0 -r $rootdir -t $pristine |
1293 |
14 Nov 10 |
peter |
37 |
|
1296 |
14 Nov 10 |
peter |
38 |
find $pristine | $GREP svndigest-cache || exit_fail |
958 |
06 Dec 09 |
peter |
39 |
rm -rf $pristine |
957 |
06 Dec 09 |
peter |
40 |
exit_success |