(test suite) t/install also serves as a quick way to "play install" gitolite
(t/install-gitolite has been renamed to t/install)
This commit is contained in:
parent
5e3a051a95
commit
f77d0d2cf1
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
export TESTDIR=$PWD
|
||||
|
||||
[[ -f /tmp/$1.tar ]] || { echo need tar file 2>&1; exit 1; }
|
||||
|
||||
# blank out the client side
|
||||
rm -rf ~/gitolite-admin
|
||||
# make sure we have the u1-u6 keys and the config to refer to them
|
||||
cp $TESTDIR/keys/config ~/.ssh
|
||||
cp $TESTDIR/keys/u[1-6]* ~/.ssh
|
||||
chmod 755 ~/.ssh ~/.ssh/config ~/.ssh/*pub
|
||||
chmod 600 ~/.ssh/u?
|
||||
|
||||
# blank out the server side
|
||||
echo the next command MAY ask for a password
|
||||
ssh gitolite-test@localhost rm -rf .ssh .gitolite .gitolite.rc repositories gitolite-install
|
||||
echo the next command SHOULD ask for a password
|
||||
ssh-copy-id -i ~/.ssh/id_rsa gitolite-test@localhost
|
||||
echo the next command should NOT ask for a password
|
||||
|
||||
cd ~/gitolite
|
64
t/install
Executable file
64
t/install
Executable file
|
@ -0,0 +1,64 @@
|
|||
#!/bin/bash
|
||||
|
||||
# note: all the /tmp and /tmp/glrb stuff is for testing with a non-default
|
||||
# REPO_BASE. I don't use it a lot so expect some glitches. Just ignore it if
|
||||
# you're trying to understand this code...
|
||||
|
||||
# ----
|
||||
|
||||
die() { echo "$@"; exit 1; }
|
||||
|
||||
cd ${0%/*}
|
||||
|
||||
git rev-parse --show-toplevel || die should run t/install from a clone of gitolite
|
||||
export TESTDIR=$PWD
|
||||
|
||||
cd $HOME
|
||||
# prepare and save local ssh
|
||||
mkdir -p .ssh; chmod go-w .ssh
|
||||
|
||||
echo -n generating keys...
|
||||
for i in tester u1 u2 u3 u4 u5 u6
|
||||
do
|
||||
ssh-keygen -q -N "" -f .ssh/$i
|
||||
done
|
||||
echo done
|
||||
|
||||
sed -e "s/gitolite-test/$USER/" < $TESTDIR/keys/config > .ssh/config
|
||||
chmod go-w .ssh/config
|
||||
|
||||
tar cf .ssh.save .ssh
|
||||
|
||||
# blank out the client side
|
||||
rm -rf gitolite-admin .ssh
|
||||
tar xf .ssh.save
|
||||
|
||||
# blank out the server side
|
||||
rm -rf .gitolite .gitolite.rc repositories /tmp/glrb bin share
|
||||
|
||||
# set up our identity (impacts some tests; don't change this!)
|
||||
git config --global user.name "gitolite tester"
|
||||
git config --global user.email "tester@example.com"
|
||||
|
||||
# install it
|
||||
cd gitolite
|
||||
git describe --tags --long HEAD > conf/VERSION
|
||||
# in case it is dirty
|
||||
src/gl-system-install
|
||||
cd $HOME
|
||||
gl-setup -q .ssh/tester.pub
|
||||
|
||||
# add 6 keys
|
||||
rm -rf ~/gitolite-admin
|
||||
git clone gitolite:gitolite-admin
|
||||
cd gitolite-admin
|
||||
cp ~/.ssh/u*.pub keydir
|
||||
git add keydir; git commit -m 'added 6 keys'
|
||||
git push
|
||||
|
||||
# make the rollback.tar files on both sides
|
||||
cd $HOME
|
||||
tar cf client-rollback.tar gitolite-admin
|
||||
mkdir -p repositories /tmp/glrb
|
||||
tar cf server-rollback.tar .ssh .gitolite .gitolite.rc repositories bin share
|
||||
tar -C /tmp -cf $HOME/server-rollback2.tar glrb
|
|
@ -1,55 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
export TESTDIR=$PWD
|
||||
|
||||
# prepare local ssh
|
||||
mkdir -p $HOME/.ssh; chmod go-rx $HOME/.ssh
|
||||
[ -f "$HOME/.ssh/id_rsa" ] || ssh-keygen -q -N "" -t rsa -f $HOME/.ssh/id_rsa
|
||||
|
||||
# blank out the client side
|
||||
rm -rf ~/gitolite-admin
|
||||
# make sure we have the u1-u6 keys and the config to refer to them
|
||||
cp $TESTDIR/keys/config ~/.ssh
|
||||
cp $TESTDIR/keys/u[1-6]* ~/.ssh
|
||||
chmod 755 ~/.ssh ~/.ssh/config ~/.ssh/*pub
|
||||
chmod 600 ~/.ssh/u?
|
||||
|
||||
# blank out the server side
|
||||
echo the next command MAY ask for a password
|
||||
ssh gitolite-test@localhost rm -rf .ssh .gitolite .gitolite.rc repositories /tmp/glrb bin share
|
||||
echo the next command SHOULD ask for a password
|
||||
ssh-copy-id -i ~/.ssh/id_rsa gitolite-test@localhost
|
||||
echo the next command should NOT ask for a password
|
||||
scp ~/.ssh/tester.pub gitolite-test@localhost:
|
||||
|
||||
# install it
|
||||
echo installing whatever is here now...
|
||||
# ../src/gl-easy-install -q gitolite-test localhost tester
|
||||
cat <<EOF | ssh gitolite-test@localhost
|
||||
cd gitolite
|
||||
git describe --tags --long HEAD > conf/VERSION
|
||||
src/gl-system-install
|
||||
cd
|
||||
gl-setup -q tester.pub
|
||||
EOF
|
||||
echo =============================
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
|
||||
# add 6 keys
|
||||
rm -rf ~/gitolite-admin
|
||||
cd
|
||||
git clone gitolite:gitolite-admin
|
||||
cd ~/gitolite-admin
|
||||
cp $TESTDIR/keys/u*pub keydir
|
||||
git add keydir; git commit -m 'added 6 keys'
|
||||
git push
|
||||
|
||||
# make the rollback.tar files on both sides
|
||||
cd
|
||||
tar cf rollback.tar gitolite-admin
|
||||
ssh gitolite-test@localhost mkdir -p repositories /tmp/glrb
|
||||
ssh gitolite-test@localhost tar cf rollback.tar .ssh .gitolite .gitolite.rc repositories bin share
|
||||
ssh gitolite-test@localhost tar -C /tmp -cf \$HOME/rollback2.tar glrb
|
27
t/keys/u1
27
t/keys/u1
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEoAIBAAKCAQEAnqiW8xCSfg/JO7acBvarVghAyM2Xw2ZzwaQN5xOg/XOSt2wV
|
||||
5wsT32hmPg/v8NqXcjKXMyI76ZO4U9To9yDvs6xKC9NwFmV6prjf6IC2gryykg2L
|
||||
BvWKIrcr/tNBnKgDAs7SDtf1EEN5Byf0mTcy9c9eVMsxvwm3oXqXKCm1YkKeaWOE
|
||||
d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J5lgdq782ScWKafFjLrdCk+MGmFyWllmDucfCnpsljzte
|
||||
aDOWO9QdUwdE2KRjV3MCgYAyZK5+LbDxYCJZF69gopEs7sLHJlbWJCDRitQCXxXM
|
||||
9gS7KUjGbhq3P5o8G9VBe2KUCxikLgwjxJ+ogKUEW2hmXD3kCHW6DuNf2XDPjiLF
|
||||
ZWde3aRbqMeqJgNxIUyeI70uLmP7mabanr4PhIYvLomKYmi7Ybg9lNgaa5AUqE0R
|
||||
9wKBgB8LYjinisX8pGaSfGpxEHQu/giH9SqUyXoDyk/SkqmhmayB341P+x3Zdlrx
|
||||
xBVYsxdQRbxbiO2CdihPDbiT4wXS+p9mReOJeb/QluzGpPuloSkx87uW1kcErZ/m
|
||||
vr8opZ6ITlSSQeigwabVpkthDzNgQbEeHblbX0F9io56vX8w
|
||||
-----END RSA PRIVATE KEY-----
|
|
@ -1 +0,0 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnqiW8xCSfg/JO7acBvarVghAyM2Xw2ZzwaQN5xOg/XOSt2wV5wsT32hmPg/v8NqXcjKXMyI76ZO4U9To9yDvs6xKC9NwFmV6prjf6IC2gryykg2LBvWKIrcr/tNBnKgDAs7SDtf1EEN5Byf0mTcy9c9eVMsxvwm3oXqXKCm1YkKeaWOEd0xuRMRAVHlfon4M67r/heDZho9QLwvyDhorefhoLGOzrUbsXbcTHAEkt+m56swz7d7yZVSXckqrQ+KyY6cVjm1kdBvO7B34TpjMYubv4a3WPC98QUAFSRir3+HW43JFU/ty4Z7pCbpDBPctvg1fdCzIx1sg54zE6MZGnQ== tester@sita-wd.atc.tcs.com
|
27
t/keys/u2
27
t/keys/u2
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEowIBAAKCAQEA9NNn9rpF3+1reKJxfqQcjmugWkvN4VZfi6Uln1q6RJlohh6G
|
||||
FhSTbA+puGjWy03VROa2K3TUxKKtPHMCFIOVpnNN3e4kAJb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46rLz3vY4RJyId2iZws/UoN1R400zCdmWb9mAXxUkbV5yjxl+FuXpuiNfVB5NnpA
|
||||
8n33nCieuVONIjZdxjyDSeWVYVvlNpveqaHEgnuZFZ21+RKPZrnw91sR+muS4v7H
|
||||
IenbvtPLwO5rlP3P+uEXAoGBAOgieZnPUqOc/4sivbnnTkQd93B8WWqgNXs8XL3/
|
||||
6XmLn+29xmTtv7lA2j7K1axqYc64ImML7suSWGTwIwLrWU8Vr63U+o8t2+6bSBmC
|
||||
2j/CXuKMikLWoqdDrBXBIUXl0z8dkfs1apVTmg+Gy99J5pmKyGNfCmyXiNihQync
|
||||
XsRLAoGBAN50w7bf+lGJ0KDoMIAGRqLJpm0NLd980R7j+yR49g8N/RjKrXz8zFuo
|
||||
7NJztYXT1oBNv9HuO7Aq0z7gGQiNbjarGVgblqZi3RN7IE8/Cs4Ev50BLVWM1WTN
|
||||
x4yFgK1OC3FfJaY6rn8u9y0dygTFvKrQx68gO+RgAIb4t/ZUoySW
|
||||
-----END RSA PRIVATE KEY-----
|
|
@ -1 +0,0 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9NNn9rpF3+1reKJxfqQcjmugWkvN4VZfi6Uln1q6RJlohh6GFhSTbA+puGjWy03VROa2K3TUxKKtPHMCFIOVpnNN3e4kAJbW1P/DbeYL5/kYo0tcuNexFch2/4FrcykBoxZvTGUH1hJNIANjcAs+u+rzbwyiH5iQKIukfe7de2LrJEyw/n05yAkMVfc2E97ge6X7rwGOpKaqMyy5S5Wjr6YxD54CAybdys9XWbwZYFx9s14jPFK0frtXE7qFmR+hch9rgEro3jvIqLkQpO2u/ZfcoHllRDTqXZVGRGfrfZ8UHYsn32+iApLFFdKcPkTtJokmq++b61NoQVQfk54yvQ== tester@sita-wd.atc.tcs.com
|
27
t/keys/u3
27
t/keys/u3
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEogIBAAKCAQEAs7YceedkXYoP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d.atc.tcs.com
|
27
t/keys/u4
27
t/keys/u4
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEogIBAAKCAQEAyjyPl0ARSBYZTuZtkPJH+3wqruonGvchQpR+RgUjJKbPJqgv
|
||||
dbuqaiTUMHnEDzTPWM54IBP78OdGntcDxhUCgZKC9k2IZg0aT/EvwcavZswBrw/3
|
||||
GSJ22pr5VR/zBLoLBK1oQedJY1rMIo3LeqreyRo7gFnvSGX1s2VsmkrLhz687HM+
|
||||
64GII0RtoFj2wZ2ZL5ssT++Nt8mLypdwOHEiIZjtrqK5UtEvUrVvGVN0vICyqB/1
|
||||
mftzo9zjEj3BoBIQieOKLZOraHgsvUwdpYD52ASD3kAS5tiJbvpG9D81E5Zkfk4P
|
||||
xDaKeRF5IFivxbM2MCztcGtJi5hRw9eU0evXrQIBIwKCAQAXHN0122+wd43dIaYf
|
||||
MaHTmSlzE3Iu96wHm/Eskt9x5y2eBJe1rwwpY0tzQR24mFI2CPfJJtr29dwvaQe+
|
||||
3dRmlGa9ECzYdoaqDO+D3DFNk6hrx09wljl4EbYYW2w7DfKhcudX/Sz1aXZqWVkV
|
||||
VVtKLuI6je91/QYjIYjBLR6THOiXZRePbzY2/zMktm35v625b5k3CS1BKbd8jAfY
|
||||
zUf70ceOgFZlLT55ab1tAEQaMFI/UhJTl9oTKnnZF9ULc0HBqHo6/pbaxZ1rrlb7
|
||||
D0H/Wbqf/INtdpMI32OVRSdtyYo9GezBBLc1VkcSmA+o2eOUQe6jldt71welXSFX
|
||||
fsPbAoGBAP2Xql6WyGvKVzksZOHL1Huh0x01UPSIdSIjnA5zQe1euZbCKUZDN939
|
||||
xPM8Xtno4nSMtLF6wbFS8iWJI1Ecp121rzG5dNSIvFYNjaXma44PlU70smrfGPTt
|
||||
v2LKeXKiaZAaPo8b+qwhdfqgGyuCRqSsD6d5dEf3skGf6rRnoyRXAoGBAMwoFFIt
|
||||
rAH3tDTyt9Kse+13N5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n/8ldZiJb8+OKtX0h/P6cuxcs3ZclAeICC5DYZ+zfgb0blIrz3n7x4EC8Ti/wPhIL3OjmoUIl3PqvxE9QmwIMG5TfIIOkvGBZAGB2YiyusohLqqJ26m/SY29yzpf8zqu2aJLV+rYeDPGgkOFVFaTAYxTWDUZAqFEuBZm1Nhs413dOa2oBDT+DY/TnY7D0TDbhai3/nX1v0Mx3F96aGKxPfQsiQs8bniAZa+F5NO5F67avq0YtKF24JmP8zCm1WQ2I/CqjtxbBKJNPKZAE25VnJi7+BRStFAwXIw== tester@sita-wd.atc.tcs.com
|
|
@ -1,11 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
export TESTDIR=$PWD
|
||||
|
||||
cd
|
||||
cd $HOME
|
||||
rm -rf gitolite-admin td
|
||||
tar xf rollback.tar
|
||||
tar xf client-rollback.tar
|
||||
mkdir td
|
||||
|
||||
scp -q $TESTDIR/rollback.server gitolite-test@localhost:rollback || { echo scp failed; exit 1; }
|
||||
ssh gitolite-test@localhost ./rollback $GQT
|
||||
$TESTDIR/rollback.server
|
||||
|
|
|
@ -1,15 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd
|
||||
cd $HOME
|
||||
rm -rf .ssh .gitolite .gitolite.rc repositories gitolite-install /tmp/glrb bin share
|
||||
tar xf rollback.tar
|
||||
( cd /tmp; tar xf ~/rollback2.tar )
|
||||
|
||||
# if arg1 is a directory, we have to overwrite sources from there (see commit
|
||||
# message for details)
|
||||
if [ -d "$1" ]
|
||||
then
|
||||
cd .gitolite
|
||||
/bin/cp -a $1/{src,hooks} .
|
||||
cd
|
||||
fi
|
||||
tar xf server-rollback.tar
|
||||
( cd /tmp; tar xf ~/server-rollback2.tar )
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# are we in the right place
|
||||
cd ${0%/*}
|
||||
git rev-parse --show-toplevel || die should run t/test-driver.sh from a clone of gitolite
|
||||
export TESTDIR=$PWD
|
||||
|
||||
# see some sample tests for how to use these functions; there is no
|
||||
# documentation
|
||||
|
||||
# REPO_BASE has 2 manifestations in the output of various commands
|
||||
export TEST_BASE=$(perl -e 'do "../conf/example.gitolite.rc"; print $REPO_BASE')
|
||||
export TEST_BASE=$(gl-query-rc REPO_BASE)
|
||||
[ -z "$TEST_BASE" ] && { echo TEST_BASE not set >&2; exit 1; }
|
||||
TEST_BASE_FULL=$TEST_BASE
|
||||
[ "$TEST_BASE" = "repositories" ] && TEST_BASE_FULL=/home/gitolite-test/repositories
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
export TESTDIR=$PWD
|
||||
|
||||
rm -rf ~/junk.ga
|
||||
mv ~/gitolite-admin ~/junk.ga
|
||||
|
||||
# install it
|
||||
src/gl-easy-install -q gitolite-test localhost tester
|
||||
|
||||
# make the rollback.tar files on both sides
|
||||
cd
|
||||
tar cf rollback.tar gitolite-admin
|
||||
ssh gitolite-test@localhost tar cf rollback.tar .ssh .gitolite .gitolite.rc repositories gitolite-install
|
||||
ssh gitolite-test@localhost tar -C /tmp -cf \$HOME/rollback2.tar glrb
|
Loading…
Reference in a new issue