Run tests with race flag and CGO_ENABLED=1
- CGO_ENABLED is required by the race detection. Even though CGO_ENABLED seems to hang around after ginkgo is run, the resultant binary still seems to run fine. [#101623472] Signed-off-by: Evan Short <eshort@pivotal.io>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# vim: set ft=sh
|
# vim: set ft=sh
|
||||||
|
|
||||||
set -e
|
set -eu
|
||||||
|
|
||||||
export GOPATH=$PWD/gopath
|
export GOPATH=$PWD/gopath
|
||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
@@ -13,6 +13,6 @@ export PATH=${PWD}/Godeps/_workspace/bin:$PATH
|
|||||||
|
|
||||||
go install github.com/onsi/ginkgo/ginkgo
|
go install github.com/onsi/ginkgo/ginkgo
|
||||||
|
|
||||||
ginkgo -r -p "$@"
|
CGO_ENABLED=1 ginkgo -race -r -p "$@"
|
||||||
|
|
||||||
./scripts/build
|
./scripts/build
|
||||||
|
Reference in New Issue
Block a user