source: trunk/test/update_test4.sh @ 1602

Last change on this file since 1602 was 1602, checked in by peter, 2 years ago

check out r52, rather than check HEAD and downdating to r52

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#!/bin/sh
2
3# $Id: update_test4.sh 1602 2015-09-06 03:05:38Z 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
25# we want to a wc from rev52
26wc_revision=52
27# remove wc as downdating potentially causes conflicts
28rm -rf test/testSubDir/update_test4.sh.dir/toy_project
29required="repo"
30. test/init.sh || exit 99
31
32targetdir=out
33rm -rf out/*
34$mkdir_p out
35
36# run svndigest in r52
37SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none
38test -e stderr || exit_fail
39test -s stderr && exit_fail
40
41# update to rev 53, which removes directory 'design'
42$SVN update -r 53 $rootdir || exit_fail
43
44# try running svndigest and make sure it runs although no file in
45# current revision has changed (topdir has changed though as directory
46# 'design' was removed).
47SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none -u
48test -e stderr || exit_fail
49test -s stderr && exit_fail
50
51grep '^Printing' stdout || exit_fail
52
53exit_success;
Note: See TracBrowser for help on using the repository browser.