Commit b9f94768 authored by Russ Cox's avatar Russ Cox

build: run test/ directory first

R=adg, r
CC=golang-dev
https://golang.org/cl/4183047
parent 6b526eb3
...@@ -153,8 +153,7 @@ If all goes well, it will finish by printing output like: ...@@ -153,8 +153,7 @@ If all goes well, it will finish by printing output like:
</p> </p>
<pre> <pre>
--- cd ../test ALL TESTS PASSED
N known bugs; 0 unexpected bugs
--- ---
Installed Go for linux/amd64 in /home/you/go. Installed Go for linux/amd64 in /home/you/go.
......
...@@ -30,26 +30,17 @@ xcd() { ...@@ -30,26 +30,17 @@ xcd() {
builtin cd "$GOROOT"/src/$1 builtin cd "$GOROOT"/src/$1
} }
maketest() { if $rebuild; then
for i (xcd pkg
do
(
xcd $i
if $rebuild; then
gomake clean gomake clean
time gomake time gomake
gomake install gomake install
fi ) || exit $i
gomake test fi
) || exit $?
done
}
maketest \
pkg \
# all of these are subtly different (xcd pkg
# from what maketest does. gomake test
) || exit $?
(xcd pkg/sync; (xcd pkg/sync;
if $rebuild; then if $rebuild; then
...@@ -126,3 +117,5 @@ done ...@@ -126,3 +117,5 @@ done
./run ./run
) || exit $? ) || exit $?
echo
echo ALL TESTS PASSED
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment