OLD | NEW |
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 goos=$(go env GOOS) | 8 goos=$(go env GOOS) |
9 | 9 |
10 defer_panic_recover=" | 10 defer_panic_recover=" |
(...skipping 27 matching lines...) Expand all Loading... |
38 " | 38 " |
39 # cgo1 and cgo2 don't run on freebsd, srandom has a different signature | 39 # cgo1 and cgo2 don't run on freebsd, srandom has a different signature |
40 if [ "$goos" == "freebsd" ]; then | 40 if [ "$goos" == "freebsd" ]; then |
41 c_go_cgo="cgo3 cgo4" | 41 c_go_cgo="cgo3 cgo4" |
42 fi | 42 fi |
43 # cgo1 and cgo2 don't run on netbsd, srandom has a different signature | 43 # cgo1 and cgo2 don't run on netbsd, srandom has a different signature |
44 # cgo3 and cgo4 don't run on netbsd, since cgo cannot handle stdout correctly | 44 # cgo3 and cgo4 don't run on netbsd, since cgo cannot handle stdout correctly |
45 if [ "$goos" == "netbsd" ]; then | 45 if [ "$goos" == "netbsd" ]; then |
46 c_go_cgo="" | 46 c_go_cgo="" |
47 fi | 47 fi |
| 48 # cgo3 and cgo4 don't run on openbsd, since cgo cannot handle stdout correctly |
| 49 if [ "$goos" == "openbsd" ]; then |
| 50 c_go_cgo="cgo1 cgo2" |
| 51 fi |
48 | 52 |
49 timeout=" | 53 timeout=" |
50 timeout1 | 54 timeout1 |
51 timeout2 | 55 timeout2 |
52 " | 56 " |
53 | 57 |
54 gobs=" | 58 gobs=" |
55 gobs1 | 59 gobs1 |
56 gobs2 | 60 gobs2 |
57 " | 61 " |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 testit json4 "^$" | 112 testit json4 "^$" |
109 | 113 |
110 testit image_package1 "^X is 2 Y is 1$" | 114 testit image_package1 "^X is 2 Y is 1$" |
111 testit image_package2 "^3 4 false$" | 115 testit image_package2 "^3 4 false$" |
112 testit image_package3 "^3 4 true$" | 116 testit image_package3 "^3 4 true$" |
113 testit image_package4 "^image.Point{X:2, Y:1}$" | 117 testit image_package4 "^image.Point{X:2, Y:1}$" |
114 testit image_package5 "^{255 0 0 255}$" | 118 testit image_package5 "^{255 0 0 255}$" |
115 testit image_package6 "^8 4 true$" | 119 testit image_package6 "^8 4 true$" |
116 | 120 |
117 rm -f $all "$TMPFILE" | 121 rm -f $all "$TMPFILE" |
OLD | NEW |