source: trunk/test/copyright_test2.sh.in @ 952

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

introducing init.sh and using it. Added a README file in test directory including info on how to use init.sh. refs #418

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#!@SHELL@
2# @configure_input@
3
4# $Id: copyright_test2.sh.in 952 2009-12-06 07:42:30Z peter $
5
6# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009 Peter Johansson
8#
9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
10#
11# svndigest is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# svndigest is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23
24required="repo"
25
26. ./init.sh || exit 1
27
28# exit if cmd fails
29set -e
30
31# this test has its own wc since it modifies wc
32rootdir=$abs_builddir/.toy_project2
33
34rm -rf $rootdir
35$SVN co ${repo_url}/trunk $rootdir -r 45
36$SVN update $rootdir/lib
37# cannot use old config file because it's invalid
38$SVN update $rootdir/.svndigest
39
40$SVNDIGEST -r $rootdir --copyright --ignore-cache --no-report || exit_fail
41
42# remove wc to avoid someone being tempted to modify it
43rm -rf $rootdir
44
45exit_success;
Note: See TracBrowser for help on using the repository browser.