~dpb/charms/trusty/haproxy/merge-services-fix

« back to all changes in this revision

Viewing changes to tests/00_setup.sh

  • Committer: Marco Ceppi
  • Author(s): Matt Bruzek
  • Date: 2014-02-07 12:33:44 UTC
  • mfrom: (74.2.2 haproxy)
  • Revision ID: marco@ceppi.net-20140207123344-cs1rh9d5r02twdqz
Added amulet tests for haproxy charm.

R=
CC=
https://codereview.appspot.com/56140043

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