mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
build: catch API changes during build
Adds new file api/go1.txt, locking down the current API. Any changes to the API will need to update that file. run.bash (but not make.bash, or Windows) will check for accidental API changes. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5820070
This commit is contained in:
parent
883a96d950
commit
f69132d7ad
3 changed files with 24541 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ make clean
|
|||
|
||||
echo
|
||||
echo '#' ../misc/dashboard/builder ../misc/goplay
|
||||
go build ../misc/dashboard/builder ../misc/goplay || exit $?
|
||||
go build ../misc/dashboard/builder ../misc/goplay
|
||||
|
||||
[ "$GOARCH" == arm ] ||
|
||||
(xcd ../test/bench/shootout
|
||||
|
|
@ -83,11 +83,15 @@ go build ../misc/dashboard/builder ../misc/goplay || exit $?
|
|||
|
||||
echo
|
||||
echo '#' ../test/bench/go1
|
||||
go test ../test/bench/go1 || exit $?
|
||||
go test ../test/bench/go1
|
||||
|
||||
(xcd ../test
|
||||
time go run run.go
|
||||
) || exit $?
|
||||
|
||||
echo
|
||||
echo '# Checking API compatibility.'
|
||||
go tool api -c $GOROOT/api/go1.txt
|
||||
|
||||
echo
|
||||
echo ALL TESTS PASSED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue