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
11 . tests/config/default
12 if [ -f tests/config/`hostname` ] ; then . tests/config/`hostname`; fi
16 export LXCTEMPLATE=$LXCCOSTEMPLATE
18 export IPBASE=$IPCOSBASE
19 export IPDNS=$IPCOSDNS
20 export IPMASK=$IPCOSMASK
23 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
24 export VZTEMPLATE=centos-$COSVERS-$ARCH-minimal
26 export HOST=centos5.local
34 if [ "x${HUDSON_URL}" = "x" ]
36 export BASEDIR=${BASEDIR:-/~`id -un`/ws}
38 export SELENIUM_RC_HOST=localhost
39 export SELENIUM_RC_URL=http://`hostname -f`$BASEDIR/reports
40 export FFORGE_RPM_REPO=http://`hostname -f`$BASEDIR/build/packages
42 export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
43 export FFORGE_RPM_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/packages
44 export VZTEMPLATE=centos-5-x86
47 export CONFIGURED=true
49 [ ! -d $WORKSPACE/build ] || rm -fr $WORKSPACE/build
50 [ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
51 mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage
53 make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all
55 cp src/rpm-specific/fusionforge.repo $WORKSPACE/build/packages/fusionforge.repo
56 sed -i "s#http://fusionforge.org/#${HUDSON_URL}#" $WORKSPACE/build/packages/fusionforge.repo
57 sed -i "s#baseurl = .*#baseurl = $FFORGE_RPM_REPO/#" $WORKSPACE/build/packages/fusionforge.repo
59 (cd tests/scripts ; ./start_vm.sh $HOST)
61 phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml RPMCentos52Tests.php
64 cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
65 xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml