~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern

« back to all changes in this revision

Viewing changes to tests/functional/00_setup.sh

  • Committer: Jorge Niedbalski
  • Date: 2014-05-02 19:55:18 UTC
  • Revision ID: jorge.niedbalski@canonical.com-20140502195518-4274miknnbx2lw8h
Initial import of the charm.
        - make test ( runs functional + unit )
        - make lint ( lints the code )
        - make unit ( unit tests )
        - make functional ( unit tests )

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