source: trunk/test/cmd_format_test.sh @ 1087

Last change on this file since 1087 was 1023, checked in by Peter Johansson, 12 years ago

added new cmd option 'anchor-format'. refs #279

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#!/bin/sh
2
3# $Id: cmd_format_test.sh 1023 2010-01-10 23:15:47Z peter $
4#
5# Copyright (C) 2010 Peter Johansson
6#
7# This file is part of svndigest, http://dev.thep.lu.se/svndigest
8#
9# svndigest is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 3 of the License, or
12# (at your option) any later version.
13#
14# svndigest is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
21
22required="repo"
23
24. ./init.sh || exit 1
25set -e
26
27$mkdir_p $targetdir
28$SVNDIGEST -f -r $rootdir -t $targetdir --format=banana 2> tmp_stderr && exit_fail
29test -s tmp_stderr || exit_fail
30cat tmp_stderr
31grep 'invalid argument.*banana.*format' tmp_stderr || exit_fail
32rm -f tmp_stderr
33
34$SVNDIGEST -g --format=svg --anchor-format=svg > tmp_stdout
35cat tmp_stdout
36grep 'format = svg' tmp_stdout || exit_fail
37grep 'anchor_format = svg' tmp_stdout || exit_fail
38rm -f tmp_stdout
39
40exit_success;
Note: See TracBrowser for help on using the repository browser.