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

Side by Side Diff: src/cmd/go/test.bash

Issue 7229071: code review 7229071: cmd/go: run examples in source order, not name order (Closed)
Patch Set: diff -r 8faf9010cd77 https://code.google.com/p/go/ Created 11 years, 1 month 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 | « no previous file | src/cmd/go/test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2012 The Go Authors. All rights reserved. 2 # Copyright 2012 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 go build -o testgo 7 go build -o testgo
8 8
9 ok=true 9 ok=true
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 fi 272 fi
273 rm -f $d/bin/*go 273 rm -f $d/bin/*go
274 export GOPATH=$d 274 export GOPATH=$d
275 if [ "$(./testgo list -tags mytag example/b...)" != "example/b" ]; then 275 if [ "$(./testgo list -tags mytag example/b...)" != "example/b" ]; then
276 echo go list example/b did not find example/b 276 echo go list example/b did not find example/b
277 ok=false 277 ok=false
278 fi 278 fi
279 unset GOPATH 279 unset GOPATH
280 rm -rf $d 280 rm -rf $d
281 281
282 # Only succeeds if source order is preserved.
283 ./testgo test testdata/example[12]_test.go
284
282 # clean up 285 # clean up
283 rm -rf testdata/bin testdata/bin1 286 rm -rf testdata/bin testdata/bin1
284 rm -f testgo 287 rm -f testgo
285 288
286 if $ok; then 289 if $ok; then
287 echo PASS 290 echo PASS
288 else 291 else
289 echo FAIL 292 echo FAIL
290 exit 1 293 exit 1
291 fi 294 fi
OLDNEW
« no previous file with comments | « no previous file | src/cmd/go/test.go » ('j') | no next file with comments »

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