1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/bash
- set -x
- export DEBIAN_FRONTEND=noninteractive
- # One -q produces output suitable for logging (mostly hides
- # progress indicators)
- sudo apt-get -yq update
- # WARNING: DONT PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
- sudo apt-get -qqy install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
- cmake build-essential automake `# Needed for building code` \
- curl wget unzip `# Common tools` \
- software-properties-common `# Needed for add-apt-repository` \
- git-core mercurial `# Version control systems` \
- libpcre3 libpcre3-dev libpcrecpp0 `# Regular expression support` \
- libssl-dev libcurl4-openssl-dev `# SSL libraries` \
- libmysqlclient-dev \
- zlib1g-dev python-software-properties \
- libreadline6-dev \
- libbz2-dev \
- libyaml-dev libxml2-dev \
- libxslt-dev libgdbm-dev ncurses-dev \
- libffi-dev htop libtool bison libevent-dev \
- libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 \
- liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0 libgnutls-dev \
- libjson0-dev libmcrypt-dev libicu-dev gettext \
- libpq-dev mlton \
- cloc dstat `# Collect resource usage statistics` \
- python-pip
- sudo pip install colorama==0.3.1
- # Version 2.3 has a nice Counter() and other features
- # but it requires —-allow-external and -—allow-unverified
- sudo pip install progressbar==2.2
- sudo pip install requests
- sudo sh -c "echo '* - nofile 65535' >> /etc/security/limits.conf"
- sudo sh -c "echo '* hard rtprio 99' >> /etc/security/limits.conf"
- sudo sh -c "echo '* soft rtprio 99' >> /etc/security/limits.conf"
- # Create a tfb command alias for running the toolset
- # For now, this still ensures you have to be in the framework root to run it
- sudo tee /etc/profile.d/tfb.sh <<EOF
- #!/bin/bash
- tfb() {
- $(pwd)/toolset/run-tests.py "\$@"
- }
- EOF
- source /etc/profile.d/tfb.sh
|