4 export WORKSPACE=${WORKSPACE:-$CURDIR}
6 export CONFIG_PHP=func/config.php.buildbot
7 export SELENIUM_RC_HOST=${SELENIUM_RC_HOST:-`hostname -i`}
8 export SELENIUM_RC_DIR=$WORKSPACE/reports
9 if [ "x${HUDSON_URL}" = "x" ]
11 . tests/openvz/config.default
12 if [ -f tests/openvz/config.`hostname` ] ; then . tests/openvz/config.`hostname`; fi
14 export IPBASE=$IPCENTOSBASE
15 export IPDNS=$IPCENTOSDNS
16 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
17 export VZTEMPLATE=centos-$CENTVERS-$ARCH-minimal
20 export BASEDIR=${BASEDIR:-/~`id -un`/ws}
21 export SELENIUM_RC_URL=http://`hostname -f`$BASEDIR/reports
22 export FFORGE_RPM_REPO=http://`hostname -f`$BASEDIR/build/packages
23 export HOST=centos5.local
24 export SELENIUM_RC_HOST=localhost
27 export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
28 export FFORGE_RPM_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/packages
29 export HOST=centos52.local
30 export VZTEMPLATE=centos-5-x86
33 export CONFIGURED=true
35 [ ! -d $WORKSPACE/build ] || rm -fr $WORKSPACE/build
36 [ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
37 mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage
39 make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all
41 cp gforge/rpm-specific/fusionforge.repo $WORKSPACE/build/packages/fusionforge.repo
42 sed -i "s#http://fusionforge.org/#${HUDSON_URL}#" $WORKSPACE/build/packages/fusionforge.repo
43 sed -i "s#baseurl = .*#baseurl = $FFORGE_RPM_REPO/#" $WORKSPACE/build/packages/fusionforge.repo
46 phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml RPMCentos52Tests.php
49 cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
50 xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml