OLD | NEW |
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 Loading... |
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 |
OLD | NEW |