github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/acceptancetests/repository/trusty/haproxy/tests/00_setup.sh (about)

     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