~mbruzek/charms/precise/haproxy/trunk

« back to all changes in this revision

Viewing changes to tests/00_setup.sh

  • Committer: matthew.bruzek at canonical
  • Date: 2014-01-23 19:57:25 UTC
  • Revision ID: matthew.bruzek@canonical.com-20140123195725-1502a3o23hbd0px1
Added amulet test for haproxy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# The script installs amulet and other tools needed for the amulet tests.
 
4
 
 
5
set -x 
 
6
 
 
7
# Get the status of the amulet package, this returns 0 of package is installed.
 
8
dpkg -s amulet
 
9
if [ $? -ne 0 ]; then
 
10
  # Install the Amulet testing harness.
 
11
  sudo add-apt-repository -y ppa:juju/stable
 
12
  sudo apt-get update 
 
13
  sudo apt-get install -y amulet
 
14
fi