diff options
author | Russ Cox <rsc@golang.org> | 2011-02-14 09:27:02 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-02-14 09:27:02 -0500 |
commit | b9f94768f90dfc7f5d4bf7cf9ccf64b9190d0e93 (patch) | |
tree | 59df44dc66d2d13ee63cd1643e8b4718f76016a3 | |
parent | 6b526eb300ad607fbe12f2f779d5c1639cefe109 (diff) | |
download | go-b9f94768f90dfc7f5d4bf7cf9ccf64b9190d0e93.tar.gz go-b9f94768f90dfc7f5d4bf7cf9ccf64b9190d0e93.zip |
build: run test/ directory first
R=adg, r
CC=golang-dev
https://golang.org/cl/4183047
-rw-r--r-- | doc/install.html | 3 | ||||
-rwxr-xr-x | src/run.bash | 31 |
2 files changed, 13 insertions, 21 deletions
diff --git a/doc/install.html b/doc/install.html index 8630837b68..d8fa8b468c 100644 --- a/doc/install.html +++ b/doc/install.html @@ -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. diff --git a/src/run.bash b/src/run.bash index f8f662b95f..a3e90cc4f8 100755 --- a/src/run.bash +++ b/src/run.bash @@ -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 |