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:
</p>
<pre>
--- cd ../test
N known bugs; 0 unexpected bugs
ALL TESTS PASSED
---
Installed Go for linux/amd64 in /home/you/go.
......
......@@ -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
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