mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -07:00
src/run.bash: get rid of long windows expression
R=rsc CC=golang-dev https://golang.org/cl/4138041
This commit is contained in:
parent
1c31589375
commit
642c774081
@ -38,7 +38,7 @@ fi
|
|||||||
|
|
||||||
# Tried to use . <($MAKE ...) here, but it cannot set environment
|
# Tried to use . <($MAKE ...) here, but it cannot set environment
|
||||||
# variables in the version of bash that ships with OS X. Amazing.
|
# variables in the version of bash that ships with OS X. Amazing.
|
||||||
eval $($MAKE --no-print-directory -f Make.inc go-env | egrep 'GOARCH|GOOS|GO_ENV')
|
eval $($MAKE --no-print-directory -f Make.inc go-env | egrep 'GOARCH|GOOS|GOHOSTARCH|GOHOSTOS|GO_ENV')
|
||||||
|
|
||||||
# Shell doesn't tell us whether make succeeded,
|
# Shell doesn't tell us whether make succeeded,
|
||||||
# so Make.inc generates a fake variable name.
|
# so Make.inc generates a fake variable name.
|
||||||
|
34
src/run.bash
34
src/run.bash
@ -77,19 +77,17 @@ time gomake test
|
|||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
[ "$GOARCH" == arm ] ||
|
[ "$GOARCH" == arm ] ||
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../misc/cgo/stdio
|
(xcd ../misc/cgo/stdio
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
gomake clean
|
||||||
gomake clean
|
./test.bash
|
||||||
./test.bash
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
[ "$GOARCH" == arm ] ||
|
[ "$GOARCH" == arm ] ||
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../misc/cgo/life
|
(xcd ../misc/cgo/life
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
gomake clean
|
||||||
gomake clean
|
./test.bash
|
||||||
./test.bash
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
(xcd pkg/exp/ogle
|
(xcd pkg/exp/ogle
|
||||||
@ -97,16 +95,14 @@ gomake clean
|
|||||||
time gomake ogle
|
time gomake ogle
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../doc/progs
|
(xcd ../doc/progs
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
time ./run
|
||||||
time ./run
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../doc/codelab/wiki
|
(xcd ../doc/codelab/wiki
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
gomake test
|
||||||
gomake test
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
for i in ../misc/dashboard/builder ../misc/goplay
|
for i in ../misc/dashboard/builder ../misc/goplay
|
||||||
@ -118,15 +114,13 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
[ "$GOARCH" == arm ] ||
|
[ "$GOARCH" == arm ] ||
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../test/bench
|
(xcd ../test/bench
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
./timing.sh -test
|
||||||
./timing.sh -test
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
|
[ "$GOHOSTOS" == windows ] ||
|
||||||
(xcd ../test
|
(xcd ../test
|
||||||
if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
|
./run
|
||||||
./run
|
|
||||||
fi
|
|
||||||
) || exit $?
|
) || exit $?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user