Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(503)

Side by Side Diff: src/run.bash

Issue 5601057: code review 5601057: build: remove Make.pkg, Make.tool (Closed)
Patch Set: diff -r b479bc080ad9 https://code.google.com/p/go/ Created 13 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/unicode/utf8/Makefile ('k') | test/run » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if [ "$1" = "--no-env" ]; then 7 if [ "$1" = "--no-env" ]; then
8 # caller has already run env.bash 8 # caller has already run env.bash
9 shift 9 shift
10 else 10 else
(...skipping 13 matching lines...) Expand all
24 shift 24 shift
25 fi 25 fi
26 ················ 26 ················
27 xcd() { 27 xcd() {
28 echo 28 echo
29 echo --- cd $1 29 echo --- cd $1
30 builtin cd "$GOROOT"/src/$1 30 builtin cd "$GOROOT"/src/$1
31 } 31 }
32 32
33 if $rebuild; then 33 if $rebuild; then
34 » if $USE_GO_TOOL; then 34 » echo
35 » » echo 35 » echo '# Package builds'
36 » » echo '# Package builds' 36 » time go install -a -v std
37 » » time go install -a -v std
38 » else
39 » » (xcd pkg
40 » » » gomake clean
41 » » » time gomake install
42 » » ) || exit $?
43 » fi
44 fi 37 fi
45 38
46 if $USE_GO_TOOL; then 39 echo
47 » echo 40 echo '# Package tests'
48 » echo '# Package tests' 41 time go test std -short
49 » time go test std -short
50 else
51 » (xcd pkg
52 » gomake testshort
53 » ) || exit $?
54 fi
55 42
56 if $USE_GO_TOOL; then 43 echo
57 » echo 44 echo '# runtime -cpu=1,2,4'
58 » echo '# runtime -cpu=1,2,4' 45 go test runtime -short -cpu=1,2,4
59 » go test runtime -short -cpu=1,2,4
60 else
61 » (xcd pkg/runtime;
62 » go test -short -cpu=1,2,4
63 » ) || exit $?
64 fi
65 46
66 if $USE_GO_TOOL; then 47 echo
67 » echo 48 echo '# sync -cpu=10'
68 » echo '# sync -cpu=10' 49 go test sync -short -cpu=10
69 » go test sync -short -cpu=10
70 else
71 » (xcd pkg/sync;
72 » GOMAXPROCS=10 gomake testshort
73 » ) || exit $?
74 fi
75 50
76 if $USE_GO_TOOL; then 51 echo
77 » echo 52 echo '# Build bootstrap scripts'
78 » echo '# Build bootstrap scripts' 53 ./buildscript.sh
79 » ./buildscript.sh
80 fi
81 54
82 (xcd pkg/exp/ebnflint 55 BROKEN=true
83 time gomake test
84 ) || exit $?
85 56
57 $BROKEN ||
86 [ "$CGO_ENABLED" != 1 ] || 58 [ "$CGO_ENABLED" != 1 ] ||
87 [ "$GOHOSTOS" == windows ] || 59 [ "$GOHOSTOS" == windows ] ||
88 (xcd ../misc/cgo/stdio 60 (xcd ../misc/cgo/stdio
89 gomake clean 61 "$GOMAKE" clean
90 ./test.bash 62 ./test.bash
91 ) || exit $? 63 ) || exit $?
92 64
65 $BROKEN ||
93 [ "$CGO_ENABLED" != 1 ] || 66 [ "$CGO_ENABLED" != 1 ] ||
94 (xcd ../misc/cgo/life 67 (xcd ../misc/cgo/life
95 gomake clean 68 "$GOMAKE" clean
96 ./test.bash 69 ./test.bash
97 ) || exit $? 70 ) || exit $?
98 71
72 $BROKEN ||
99 [ "$CGO_ENABLED" != 1 ] || 73 [ "$CGO_ENABLED" != 1 ] ||
100 (xcd ../misc/cgo/test 74 (xcd ../misc/cgo/test
101 gomake clean 75 "$GOMAKE" clean
102 gomake test 76 gotest
103 ) || exit $? 77 ) || exit $?
104 78
79 $BROKEN ||
105 [ "$CGO_ENABLED" != 1 ] || 80 [ "$CGO_ENABLED" != 1 ] ||
106 [ "$GOHOSTOS" == windows ] || 81 [ "$GOHOSTOS" == windows ] ||
107 [ "$GOHOSTOS" == darwin ] || 82 [ "$GOHOSTOS" == darwin ] ||
108 (xcd ../misc/cgo/testso 83 (xcd ../misc/cgo/testso
109 gomake clean 84 "$GOMAKE" clean
110 ./test.bash 85 ./test.bash
111 ) || exit $? 86 ) || exit $?
112 87
88 $BROKEN ||
113 (xcd ../doc/progs 89 (xcd ../doc/progs
114 time ./run 90 time ./run
115 ) || exit $? 91 ) || exit $?
116 92
93 $BROKEN ||
117 [ "$GOARCH" == arm ] || # uses network, fails under QEMU 94 [ "$GOARCH" == arm ] || # uses network, fails under QEMU
118 (xcd ../doc/codelab/wiki 95 (xcd ../doc/codelab/wiki
119 gomake clean 96 "$GOMAKE" clean
120 gomake 97 "$GOMAKE"
121 gomake test 98 "$GOMAKE" test
122 ) || exit $? 99 ) || exit $?
123 100
101 $BROKEN ||
124 for i in ../misc/dashboard/builder ../misc/goplay 102 for i in ../misc/dashboard/builder ../misc/goplay
125 do 103 do
126 (xcd $i 104 (xcd $i
127 » gomake clean 105 » "$GOMAKE" clean
128 » gomake 106 » "$GOMAKE"
129 ) || exit $? 107 ) || exit $?
130 done 108 done
131 109
110 $BROKEN ||
132 [ "$GOARCH" == arm ] || 111 [ "$GOARCH" == arm ] ||
133 (xcd ../test/bench/shootout 112 (xcd ../test/bench/shootout
134 ./timing.sh -test 113 ./timing.sh -test
135 ) || exit $? 114 ) || exit $?
136 115
116 $BROKEN ||
137 (xcd ../test/bench/go1 117 (xcd ../test/bench/go1
138 gomake test 118 "$GOMAKE" test
139 ) || exit $? 119 ) || exit $?
140 120
141 (xcd ../test 121 (xcd ../test
142 ./run 122 ./run
143 ) || exit $? 123 ) || exit $?
144 124
145 echo 125 echo
146 echo ALL TESTS PASSED 126 echo ALL TESTS PASSED
OLDNEW
« no previous file with comments | « src/pkg/unicode/utf8/Makefile ('k') | test/run » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b