source: trunk/test/cmd_format_test.sh @ 1018

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

update test to match svndigest binary cmd option

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1008 bytes
Line 
1#!/bin/sh
2
3# $Id: cmd_format_test.sh 1018 2010-01-09 14:47:01Z 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$SVNDIGEST -f -r $rootdir -t $targetdir --format=banana 2> tmp_stderr && exit_fail
28test -s tmp_stderr || exit_fail
29cat tmp_stderr
30grep 'invalid argument.*banana.*format' tmp_stderr || exit_fail
31
32exit_success;
Note: See TracBrowser for help on using the repository browser.