3 # not part of the official test suite (yet); just some q&d testing
5 # to be run from ~/gitolite as ./$0
11 print2
() { echo -n "$@" >&3; }
12 say2
() { echo "$@" >&3; }
13 die
() { echo FATAL
: "$@" >&3; exit 1; }
16 export tmp
=$
(mktemp
-d)
23 echo "push @{ \$RC{ENABLE} }, 'refex-expr';" >> ~
/.gitolite.rc
24 cat <<EOF >> ~/.gitolite/conf/gitolite.conf
29 RW+ VREF/NAME/conf/ = u3
30 - VREF/NAME/conf/ -gt 2 = u3
36 # ----------------------------------------------------------------------
42 git push origin master
47 tsh
'tc doc/d1 doc/d2 doc/d3 doc/d4 conf/c1'
48 git push origin master
49 say2
4 doc
1 conf pass
51 tsh
'tc conf/c2 conf/c3 conf/c4'
52 git push origin master
&& die
1
55 say2
3 conf u3 fail u2 pass