#!/bin/bash sudo apt-get update sudo apt-get install -y git make mercurial GOPKG=go1.5.2.linux-amd64.tar.gz wget https://storage.googleapis.com/golang/$GOPKG sudo tar -xvf $GOPKG -C /usr/local/ mkdir ~/go echo 'export GOPATH=$HOME/go' >> .bashrc echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> .bashrc source .bashrc export GOPATH=$HOME/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin go get github.com/hashicorp/terraform cd $GOPATH/src/github.com/hashicorp/terraform make updatedeps cd git clone https://git.openstack.org/openstack-dev/devstack -b stable/liberty cd devstack cat >local.conf <> openrc echo export OS_IMAGE_ID="$_IMAGE_ID" >> openrc echo export OS_NETWORK_ID=$_NETWORK_ID >> openrc echo export OS_POOL_NAME="public" >> openrc echo export OS_FLAVOR_ID=99 >> openrc source openrc demo cd $GOPATH/src/github.com/hashicorp/terraform make updatedeps # Replace the below lines with the repo/branch you want to test #git remote add jtopjian https://github.com/jtopjian/terraform #git fetch jtopjian #git checkout --track jtopjian/openstack-acctest-fixes #make testacc TEST=./builtin/providers/openstack TESTARGS='-run=AccBlockStorageV1' #make testacc TEST=./builtin/providers/openstack TESTARGS='-run=AccCompute' #make testacc TEST=./builtin/providers/openstack