1
0
mirror of https://github.com/golang/go synced 2024-11-24 18:10:02 -07:00

build: run test/ directory first

R=adg, r
CC=golang-dev
https://golang.org/cl/4183047
This commit is contained in:
Russ Cox 2011-02-14 09:27:02 -05:00
parent 6b526eb300
commit b9f94768f9
2 changed files with 13 additions and 21 deletions

View 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.

View File

@ -30,26 +30,17 @@ xcd() {
builtin cd "$GOROOT"/src/$1
}
maketest() {
for i
do
(
xcd $i
if $rebuild; then
if $rebuild; then
(xcd pkg
gomake clean
time gomake
gomake install
fi
gomake test
) || exit $?
done
}
) || exit $i
fi
maketest \
pkg \
# 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