-#! /bin/sh
+#!/bin/bash
+
+# Selenium dependencies
+aptitude -y install default-jre iceweasel
+
+# Build selenium
+aptitude -y install cowbuilder
+mkdir -p ~/builder/cow/
+DISTROLIST=wheezy /root/fusionforge/tests/scripts/manage-cowbuilder.sh
+
+mkdir -p ~/build/
+aptitude -y install reprepro
+echo -e "Codename: wheezy\nArchitectures: amd64 source\nComponents: main" > ~/build/debian/conf/distributions
+cd /root/fusionforge/3rd-party/selenium
+make
+
# Test dependencies
aptitude -y install php5-cli phpunit phpunit-selenium
-# If available, install the JUnit OSLC provider test suite
-if [ -d src/plugins/oslc/tests ]; then
- cd /root/fusionforge/src/plugins/oslc/tests
- ./setup-provider-test.sh
-fi
-
-export CONFIG_PHP=/root/fusionforge/tests/func/config.php.ffsandbox
+## If available, install the JUnit OSLC provider test suite
+#if [ -d src/plugins/oslc/tests ]; then
+# cd /root/fusionforge/src/plugins/oslc/tests
+# ./setup-provider-test.sh
+#fi
-# Run the phpunit + Selenium functional tests
-cd /root/fusionforge/tests
-if [ "$*" = "" ] ; then
- phpunit --verbose SeleniumTests.php
-else
- for i in $* ; do
- phpunit --verbose $i
- done
-fi
+/root/fusionforge/tests/scripts/phpunit.sh DEBDebian70Tests.php
+++ /dev/null
-#! /bin/sh
-
-# Authors :
-# Roland Mas
-# Olivier BERGER <olivier.berger@it-sudparis.eu>
-
-# This script will start the Selenium server which will execute the tests on the installed forge
-
-# Prerequisite : having run 'install.sh' and its prerequisites
-
-# Note that there may be problems with the firefox profile and SSL
-# certificate. Refer to
-# https://fusionforge.org/plugins/mediawiki/wiki/fusionforge/index.php/Virtual_machine_development_environment
-# to find instructions to workaround these.
-
-echo
-echo "You may wish to install a graphical environment (gnome, kde, lxde, ...) to run the selenium server inside the VM's display."
-echo
-
-# Test dependencies
-aptitude -y install default-jre iceweasel
-
-cd /root/fusionforge/3rd-party/selenium
-make