1533 |
06 Oct 12 |
peter |
#!/bin/sh |
1533 |
06 Oct 12 |
peter |
2 |
|
1533 |
06 Oct 12 |
peter |
# $Id$ |
1533 |
06 Oct 12 |
peter |
4 |
|
1533 |
06 Oct 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1533 |
06 Oct 12 |
peter |
6 |
# |
1533 |
06 Oct 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1533 |
06 Oct 12 |
peter |
8 |
# |
1533 |
06 Oct 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1533 |
06 Oct 12 |
peter |
# under the terms of the GNU General Public License as published by |
1533 |
06 Oct 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1533 |
06 Oct 12 |
peter |
# (at your option) any later version. |
1533 |
06 Oct 12 |
peter |
13 |
# |
1533 |
06 Oct 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1533 |
06 Oct 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1533 |
06 Oct 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1533 |
06 Oct 12 |
peter |
# General Public License for more details. |
1533 |
06 Oct 12 |
peter |
18 |
# |
1533 |
06 Oct 12 |
peter |
# You should have received a copy of the GNU General Public License |
1533 |
06 Oct 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1533 |
06 Oct 12 |
peter |
21 |
|
1533 |
06 Oct 12 |
peter |
22 |
required="repo" |
1533 |
06 Oct 12 |
peter |
23 |
. test/init.sh || exit 99 |
1533 |
06 Oct 12 |
peter |
24 |
|
1533 |
06 Oct 12 |
peter |
25 |
targetdir=out |
1533 |
06 Oct 12 |
peter |
26 |
rm -rf out/* |
1533 |
06 Oct 12 |
peter |
27 |
$mkdir_p out |
1533 |
06 Oct 12 |
peter |
28 |
|
1539 |
10 Oct 12 |
peter |
29 |
$SVN update -r 50 $rootdir/lib || exit_fail |
1533 |
06 Oct 12 |
peter |
30 |
|
1533 |
06 Oct 12 |
peter |
31 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none |
1533 |
06 Oct 12 |
peter |
32 |
test -e stderr || exit_fail |
1533 |
06 Oct 12 |
peter |
33 |
test -s stderr && exit_fail |
1533 |
06 Oct 12 |
peter |
34 |
|
1537 |
07 Oct 12 |
peter |
35 |
head $targetdir/toy_project/classic/all/total/bootstrap.html \ |
1537 |
07 Oct 12 |
peter |
36 |
| grep 'revision:' || exit_fail |
1537 |
07 Oct 12 |
peter |
37 |
|
1538 |
07 Oct 12 |
peter |
38 |
head $targetdir/toy_project/classic/all/total/index.html \ |
1538 |
07 Oct 12 |
peter |
39 |
| grep 'revision:' || exit_fail |
1538 |
07 Oct 12 |
peter |
40 |
|
1538 |
07 Oct 12 |
peter |
41 |
head $targetdir/toy_project/classic/all/total/bin/index.html \ |
1538 |
07 Oct 12 |
peter |
42 |
| grep 'revision:' || exit_fail |
1538 |
07 Oct 12 |
peter |
43 |
|
1533 |
06 Oct 12 |
peter |
# update to latest rev |
1539 |
10 Oct 12 |
peter |
45 |
$SVN update -r 71 $rootdir/lib/Node.h |
1533 |
06 Oct 12 |
peter |
46 |
|
1533 |
06 Oct 12 |
peter |
47 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --update --format=none |
1533 |
06 Oct 12 |
peter |
48 |
test -e stderr || exit_fail |
1533 |
06 Oct 12 |
peter |
49 |
test -s stderr && exit_fail |
1533 |
06 Oct 12 |
peter |
50 |
|
1534 |
06 Oct 12 |
peter |
51 |
grep '^Printing output for ' stdout || exit_fail |
1534 |
06 Oct 12 |
peter |
52 |
|
1539 |
10 Oct 12 |
peter |
# lib/Node.cc hasn't been changed and shouldn't be printed again |
1534 |
06 Oct 12 |
peter |
54 |
grep '^Printing output for .*lib/Node.cc' stdout && exit_fail |
1534 |
06 Oct 12 |
peter |
55 |
|
1534 |
06 Oct 12 |
peter |
# directory bin hasn't changed and shouldn't... |
1534 |
06 Oct 12 |
peter |
57 |
grep '^Printing output for .*toy_project/bin' stdout && exit_fail |
1534 |
06 Oct 12 |
peter |
58 |
|
1533 |
06 Oct 12 |
peter |
59 |
exit_success; |