Also enabled it for darwin.
R=rsc
CC=golang-dev
https://golang.org/cl/
5754063
+++ /dev/null
-# Copyright 2011 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-include ../../../src/Make.inc
-
-TARG=cgosotest
-
-CGO_DEPS+=libcgoso.so
-CGO_LDFLAGS+=-lcgoso -L.
-CLEANFILES+=out libcgoso.so
-CGOFILES=\
- cgoso.go\
-
-include ../../../src/Make.pkg
-
-libcgoso.so: cgoso_c.c
- gcc cgoso_c.c -fPIC -o $@ $(_CGO_CFLAGS_$(GOARCH)) $(_CGO_LDFLAGS_$(GOOS))
-
-out: install main.go
- $(GC) $(GCFLAGS) $(GCIMPORTS) main.go
- $(LD) -o $@ main.$O
--- /dev/null
+package cgosotest
+
+import (
+ "testing"
+)
+
+func TestCgoSo(t *testing.T) { Test() }
+++ /dev/null
-// Copyright 2011 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package main
-
-import "cgosotest"
-
-func main() {
- cgosotest.Test()
-}
+++ /dev/null
-#!/bin/sh
-# Copyright 2011 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-set -e
-gomake out
-LD_LIBRARY_PATH=. ./out
-gomake clean
go test
) || exit $?
-$BROKEN ||
[ "$CGO_ENABLED" != 1 ] ||
[ "$GOHOSTOS" == windows ] ||
-[ "$GOHOSTOS" == darwin ] ||
(xcd ../misc/cgo/testso
-"$GOMAKE" clean
-./test.bash
+go test
) || exit $?
(xcd ../doc/progs