summaryrefslogtreecommitdiffstats
path: root/docker/scripts/runtests.sh
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-11-18 01:37:30 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-11-18 01:41:18 +0100
commit8f11979d6dce78de1ed53488d4ddeec32dd3bda3 (patch)
tree77f7fd80ac835f0f571d284cd86964bbc83b4fd3 /docker/scripts/runtests.sh
parentbd1cd98f4bb655e4fa8c83aa7126d0c0f84bf53b (diff)
downloadbugzilla-8f11979d6dce78de1ed53488d4ddeec32dd3bda3.tar.gz
bugzilla-8f11979d6dce78de1ed53488d4ddeec32dd3bda3.tar.xz
Revert "Bug 1222497 - Refactor the BMO docker image with new file and script structure while minimizing final image size"
Diffstat (limited to 'docker/scripts/runtests.sh')
-rwxr-xr-xdocker/scripts/runtests.sh96
1 files changed, 0 insertions, 96 deletions
diff --git a/docker/scripts/runtests.sh b/docker/scripts/runtests.sh
deleted file mode 100755
index a2b5773b8..000000000
--- a/docker/scripts/runtests.sh
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/bash
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-BUILDBOT=$BUGZILLA_ROOT/docker/scripts/buildbot_step
-
-if [ -z "$TEST_SUITE" ]; then
- TEST_SUITE=sanity
-fi
-
-set -e
-
-# Output to log file as well as STDOUT/STDERR
-exec > >(tee /runtests.log) 2>&1
-
-echo "== Retrieving Bugzilla code"
-echo "Checking out $GITHUB_BASE_GIT $GITHUB_BASE_BRANCH ..."
-mv $BUGZILLA_ROOT "${BUGZILLA_ROOT}.back"
-git clone $GITHUB_BASE_GIT --branch $GITHUB_BASE_BRANCH $BUGZILLA_ROOT
-cd $BUGZILLA_ROOT
-if [ "$GITHUB_BASE_REV" != "" ]; then
- echo "Switching to revision $GITHUB_BASE_REV ..."
- git checkout -q $GITHUB_BASE_REV
-fi
-
-echo -e "\n== Checking dependencies for changes"
-$BUGZILLA_ROOT/docker/scripts/install_deps.sh
-
-if [ "$TEST_SUITE" = "sanity" ]; then
- $BUILDBOT "Sanity" prove -f -v t/*.t
- exit $?
-fi
-
-if [ "$TEST_SUITE" = "docs" ]; then
- export JADE_PUB=/usr/share/sgml
- export LDP_HOME=/usr/share/sgml/docbook/dsssl-stylesheets-1.79/dtds/decls
- cd $BUGZILLA_ROOT/docs
- $BUILDBOT "Documentation" perl makedocs.pl --with-pdf
- exit $?
-fi
-
-echo -e "\n== Starting database"
-/usr/bin/mysqld_safe &
-sleep 3
-mysql -u root mysql -e "CREATE DATABASE bugs_test CHARACTER SET = 'utf8';"
-
-echo -e "\n== Starting memcached"
-/usr/bin/memcached -u memcached -d
-sleep 3
-
-echo -e "\n== Running checksetup"
-perl checksetup.pl $BUGZILLA_ROOT/qa/config/checksetup_answers.txt
-perl checksetup.pl $BUGZILLA_ROOT/qa/config/checksetup_answers.txt
-
-echo -e "\n== Generating bmo data"
-perl $BUGZILLA_ROOT/docker/scripts/generate_bmo_data.pl
-
-echo -e "\n== Generating test data"
-cd $BUGZILLA_ROOT/qa/config
-perl generate_test_data.pl
-
-echo -e "\n== Starting web server"
-sed -e "s?^#Perl?Perl?" --in-place /etc/httpd/conf.d/bugzilla.conf
-/usr/sbin/httpd &
-sleep 3
-
-if [ "$TEST_SUITE" = "selenium" ]; then
- export DISPLAY=:0
-
- # Setup dbus for Firefox
- dbus-uuidgen > /var/lib/dbus/machine-id
-
- echo -e "\n== Starting virtual frame buffer and vnc server"
- Xvnc $DISPLAY -screen 0 1280x1024x16 -ac -SecurityTypes=None \
- -extension RANDR 2>&1 | tee /xvnc.log &
- sleep 5
-
- echo -e "\n== Starting Selenium server"
- java -jar /selenium-server.jar -log /selenium.log > /dev/null 2>&1 &
- sleep 5
-
- # Set NO_TESTS=1 if just want selenium services
- # but no tests actually executed.
- [ $NO_TESTS ] && exit 0
-
- cd $BUGZILLA_ROOT/qa/t
- $BUILDBOT "Selenium" prove -f -v -I$BUGZILLA_ROOT/lib test_*.t
- exit $?
-fi
-
-if [ "$TEST_SUITE" = "webservices" ]; then
- cd $BUGZILLA_ROOT/qa/t
- $BUILDBOT "Webservices" prove -f -v -I$BUGZILLA_ROOT/lib webservice_*.t
- exit $?
-fi