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