GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 1b1122ea authored by boklm's avatar boklm

Add a install-deps script

A script to install dependencies needed to run the test suite.
parent c0599f9c
......@@ -4,42 +4,26 @@ Tor Browser Bundle test suite
Installation
------------
To run the test suite, you need perl and the following perl modules:
Cwd
Data::Dump
Digest::SHA
File::Copy
File::Path
File::Slurp
File::Spec
File::Temp
FindBin
Getopt::Long
IO::CaptureOutput
IO::Socket::INET
Image::Magick
JSON
LWP::UserAgent
LWP::Protocol::https
Template
YAML
DateTime
If you are using Fedora or other yum based distribution, you can install
each module with 'yum install perl(ModuleName)'.
The test suite also requires mozmill and python selenium, which we install
using a virtualenv. You can use the 'setup' script to install them into
a virtualenv:
This git repository is using git submodules. So before running the test
suite, you will need to run 'git submodule init' and 'git submodule update'.
$ ./setup
To run the test suite, you need perl and a few perl modules, python
virtualenv, and xvfb.
Those dependencies can be installed by running the 'install-deps' script
as root, which will install the needed packages. This script has been
tested on Ubuntu, Debian, Fedora, Centos.
If you want to reinstall the virtualenv used, remove the 'virtualenv'
directory and run 'setup' again.
After installing the required dependencies, a python virtualenv needs
to be created with mozmill and selenium. This can be with the 'setup'
script.
Unless you are using the '--no-xvfb' option, all tests will be run in
a virtual framebuffer with xvfb, so you need to have xvfb installed.
Summary of installation instructions:
$ git submodule init
$ git submodule update
$ sudo ./install-deps
$ ./setup
Usage
......
#!/bin/sh
set -e
if [ -f /etc/debian_version ]
then
apt-get install -y xvfb python-virtualenv
apt-get install -y libdata-dump-perl libdigest-sha-perl libfile-slurp-perl \
libfile-spec-perl libio-captureoutput-perl perlmagick libjson-perl \
libwww-perl libtemplate-perl libyaml-perl libdatetime-perl
apt-get install -y libgtk2.0-0
fi
if [ -f /etc/redhat-release ] && which yum > /dev/null 2>&1
then
yum install -y redhat-lsb-core xorg-x11-server-Xvfb python-virtualenv
for perlmodule in Cwd Data::Dump Digest::SHA File::Path File::Slurp \
File::Spec File::Temp FindBin Getopt::Long IO::CaptureOutput \
IO::Socket::INET Image::Magick JSON LWP::UserAgent LWP::Protocol::https \
Template YAML DateTime
do
yum install -y "perl($perlmodule)"
done
if [ "$(uname -m)" == "x86_64" ]
then
yum install -y 'libgtk-x11-2.0.so.0()(64bit)'
else
yum install -y libgtk-x11-2.0.so.0
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment