-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathtest
More file actions
executable file
·35 lines (29 loc) · 912 Bytes
/
test
File metadata and controls
executable file
·35 lines (29 loc) · 912 Bytes
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
#!/bin/bash -eu
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
function unset_env_vars() {
echo "Unsetting BBL environment variables"
unset BBL_IAAS
unset BBL_AWS_ACCESS_KEY_ID
unset BBL_AWS_REGION
unset BBL_AWS_SECRET_ACCESS_KEY
unset BBL_AWS_BOSH_AZ
unset BBL_GCP_SERVICE_ACCOUNT_KEY
unset BBL_GCP_REGION
unset BBL_GCP_ZONE
unset BBL_AZURE_CLIENT_ID
unset BBL_AZURE_CLIENT_SECRET
unset BBL_AZURE_REGION
unset BBL_AZURE_SUBSCRIPTION_ID
unset BBL_AZURE_TENANT_ID
unset BBL_DEBUG
}
function main() {
unset_env_vars
pushd "${ROOT_DIR}" > /dev/null
echo "Unit tests"
go run github.com/onsi/ginkgo/v2/ginkgo -p -r --race --randomize-all --randomize-suites --skip-package=acceptance-test ${@}
echo "Test compilation of acceptance-tests"
go run github.com/onsi/ginkgo/v2/ginkgo -r --dry-run acceptance-tests
popd > /dev/null
}
main "${@:-""}"