1539 |
10 Oct 12 |
peter |
#!/bin/sh |
1539 |
10 Oct 12 |
peter |
2 |
|
1539 |
10 Oct 12 |
peter |
# $Id$ |
1539 |
10 Oct 12 |
peter |
4 |
|
1539 |
10 Oct 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1539 |
10 Oct 12 |
peter |
6 |
# |
1539 |
10 Oct 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1539 |
10 Oct 12 |
peter |
8 |
# |
1539 |
10 Oct 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1539 |
10 Oct 12 |
peter |
# under the terms of the GNU General Public License as published by |
1539 |
10 Oct 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1539 |
10 Oct 12 |
peter |
# (at your option) any later version. |
1539 |
10 Oct 12 |
peter |
13 |
# |
1539 |
10 Oct 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1539 |
10 Oct 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1539 |
10 Oct 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1539 |
10 Oct 12 |
peter |
# General Public License for more details. |
1539 |
10 Oct 12 |
peter |
18 |
# |
1539 |
10 Oct 12 |
peter |
# You should have received a copy of the GNU General Public License |
1539 |
10 Oct 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1539 |
10 Oct 12 |
peter |
21 |
|
1539 |
10 Oct 12 |
peter |
# test that no output is printed when no files in wc changes between revisions |
1539 |
10 Oct 12 |
peter |
23 |
|
1539 |
10 Oct 12 |
peter |
24 |
required="repo" |
1539 |
10 Oct 12 |
peter |
25 |
. test/init.sh || exit 99 |
1539 |
10 Oct 12 |
peter |
26 |
|
1539 |
10 Oct 12 |
peter |
27 |
targetdir=out |
1539 |
10 Oct 12 |
peter |
28 |
rm -rf out/* |
1539 |
10 Oct 12 |
peter |
29 |
$mkdir_p out |
1539 |
10 Oct 12 |
peter |
30 |
|
1539 |
10 Oct 12 |
peter |
31 |
$SVN update -r 68 $rootdir || exit_fail |
1539 |
10 Oct 12 |
peter |
32 |
|
1539 |
10 Oct 12 |
peter |
33 |
svnversion $rootdir |
1539 |
10 Oct 12 |
peter |
34 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none |
1539 |
10 Oct 12 |
peter |
35 |
test -e stderr || exit_fail |
1539 |
10 Oct 12 |
peter |
36 |
test -s stderr && exit_fail |
1539 |
10 Oct 12 |
peter |
37 |
|
1539 |
10 Oct 12 |
peter |
# update to rev 69 |
1539 |
10 Oct 12 |
peter |
39 |
$SVN update -r 69 $rootdir |
1539 |
10 Oct 12 |
peter |
40 |
|
1539 |
10 Oct 12 |
peter |
41 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --update --format=none |
1539 |
10 Oct 12 |
peter |
42 |
test -e stderr || exit_fail |
1539 |
10 Oct 12 |
peter |
43 |
test -s stderr && exit_fail |
1539 |
10 Oct 12 |
peter |
44 |
|
1539 |
10 Oct 12 |
peter |
45 |
grep '^Printing' stdout && exit_fail |
1539 |
10 Oct 12 |
peter |
46 |
|
1539 |
10 Oct 12 |
peter |
47 |
exit_success; |