]> Cypherpunks repositories - gostls13.git/commitdiff
build: re-enable some broken tests in run.bash
authorShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 22:23:56 +0000 (06:23 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 22:23:56 +0000 (06:23 +0800)
        Updates #2982.

R=rsc, rsc
CC=golang-dev
https://golang.org/cl/5759064

.hgignore
src/run.bash
test/bench/go1/Makefile [deleted file]
test/bench/go1/dummy.go [deleted file]
test/bench/go1/gzip_test.go

index 626e084686ac65bc33a7b7afdaecb0f6c953ce0a..2a84753035a7ff63723f1781d5d0ba31aeb3eeb3 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -24,10 +24,10 @@ _testmain.go
 build.out
 test.out
 doc/tmpltohtml
-doc/codelab/wiki/*.bin
+doc/articles/wiki/*.bin
 misc/cgo/life/run.out
 misc/cgo/stdio/run.out
-misc/dashboard/builder/gobuilder
+misc/dashboard/builder/builder
 misc/goplay/goplay
 misc/osx/*.pkg
 misc/osx/*.dmg
index b5ffaa9974d9b2584cc8702c2e0d4c76688b1309..1c73e131d32f461833212d93eb9bd53ced3a8019 100755 (executable)
@@ -39,8 +39,6 @@ xcd() {
        builtin cd "$GOROOT"/src/$1
 }
 
-BROKEN=true
-
 [ "$CGO_ENABLED" != 1 ] ||
 [ "$GOHOSTOS" == windows ] ||
 (xcd ../misc/cgo/stdio
@@ -70,33 +68,24 @@ $BROKEN ||
 time ./run
 ) || exit $?
 
-$BROKEN ||
 [ "$GOARCH" == arm ] ||  # uses network, fails under QEMU
-(xcd ../doc/codelab/wiki
-"$GOMAKE" clean
-"$GOMAKE"
-"$GOMAKE" test
+(xcd ../doc/articles/wiki
+make clean
+./test.sh
 ) || exit $?
 
-$BROKEN ||
-for i in ../misc/dashboard/builder ../misc/goplay
-do
-       (xcd $i
-       "$GOMAKE" clean
-       "$GOMAKE"
-       ) || exit $?
-done
+echo
+echo '#' ../misc/dashboard/builder ../misc/goplay
+go build ../misc/dashboard/builder ../misc/goplay || exit $?
 
-$BROKEN ||
 [ "$GOARCH" == arm ] ||
 (xcd ../test/bench/shootout
 ./timing.sh -test
 ) || exit $?
 
-$BROKEN ||
-(xcd ../test/bench/go1
-"$GOMAKE" test
-) || exit $?
+echo
+echo '#' ../test/bench/go1
+go test ../test/bench/go1 || exit $?
 
 (xcd ../test
 time go run run.go
diff --git a/test/bench/go1/Makefile b/test/bench/go1/Makefile
deleted file mode 100644 (file)
index 48e0127..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-
-TARG=go1
-
-test:
-       echo go1: tests disabled for now TODO
diff --git a/test/bench/go1/dummy.go b/test/bench/go1/dummy.go
deleted file mode 100644 (file)
index 4956bc7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-package go1
-
-// Nothing to see here: everything is in the _test files.
index c9eeb175f535dd9b885b870ea872c11eb33e8fc3..fe4c480eb8470f9875dc5121dbcc454fdf426d06 100644 (file)
@@ -21,20 +21,14 @@ var (
 
 func init() {
        var buf bytes.Buffer
-       c, err := gz.NewWriter(&buf)
-       if err != nil {
-               panic(err)
-       }
+       c := gz.NewWriter(&buf)
        c.Write(jsongunz)
        c.Close()
        jsongz = buf.Bytes()
 }
 
 func gzip() {
-       c, err := gz.NewWriter(ioutil.Discard)
-       if err != nil {
-               panic(err)
-       }
+       c := gz.NewWriter(ioutil.Discard)
        if _, err := c.Write(jsongunz); err != nil {
                panic(err)
        }