summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2012-03-17 11:20:46 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2012-03-17 11:20:46 -0700
commitfda3866beb8f3dfb5cae23d1b1c7343fa6b735c1 (patch)
tree78d433ac89b765ae8cf831c8291a6ca5564bc31f /src/run.bash
parent39bcd0fd61d975b2b80ae8a615baa059b7ebdac8 (diff)
downloadgo-fda3866beb8f3dfb5cae23d1b1c7343fa6b735c1.tar.gz
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 http://codereview.appspot.com/5820070
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/run.bash b/src/run.bash
index 430ee76db..748f6e93f 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -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