mirror of
https://github.com/golang/go
synced 2024-11-24 20:50:11 -07:00
build: run test/ directory first
R=adg, r CC=golang-dev https://golang.org/cl/4183047
This commit is contained in:
parent
6b526eb300
commit
b9f94768f9
@ -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.
|
||||||
|
25
src/run.bash
25
src/run.bash
@ -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 \
|
(xcd pkg
|
||||||
pkg \
|
gomake test
|
||||||
|
) || exit $?
|
||||||
# all of these are subtly different
|
|
||||||
# from what maketest does.
|
|
||||||
|
|
||||||
(xcd pkg/sync;
|
(xcd pkg/sync;
|
||||||
if $rebuild; then
|
if $rebuild; then
|
||||||
@ -126,3 +117,5 @@ done
|
|||||||
./run
|
./run
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo ALL TESTS PASSED
|
||||||
|
Loading…
Reference in New Issue
Block a user