projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
443df43
)
Backport from master: setup SSH key and host checking for testing
author
Roland Mas
<lolando@debian.org>
Thu, 29 Nov 2012 15:16:16 +0000
(16:16 +0100)
committer
Roland Mas
<lolando@debian.org>
Thu, 29 Nov 2012 15:16:16 +0000
(16:16 +0100)
tests/scripts/fusionforge-build-and-test-deb.sh
patch
|
blob
|
history
diff --git
a/tests/scripts/fusionforge-build-and-test-deb.sh
b/tests/scripts/fusionforge-build-and-test-deb.sh
index cbe36c2222d010bcec09d4611947de73ccb8c97c..35e423de8d36fffb77248f50a88bd6ec6f31ef34 100755
(executable)
--- a/
tests/scripts/fusionforge-build-and-test-deb.sh
+++ b/
tests/scripts/fusionforge-build-and-test-deb.sh
@@
-126,6
+126,17
@@
echo "Run phpunit test on $HOST in $FORGE_HOME"
ssh root@$HOST "apt-get -y install xfonts-base vnc4server ; mkdir -p /root/.vnc"
ssh root@$HOST "cat > /root/.vnc/xstartup ; chmod +x /root/.vnc/xstartup" <<EOF
#! /bin/bash
ssh root@$HOST "apt-get -y install xfonts-base vnc4server ; mkdir -p /root/.vnc"
ssh root@$HOST "cat > /root/.vnc/xstartup ; chmod +x /root/.vnc/xstartup" <<EOF
#! /bin/bash
+# Setup ssh key and parameters
+cd
+mkdir -p .ssh
+if ! [ -e .ssh/id_rsa.pub ] ; then
+ ssh-keygen -f .ssh/id_rsa -N ''
+ cat .ssh/id_rsa.pub >> .ssh/authorized_keys
+fi
+if ! grep -q StrictHostKeyChecking .ssh/config ; then
+ echo StrictHostKeyChecking no >> .ssh/config
+fi
+
: > /root/phpunit.exitcode
$FORGE_HOME/tests/scripts/phpunit.sh DEBDebian70Tests.php &> /var/log/phpunit.log &
echo \$! > /root/phpunit.pid
: > /root/phpunit.exitcode
$FORGE_HOME/tests/scripts/phpunit.sh DEBDebian70Tests.php &> /var/log/phpunit.log &
echo \$! > /root/phpunit.pid
@@
-136,6
+147,7
@@
ssh root@$HOST vncpasswd <<EOF
password
password
EOF
password
password
EOF
+
ssh root@$HOST "vncserver :1"
sleep 5
pid=$(ssh root@$HOST cat /root/phpunit.pid)
ssh root@$HOST "vncserver :1"
sleep 5
pid=$(ssh root@$HOST cat /root/phpunit.pid)