source: trunk/test/update_test4.sh @ 1539

Last change on this file since 1539 was 1539, checked in by peter, 5 years ago

more tests for --update option. closes #334

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#!/bin/sh
2
3# $Id: update_test4.sh 1539 2012-10-10 10:17:54Z peter $
4
5# Copyright (C) 2012 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
22# test that when a changeset only removes a directory that this will
23# be reflected in mother's output
24
25required="repo"
26. test/init.sh || exit 99
27
28targetdir=out
29rm -rf out/*
30$mkdir_p out
31
32# remove directories that are prone to conflicts
33rm -rf $rootdir/design
34rm -rf $rootdir/late_copy
35
36# create a mixed revision wc
37$SVN update -r 52 $rootdir || exit_fail
38
39SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none
40test -e stderr || exit_fail
41test -s stderr && exit_fail
42
43$SVN update -r 53 $rootdir || exit_fail
44
45SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none -u
46test -e stderr || exit_fail
47test -s stderr && exit_fail
48
49grep '^Printing' stdout || exit_fail
50
51exit_success;
Note: See TracBrowser for help on using the repository browser.