author | Paul Crowley <paul@lshift.net> |
Fri, 17 Dec 2010 23:24:01 +0000 | |
branch | debian |
changeset 281 | 7d59a0f92c78 |
parent 272 | f7c64f03cd60 |
child 282 | 1239880543cf |
permissions | -rwxr-xr-x |
264
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
1 |
#!/bin/sh |
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
2 |
|
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
3 |
set -e |
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
4 |
|
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
5 |
cd action |
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
6 |
|
265
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
7 |
ls -l |
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
8 |
|
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
9 |
. ./testing_system |
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
10 |
|
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
11 |
#exec > results 2>&1 |
264
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
12 |
|
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
13 |
#aptitude --allow-untrusted --quiet --without-recommends --assume-yes install mercurial |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
14 |
#hg --version |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
15 |
|
269
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
16 |
aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
17 |
make mercurial xsltproc docbook-xsl openssh-server \ |
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
18 |
python python-support adduser |
267
4f24892b33fe
Evil hack: make it so it instead uses the Debian package.
Paul Crowley <paul@lshift.net>
parents:
266
diff
changeset
|
19 |
|
269
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
20 |
#aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
21 |
# debconf python python-support adduser mercurial openssh-server |
267
4f24892b33fe
Evil hack: make it so it instead uses the Debian package.
Paul Crowley <paul@lshift.net>
parents:
266
diff
changeset
|
22 |
|
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
23 |
|
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
24 |
perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
25 |
/etc/init.d/ssh start |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
26 |
ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
27 |
|
269
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
28 |
#dpkg -i mercurial-server_1.0-1_all.deb |
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
29 |
cd mercurial-server |
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
30 |
make setup-adduser |
264
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
31 |
|
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
32 |
for user in test1 test2 ; do |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
33 |
adduser --gecos $user --disabled-password $user |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
34 |
su -l -c 'mkdir .ssh' $user |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
35 |
su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
36 |
done |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
37 |
cp /home/test1/.ssh/id_rsa.pub /etc/mercurial-server/keys/root/test1 |
269
a09f1bc9a6cf
Change back to non-Debian testing, fix test to work around NULL problem
Paul Crowley <paul@lshift.net>
parents:
267
diff
changeset
|
38 |
su -l -c /usr/local/share/mercurial-server/refresh-auth hg |
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
39 |
su -l -c /action/test1 test1 |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
40 |
su -l -c /action/test2 test2 |
264
cd7f901d3902
Do something with unionfs - it works
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
41 |
|
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
42 |
/etc/init.d/ssh stop |
265
6629144cf111
More complete test - inhibit daemons, mount proc, add safety guard
Paul Crowley <paul@lshift.net>
parents:
264
diff
changeset
|
43 |
|
266
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
44 |
#touch results |
7cc208cbf2be
Runs a real live test of mercurial-server from beginning to end
Paul Crowley <paul@lshift.net>
parents:
265
diff
changeset
|
45 |