3 require dirname(__FILE__).'/SeleniumRemoteSuite.php';
5 class TarSeleniumRemoteSuite extends SeleniumRemoteSuite
7 protected function setUp()
11 system("scp -r ../tests root@".HOST.":/opt");
13 if (getenv('BUILDRESULT')) {
14 system("scp ".getenv('BUILDRESULT')."/fusionforge-*.tar.bz2 root@".HOST.":");
16 system("scp ../../build/packages/fusionforge-*.tar.bz2 root@".HOST.":");
18 system("ssh root@centos52 'tar jxf fusionforge-*.tar.bz2'");
20 if (is_file("/tmp/timedhosts.txt")) {
21 system("scp -p /tmp/timedhosts.txt root@".HOST.":/var/cache/yum/timedhosts.txt");
24 system("ssh root@centos52 'cd fusionforge-*; FFORGE_RPM_REPO=http://buildbot.fusionforge.org/job/fusionforge-Branch_5_1-build-and-test-rpm/ws/build/packages/ FFORGE_DB=fforge FFORGE_USER=gforge FFORGE_ADMIN_USER=ffadmin FFORGE_ADMIN_PASSWORD=ffadmin ./install.sh centos52.local'");
26 system("scp -p root@".HOST.":/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt");
27 system("ssh root@".HOST." '(echo [core];echo use_ssl=no) > /etc/gforge/config.ini.d/zzzz-builbot.ini'");
29 // Install a fake sendmail to catch all outgoing emails.
30 system("ssh root@".HOST." 'perl -spi -e s#/usr/sbin/sendmail#/opt/tests/scripts/catch_mail.php# /etc/gforge/local.inc'");
32 system("ssh root@".HOST." 'service crond stop'");