terraform-provider-libvirt/travis/run-tests-acceptance

24 lines
559 B
Bash
Executable File

#!/bin/bash
#
# Run acceptance tests.
#
# Usage:
#
# * List all the acceptance tests: run-tests-acceptance -list 'TestAccLibvirt*'
# * Run some particular test: run-tests-acceptance -run TestAccLibvirtDomain_Cpu
#
TEST_ARGS=$@
TEST_ARGS_DEF="-covermode=count -coverprofile=profile.cov -timeout=1200s"
unset http_proxy
export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE=qemu
if test -z "${LIBVIRT_DEFAULT_URI}"; then
LIBVIRT_DEFAULT_URI="qemu:///system"
fi
export LIBVIRT_DEFAULT_URI
export TF_ACC=true
set -x
go test -v $TEST_ARGS_DEF $TEST_ARGS ./libvirt