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

Christian Bayle cbayle at fusionforge.org
Sun Oct 2 23:42:26 CEST 2011


Author: cbayle
Date: 2011-10-02 23:42:26 +0200 (Sun, 02 Oct 2011)
New Revision: 14534

Modified:
   trunk/tests/scripts/fusionforge-build-and-test-deb.sh
Log:
Add comments and verbosity


Modified: trunk/tests/scripts/fusionforge-build-and-test-deb.sh
===================================================================
--- trunk/tests/scripts/fusionforge-build-and-test-deb.sh	2011-10-02 20:49:19 UTC (rev 14533)
+++ trunk/tests/scripts/fusionforge-build-and-test-deb.sh	2011-10-02 21:42:26 UTC (rev 14534)
@@ -23,15 +23,23 @@
 gpg --export --armor | ssh root@$HOST "apt-key add -"
 sleep 5
 ssh root@$HOST "apt-get update"
+
+# Install fusionforge
 ssh root@$HOST "UCF_FORCE_CONFFNEW=yes DEBIAN_FRONTEND=noninteractive LANG=C apt-get -y --force-yes install rsync postgresql-contrib fusionforge-full"
 echo "Set forge admin password"
 ssh root@$HOST "/usr/share/gforge/bin/forge_set_password $FORGE_ADMIN_USERNAME $FORGE_ADMIN_PASSWORD"
 ssh root@$HOST "LANG=C a2dissite default ; LANG=C invoke-rc.d apache2 reload"
 ssh root@$HOST "(echo [core];echo use_ssl=no) > /etc/gforge/config.ini.d/zzz-builbot.ini"
-#ssh root@$HOST "su - postgres -c \"pg_dump -Fc $DB_NAME\" > /root/dump"
+
+# Dump database
+echo "Dump freshly installed database"
 ssh root@$HOST "su - postgres -c \"pg_dumpall\" > /root/dump"
+
+# Stop cron
+echo "Stop cron daemon"
 ssh root@$HOST "invoke-rc.d cron stop" || true
 
+# Install selenium tests
 ssh root@$HOST mkdir $FORGE_HOME/tests
 cp 3rd-party/selenium/selenium-server.jar tests/
 rsync -a --delete tests/ root@$HOST:$FORGE_HOME/tests/
@@ -41,6 +49,7 @@
 JOB_NAME=$JOB_NAME
 EOF
 
+# Run tests
 retcode=0
 echo "Run phpunit test on $HOST in $FORGE_HOME"
 if xterm -e "sh -c exit" 2>/dev/null




More information about the Fusionforge-commits mailing list