LEFT | RIGHT |
(no file at all) | |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 # Copyright 2009 The Go Authors. All rights reserved. | 2 # Copyright 2009 The Go Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style | 3 # Use of this source code is governed by a BSD-style |
4 # license that can be found in the LICENSE file. | 4 # license that can be found in the LICENSE file. |
5 | 5 |
6 set -e | 6 set -e |
7 | 7 |
8 eval $(go tool dist env) | 8 eval $(go tool dist env) |
9 | 9 |
10 unset CDPATH # in case user has it set | 10 unset CDPATH # in case user has it set |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' | 29 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' |
30 GOMAXPROCS=2 go test runtime -short -timeout=120s -cpu=1,2,4 | 30 GOMAXPROCS=2 go test runtime -short -timeout=120s -cpu=1,2,4 |
31 echo | 31 echo |
32 | 32 |
33 echo '# sync -cpu=10' | 33 echo '# sync -cpu=10' |
34 go test sync -short -timeout=120s -cpu=10 | 34 go test sync -short -timeout=120s -cpu=10 |
35 | 35 |
36 xcd() { | 36 xcd() { |
37 echo | 37 echo |
38 » echo --- cd $1 | 38 » echo '#' $1 |
39 builtin cd "$GOROOT"/src/$1 | 39 builtin cd "$GOROOT"/src/$1 |
40 } | 40 } |
41 | 41 |
42 BROKEN=true | 42 BROKEN=true |
43 | 43 |
44 $BROKEN || | |
45 [ "$CGO_ENABLED" != 1 ] || | 44 [ "$CGO_ENABLED" != 1 ] || |
46 [ "$GOHOSTOS" == windows ] || | 45 [ "$GOHOSTOS" == windows ] || |
47 (xcd ../misc/cgo/stdio | 46 (xcd ../misc/cgo/stdio |
48 "$GOMAKE" clean | |
49 ./test.bash | 47 ./test.bash |
50 ) || exit $? | 48 ) || exit $? |
51 | 49 |
52 $BROKEN || | |
53 [ "$CGO_ENABLED" != 1 ] || | 50 [ "$CGO_ENABLED" != 1 ] || |
54 (xcd ../misc/cgo/life | 51 (xcd ../misc/cgo/life |
55 "$GOMAKE" clean | |
56 ./test.bash | 52 ./test.bash |
57 ) || exit $? | 53 ) || exit $? |
58 | 54 |
59 $BROKEN || | |
60 [ "$CGO_ENABLED" != 1 ] || | 55 [ "$CGO_ENABLED" != 1 ] || |
61 (xcd ../misc/cgo/test | 56 (xcd ../misc/cgo/test |
62 "$GOMAKE" clean | 57 go test |
63 gotest | |
64 ) || exit $? | 58 ) || exit $? |
65 | 59 |
66 $BROKEN || | 60 $BROKEN || |
67 [ "$CGO_ENABLED" != 1 ] || | 61 [ "$CGO_ENABLED" != 1 ] || |
68 [ "$GOHOSTOS" == windows ] || | 62 [ "$GOHOSTOS" == windows ] || |
69 [ "$GOHOSTOS" == darwin ] || | 63 [ "$GOHOSTOS" == darwin ] || |
70 (xcd ../misc/cgo/testso | 64 (xcd ../misc/cgo/testso |
71 "$GOMAKE" clean | 65 "$GOMAKE" clean |
72 ./test.bash | 66 ./test.bash |
73 ) || exit $? | 67 ) || exit $? |
(...skipping 29 matching lines...) Expand all Loading... |
103 (xcd ../test/bench/go1 | 97 (xcd ../test/bench/go1 |
104 "$GOMAKE" test | 98 "$GOMAKE" test |
105 ) || exit $? | 99 ) || exit $? |
106 | 100 |
107 (xcd ../test | 101 (xcd ../test |
108 time go run run.go | 102 time go run run.go |
109 ) || exit $? | 103 ) || exit $? |
110 | 104 |
111 echo | 105 echo |
112 echo ALL TESTS PASSED | 106 echo ALL TESTS PASSED |
LEFT | RIGHT |