(tests) added t57 for daemon and gitweb stuff
This commit is contained in:
parent
509c73b888
commit
8deee9b6bd
115
t/t57-daemon-gitweb
Normal file
115
t/t57-daemon-gitweb
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
# vim: syn=sh:
|
||||||
|
for wr in 0 1
|
||||||
|
do
|
||||||
|
for bc in 0 1
|
||||||
|
do
|
||||||
|
cd $TESTDIR
|
||||||
|
$TESTDIR/rollback || die "rollback failed"
|
||||||
|
editrc GL_WILDREPOS $wr
|
||||||
|
editrc GL_BIG_CONFIG $bc
|
||||||
|
|
||||||
|
# ----------
|
||||||
|
|
||||||
|
name "INTERNAL"
|
||||||
|
echo "
|
||||||
|
@leads = u1 u2
|
||||||
|
@devs = u1 u2 u3 u4
|
||||||
|
|
||||||
|
@gbar = bar
|
||||||
|
repo @gbar
|
||||||
|
RW+ = @leads
|
||||||
|
RW = @devs
|
||||||
|
" | ugc
|
||||||
|
expect_push_ok "master -> master"
|
||||||
|
runremote ls -al repositories/bar.git/git-daemon-export-ok
|
||||||
|
expect "ls: cannot access repositories/bar.git/git-daemon-export-ok: No such file or directory"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 12 .* projects.list"
|
||||||
|
runremote cat projects.list
|
||||||
|
expect "testing.git"
|
||||||
|
|
||||||
|
name "add daemon access to bar"
|
||||||
|
echo "
|
||||||
|
R = daemon
|
||||||
|
" | ugc
|
||||||
|
runremote ls -al repositories/bar.git/git-daemon-export-ok
|
||||||
|
expect "gitolite-test gitolite-test .* repositories/bar.git/git-daemon-export-ok"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 12 .* projects.list"
|
||||||
|
|
||||||
|
name "add foo with gitweb access"
|
||||||
|
echo "
|
||||||
|
@leads = u1 u2
|
||||||
|
@devs = u1 u2 u3 u4
|
||||||
|
|
||||||
|
@gfoo = foo
|
||||||
|
repo @gfoo
|
||||||
|
RW+ = @leads
|
||||||
|
RW = @devs
|
||||||
|
R = gitweb
|
||||||
|
" | ugc
|
||||||
|
expect_push_ok "master -> master"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 20 .* projects.list"
|
||||||
|
runremote cat projects.list
|
||||||
|
expect "testing.git"
|
||||||
|
expect "foo.git"
|
||||||
|
|
||||||
|
name "add gitweb access to bar"
|
||||||
|
echo "
|
||||||
|
repo @gbar
|
||||||
|
R = gitweb
|
||||||
|
" | ugc
|
||||||
|
expect_push_ok "master -> master"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 28 .* projects.list"
|
||||||
|
runremote cat projects.list
|
||||||
|
expect "testing.git"
|
||||||
|
expect "foo.git"
|
||||||
|
expect "bar.git"
|
||||||
|
|
||||||
|
name "add repo baz with description"
|
||||||
|
echo "
|
||||||
|
@gbaz = baz
|
||||||
|
repo @gbaz
|
||||||
|
RW = @leads
|
||||||
|
|
||||||
|
baz = \"this is repo baz\"
|
||||||
|
" | ugc
|
||||||
|
expect_push_ok "master -> master"
|
||||||
|
expect "remote: Initialized empty Git repository in /home/gitolite-test/repositories/baz.git/"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 36 .* projects.list"
|
||||||
|
runremote cat projects.list
|
||||||
|
expect "testing.git"
|
||||||
|
expect "foo.git"
|
||||||
|
expect "bar.git"
|
||||||
|
expect "baz.git"
|
||||||
|
runremote ls -al repositories/baz.git/description
|
||||||
|
expect "gitolite-test gitolite-test 17 .* repositories/baz.git/description"
|
||||||
|
runremote cat repositories/baz.git/description
|
||||||
|
expect "this is repo baz"
|
||||||
|
|
||||||
|
name "add owner to testing repo"
|
||||||
|
echo "
|
||||||
|
testing \"sitaram\" = \"this is the testing repo\"
|
||||||
|
" | ugc
|
||||||
|
expect_push_ok "master -> master"
|
||||||
|
runremote ls -al projects.list
|
||||||
|
expect "gitolite-test gitolite-test 36 .* projects.list"
|
||||||
|
runremote cat projects.list
|
||||||
|
expect "testing.git"
|
||||||
|
expect "foo.git"
|
||||||
|
expect "bar.git"
|
||||||
|
expect "baz.git"
|
||||||
|
runremote cat repositories/testing.git/config
|
||||||
|
expect "\[gitweb\]"
|
||||||
|
expect "owner = sitaram"
|
||||||
|
runremote ls -al repositories/testing.git/description
|
||||||
|
expect "gitolite-test gitolite-test 25 .* repositories/testing.git/description"
|
||||||
|
runremote cat repositories/testing.git/description
|
||||||
|
expect "this is the testing repo"
|
||||||
|
|
||||||
|
name INTERNAL
|
||||||
|
done
|
||||||
|
done
|
Loading…
Reference in a new issue