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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Jul 13 21:42:16 CEST 2010


Author: aljeux
Date: 2010-07-13 21:42:16 +0200 (Tue, 13 Jul 2010)
New Revision: 10230

Added:
   trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh
Log:
Add experimental hudson script for test suite

Added: trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh
===================================================================
--- trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh	                        (rev 0)
+++ trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh	2010-07-13 19:42:16 UTC (rev 10230)
@@ -0,0 +1,25 @@
+#!/bin/sh -x
+
+export CONFIG_PHP=func/config.php.buildbot
+export SELENIUM_RC_HOST=192.168.0.204
+export SELENIUM_RC_DIR=$WORKSPACE/reports
+export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
+export FFORGE_RPM_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/packages
+export HOST=centos52.local
+export CONFIGURED=true
+
+rm -fr build/ reports/
+mkdir -p build/packages reports/coverage
+
+make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all
+
+cp gforge/rpm-specific/fusionforge.repo build/packages/fusionforge.repo
+sed -i "s#http://fusionforge.org/#${HUDSON_URL}#" build/packages/fusionforge.repo
+sed -i "s#baseurl = .*#baseurl = $FFORGE_RPM_REPO/#" build/packages/fusionforge.repo
+
+cd tests
+phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml RPMCentos52Tests.php
+
+cd ..
+cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
+xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml


Property changes on: trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fusionforge-commits mailing list