1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/bin/bash
#
set -x
source `dirname $0`/stackenv
timeout="60m"
failed=
# Run the acceptance tests.
# Check the error code after each suite, but do not exit early if a suite failed.
# Identity v3
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/identity/v3/
if [[ $? != 0 ]]; then
failed=1
fi
# Networking v2
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/networking/v2/
if [[ $? != 0 ]]; then
failed=1
fi
# Block Storage v2
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/blockstorage/v2/
if [[ $? != 0 ]]; then
failed=1
fi
# Block Storage v3
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/blockstorage/v3/
if [[ $? != 0 ]]; then
failed=1
fi
# Compute v2
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/compute/v2/
if [[ $? != 0 ]]; then
failed=1
fi
# Container v1
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/container/v1/
if [[ $? != 0 ]]; then
failed=1
fi
# Image Service v2
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/imageservice/v2/
if [[ $? != 0 ]]; then
failed=1
fi
# Orchestration v1
go test -v -timeout $timeout -tags "fixtures acceptance" ./acceptance/openstack/orchestration/v1/
if [[ $? != 0 ]]; then
failed=1
fi
# If any of the test suites failed, exit 1
if [[ -n $failed ]]; then
exit 1
fi
exit 0
|