source: trunk/test/copyright2_test.sh @ 1525

Last change on this file since 1525 was 1525, checked in by Peter Johansson, 9 years ago

replace recursive Makefile with one single Makefile. Keeping multiple Makefile.ams which are included into main Makefile.am.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#!/bin/sh
2
3# $Id: copyright2_test.sh 1525 2012-10-01 06:31:07Z peter $
4
5# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2009, 2010, 2011 Peter Johansson
7#
8# This file is part of svndigest, http://dev.thep.lu.se/svndigest
9#
10# svndigest is free software; you can redistribute it and/or modify it
11# under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 3 of the License, or
13# (at your option) any later version.
14#
15# svndigest is distributed in the hope that it will be useful, but
16# WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18# General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
22
23required="repo"
24
25. test/init.sh || exit 99
26
27# exit if cmd fails
28set -e
29
30$SVN revert $rootdir -R
31$SVN update $rootdir -r 45
32$SVN update $rootdir/lib
33# to get svncopyright:ignore property
34$SVN update $rootdir/dir_to_be_ignored -r 71
35# cannot use old config file because it's invalid
36$SVN update $rootdir/.svndigest
37
38SVNCOPYRIGHT_run 0 -r $rootdir --ignore-cache --verbose
39
40$GREP '^Parsing.*dir_to_be_ignored' stdout && exit_fail
41
42rm -rf $rootdir
43exit_success;
Note: See TracBrowser for help on using the repository browser.