]> Cypherpunks repositories - gostls13.git/commitdiff
build: run test/ directory first
authorRuss Cox <rsc@golang.org>
Mon, 14 Feb 2011 14:27:02 +0000 (09:27 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 14 Feb 2011 14:27:02 +0000 (09:27 -0500)
R=adg, r
CC=golang-dev
https://golang.org/cl/4183047

doc/install.html
src/run.bash

index 8630837b680bc7ec75617129038e21eb6076c3ae..d8fa8b468ce230cac8278fa6d7074586fa28bde3 100644 (file)
@@ -153,8 +153,7 @@ If all goes well, it will finish by printing output like:
 </p>
 
 <pre>
---- cd ../test
-N known bugs; 0 unexpected bugs
+ALL TESTS PASSED
 
 ---
 Installed Go for linux/amd64 in /home/you/go.
index f8f662b95f710ff8d53bb0940ebf0fa316597bf7..a3e90cc4f830e6fa79ee13bcea1f5091bf26fbc9 100755 (executable)
@@ -30,26 +30,17 @@ xcd() {
        builtin cd "$GOROOT"/src/$1
 }
 
-maketest() {
-       for i
-       do
-               (
-                       xcd $i
-                       if $rebuild; then
-                               gomake clean
-                               time gomake
-                               gomake install
-                       fi
-                       gomake test
-               ) || exit $?
-       done
-}
-
-maketest \
-       pkg \
+if $rebuild; then
+       (xcd pkg
+               gomake clean
+               time gomake
+               gomake install
+       ) || exit $i
+fi
 
-# all of these are subtly different
-# from what maketest does.
+(xcd pkg
+gomake test
+) || exit $?
 
 (xcd pkg/sync;
 if $rebuild; then
@@ -126,3 +117,5 @@ done
 ./run
 ) || exit $?
 
+echo
+echo ALL TESTS PASSED