blob: 63fbb0c5f01a0c4af49233a3d7acc34b25e2c46a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -x
unset http_proxy
export GOROOT=/usr/lib/go-1.8/
export GOPATH=/root/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
mkdir -p /root/go/src/github.com/dmacvicar/
cp -r /code/ /root/go/src/github.com/dmacvicar/terraform-provider-libvirt
cd /root/go/src/github.com/dmacvicar/terraform-provider-libvirt
go build .
export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE=qemu
export LIBVIRT_DEFAULT_URI="qemu:///system"
export TF_ACC=true
go test -v -covermode=count -coverprofile=profile.cov ./libvirt
|