5 # this is hardcoded; change it if needed
10 # basic tests using ssh
11 # ----------------------------------------------------------------------
13 my $bd = `gitolite query-rc -n GL_BINDIR`;
15 my $ab = `gitolite query-rc -n GL_ADMIN_BASE`;
22 rm -f $h/.ssh/authorized_keys; ok or die 1
24 cp $bd/../t/keys/u[1-6]* $h/.ssh; ok or die 2
25 cp $bd/../t/keys/admin* $h/.ssh; ok or die 3
26 cp $bd/../t/keys/config $h/.ssh; ok or die 4
28 perl s/%USER/$ENV{USER}/
31 mkdir $ab/keydir; ok or die 5
32 cp $bd/../t/keys/*.pub $ab/keydir; ok or die 6
35 system("gitolite ../triggers/post-compile/ssh-authkeys");
38 # ----------------------------------------------------------------------
48 try
"ADMIN_PUSH set3; !/FATAL/" or die text
();
51 ssh u1 info; ok; /R W\tfoo/
52 ssh u2 info; ok; /R \tfoo/
53 ssh u3 info; ok; /R W\tfoo/
54 ssh u4 info; ok; /R \tfoo/
55 ssh u5 info; ok; !/foo/
56 ssh u6 info; ok; !/foo/