1015 |
09 Jan 10 |
peter |
#!/bin/sh |
1015 |
09 Jan 10 |
peter |
2 |
|
1015 |
09 Jan 10 |
peter |
# $Id$ |
1015 |
09 Jan 10 |
peter |
4 |
# |
1532 |
05 Oct 12 |
peter |
# Copyright (C) 2010, 2012 Peter Johansson |
1015 |
09 Jan 10 |
peter |
6 |
# |
1015 |
09 Jan 10 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1015 |
09 Jan 10 |
peter |
8 |
# |
1015 |
09 Jan 10 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1015 |
09 Jan 10 |
peter |
# under the terms of the GNU General Public License as published by |
1015 |
09 Jan 10 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1015 |
09 Jan 10 |
peter |
# (at your option) any later version. |
1015 |
09 Jan 10 |
peter |
13 |
# |
1015 |
09 Jan 10 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1015 |
09 Jan 10 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1015 |
09 Jan 10 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1015 |
09 Jan 10 |
peter |
# General Public License for more details. |
1015 |
09 Jan 10 |
peter |
18 |
# |
1015 |
09 Jan 10 |
peter |
# You should have received a copy of the GNU General Public License |
1015 |
09 Jan 10 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1015 |
09 Jan 10 |
peter |
21 |
|
1015 |
09 Jan 10 |
peter |
22 |
required="repo" |
1015 |
09 Jan 10 |
peter |
23 |
|
1525 |
01 Oct 12 |
peter |
24 |
. test/init.sh || exit 99 |
1015 |
09 Jan 10 |
peter |
25 |
set -e |
1015 |
09 Jan 10 |
peter |
26 |
|
1092 |
12 Jun 10 |
peter |
27 |
SVNDIGEST_run 1 -f --format=banana |
1092 |
12 Jun 10 |
peter |
28 |
test -s stderr || exit_fail |
1220 |
13 Oct 10 |
peter |
29 |
$GREP 'invalid argument.*banana.*format' stderr || exit_fail |
1015 |
09 Jan 10 |
peter |
30 |
|
1092 |
12 Jun 10 |
peter |
31 |
SVNDIGEST_run 0 -g --format=svg --anchor-format=svg |
1220 |
13 Oct 10 |
peter |
32 |
$GREP 'format = svg' stdout || exit_fail |
1220 |
13 Oct 10 |
peter |
33 |
$GREP 'anchor_format = svg' stdout || exit_fail |
1023 |
10 Jan 10 |
peter |
34 |
|
1015 |
09 Jan 10 |
peter |
35 |
exit_success; |