[Fusionforge-commits] r14799 - trunk/tests/scripts

Alain Peyrat aljeux at fusionforge.org
Tue Nov 15 10:31:44 CET 2011


Author: aljeux
Date: 2011-11-15 10:31:43 +0100 (Tue, 15 Nov 2011)
New Revision: 14799

Added:
   trunk/tests/scripts/fusionforge-prepare-vm-centos5.sh
Log:
Initial script to install all required tools on a vm to run the suite

Added: trunk/tests/scripts/fusionforge-prepare-vm-centos5.sh
===================================================================
--- trunk/tests/scripts/fusionforge-prepare-vm-centos5.sh	                        (rev 0)
+++ trunk/tests/scripts/fusionforge-prepare-vm-centos5.sh	2011-11-15 09:31:43 UTC (rev 14799)
@@ -0,0 +1,31 @@
+#!/bin/sh
+. tests/scripts/common-functions
+. tests/scripts/common-vm
+
+get_config $@
+destroy_vm -t centos5 $@
+start_vm_if_not_keeped -t centos5 $@
+
+setup_dag_repo $@
+
+sleep 5
+
+ssh root@$HOST 'yum upgrade -y'
+
+ssh root@$HOST 'yum install -y php php-cli php-pear php-xml java firefox vnc-server'
+
+# Install phpunit inside the vps.
+ssh root@$HOST 'pear config-set auto_discover 1'
+ssh root@$HOST 'pear upgrade pear'
+ssh root@$HOST 'pear install pear.phpunit.de/PHPUnit'
+
+ssh root@$HOST 'pear upgrade --force PEAR'
+ssh root@$HOST 'pear install --alldeps phpunit/PHPUnit-3.4.1'
+
+ssh root@$HOST 'yum clean all'
+
+ssh root@$HOST 'perl -spi -e "s/^X11Forwarding no/X11Forwarding yes/" /etc/ssh/sshd_config'
+
+sudo /root/save_as_template_vz.sh
+
+stop_vm_if_not_keeped -t centos5 $@


Property changes on: trunk/tests/scripts/fusionforge-prepare-vm-centos5.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fusionforge-commits mailing list