1
0
mirror of https://github.com/golang/go synced 2024-11-26 12:58:06 -07:00

Bail out of gotest immediately if compiling fails.

R=rsc
APPROVED=rsc
DELTA=4  (2 added, 2 deleted, 0 changed)
OCL=26978
CL=26978
This commit is contained in:
David Symonds 2009-03-31 22:35:55 -07:00
parent 78f7063d9d
commit c025cf64dc

View File

@ -50,13 +50,13 @@ files=$(echo $gofiles | sed 's/\.go//g')
# to build any test-only dependencies. # to build any test-only dependencies.
sed -n 's/^\/\/ gotest: //p' $gofiles | sh sed -n 's/^\/\/ gotest: //p' $gofiles | sh
set -e
for i in $gofiles for i in $gofiles
do do
$GC $i $GC $i
done done
set -e
# They all compile; now generate the code to call them. # They all compile; now generate the code to call them.
trap "rm -f _testmain.go _testmain.6" 0 1 2 3 14 15 trap "rm -f _testmain.go _testmain.6" 0 1 2 3 14 15
{ {