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

Side by Side Diff: doc/progs/run

Issue 6853059: code review 6853059: cgo: enable cgo on openbsd (Closed)
Patch Set: diff -r e08535d6901d https://go.googlecode.com/hg/ Created 11 years, 3 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 | « no previous file | misc/cgo/test/basic.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 #!/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
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
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"
OLDNEW
« no previous file with comments | « no previous file | misc/cgo/test/basic.go » ('j') | no next file with comments »

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