summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-11-01 22:02:52 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-11-01 22:02:52 +0400
commit1db7caf1a0f18d789eca8973f9f0a10fb9668581 (patch)
tree4b2707ba44c025f19cf6ff9c73c46781a8ed613e /src/run.bash
parent791679500484ce5a867480418d37b1a20a529f14 (diff)
downloadgo-1db7caf1a0f18d789eca8973f9f0a10fb9668581.tar.gz
run.bash: add sanity test for race detector
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6612064
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/run.bash b/src/run.bash
index 1859555fb..7fdd637d9 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -46,6 +46,14 @@ echo
echo '# sync -cpu=10'
go test sync -short -timeout=120s -cpu=10
+case "$GOHOSTOS-$GOOS-$GOARCH" in
+linux-linux-amd64 | darwin-darwin-amd64)
+ echo
+ echo '# Testing race detector.'
+ go test -race -i flag
+ go test -race -short flag
+esac
+
xcd() {
echo
echo '#' $1