1
0
mirror of https://github.com/golang/go synced 2024-11-24 11:50:15 -07:00

fix arm test to actual return success/fail and expose runcgo

build breakage.

R=rsc
APPROVED=rsc
DELTA=10  (4 added, 2 deleted, 4 changed)
OCL=35362
CL=35365
This commit is contained in:
Kai Backman 2009-10-05 21:51:34 -07:00
parent e6bc5bf5af
commit b691447207

View File

@ -24,13 +24,12 @@ export G=${A}g
export L=${A}l export L=${A}l
export GOTRACEBACK=0 export GOTRACEBACK=0
failed=0
PATH=/bin:/usr/bin:/usr/local/bin:${GOBIN:-$HOME/bin}:`pwd` PATH=/bin:/usr/bin:/usr/local/bin:${GOBIN:-$HOME/bin}:`pwd`
RUNFILE=/tmp/gorun-$$-$USER RUNFILE=/tmp/gorun-$$-$USER
TMP1FILE=/tmp/gotest1-$$-$USER TMP1FILE=/tmp/gotest1-$$-$USER
TMP2FILE=/tmp/gotest2-$$-$USER TMP2FILE=/tmp/gotest2-$$-$USER
FAILEDFILE=/tmp/gotest3-$$-$USER
# don't run the machine out of memory: limit individual processes to 4GB. # don't run the machine out of memory: limit individual processes to 4GB.
# on thresher, 3GB suffices to run the tests; with 2GB, peano fails. # on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
@ -50,6 +49,7 @@ do
cat $TMP1FILE cat $TMP1FILE
cat $TMP2FILE cat $TMP2FILE
echo >&2 fail: $i echo >&2 fail: $i
touch $FAILEDFILE
elif test -s $TMP1FILE || test -s $TMP2FILE elif test -s $TMP1FILE || test -s $TMP2FILE
then then
echo echo
@ -72,10 +72,12 @@ done | # clean up some stack noise
/^\$RUNFILE: line 1: PID Trace\/breakpoint trap/d /^\$RUNFILE: line 1: PID Trace\/breakpoint trap/d
/^qemu: uncaught target signal 11 (Segmentation fault) - exiting/d' > run.out /^qemu: uncaught target signal 11 (Segmentation fault) - exiting/d' > run.out
case $failed in failed=0
1) if test -f $FAILEDFILE; then
echo FAIL failed=1
esac rm -f $FAILEDFILE
fi
rm -f $RUNFILE $TMP1FILE $TMP2FILE *.$A $A.out rm -f $RUNFILE $TMP1FILE $TMP2FILE *.$A $A.out
exit $failed exit $failed