~niedbalski/charms/precise/vxlan-gateway/add-tests

« back to all changes in this revision

Viewing changes to tests/00_setup.sh

  • Committer: Jorge Niedbalski R.
  • Date: 2014-05-12 20:14:23 UTC
  • Revision ID: jorge.niedbalski@canonical.com-20140512201423-80bbqf6kaej6hhma
- Added a functional tests skeleton for testing the vxlan-gateway deployment
        - export N1KV_SOURCE="deb https://user:pass@private-ppa.launchpad.net/springfield-team/n1kv-staging/ubuntu precise main|key_id" 
        - make test

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