From: Russ Cox
---- 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