source: trunk/test/cmd_format_test.sh @ 1020

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

clean up after test

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