source: trunk/test/permission_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# $Id: permission_test.sh 1525 2012-10-01 06:31:07Z peter $
3#
4# Copyright (C) 2011 Peter Johansson
5#
6# This file is part of svndigest, http://dev.thep.lu.se/svndigest
7#
8# svndigest is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 3 of the License, or
11# (at your option) any later version.
12#
13# svndigest is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16# General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
20
21required="repo"
22
23. test/init.sh || exit 1
24set -e
25
26$SVN revert toy_project -R
27
28echo create config
29cat > config <<EOF
30
31EOF
32
33ls -l toy_project/bootstrap
34ls -l toy_project/bootstrap | cut -f 1 -d ' ' > pre_permission.txt
35SVNCOPYRIGHT_run 0 -r toy_project --config-file=config -v
36
37ls -l toy_project/bootstrap
38ls -l toy_project/bootstrap | cut -f 1 -d ' ' > post_permission.txt
39diff pre_permission.txt post_permission.txt || echo exit_fail
40test -x toy_project/bootstrap || exit_fail
41
42exit_success
Note: See TracBrowser for help on using the repository browser.