]> Cypherpunks repositories - gostls13.git/commitdiff
run.bash: add sanity test for race detector
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 1 Nov 2012 18:02:52 +0000 (22:02 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 1 Nov 2012 18:02:52 +0000 (22:02 +0400)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6612064

src/run.bash

index 1859555fb17219a008e2b3eff68340b0c552b848..7fdd637d9942ef1760712864b51e6835cf477f57 100755 (executable)
@@ -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