source: trunk/test/cmd_format_test.sh @ 1092

Last change on this file since 1092 was 1092, checked in by Peter Johansson, 11 years ago

fixes #445. tests are now performed in testSubDir/foo and each test has its own wc (and own svndigest cache) to work on.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1#!/bin/sh
2
3# $Id: cmd_format_test.sh 1092 2010-06-12 23:50:18Z 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
27SVNDIGEST_run 1 -f --format=banana
28test -s stderr || exit_fail
29grep 'invalid argument.*banana.*format' stderr || exit_fail
30
31SVNDIGEST_run 0 -g --format=svg --anchor-format=svg
32grep 'format = svg' stdout || exit_fail
33grep 'anchor_format = svg' stdout || exit_fail
34
35exit_success;
Note: See TracBrowser for help on using the repository browser.