mirror of
https://github.com/golang/go
synced 2024-11-20 07:44:41 -07:00
da776791c4
too hard to make it the same everywhere. still checking for non-zero exit status though. disable core files while running tests R=r http://go/go-review/1026037
76 lines
921 B
Bash
Executable File
76 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
# no core files, please
|
|
ulimit -c 0
|
|
|
|
xcd() {
|
|
echo
|
|
echo --- cd $1
|
|
builtin cd $1
|
|
}
|
|
|
|
maketest() {
|
|
for i
|
|
do
|
|
(
|
|
xcd $i
|
|
make clean
|
|
time make
|
|
make install
|
|
make test
|
|
) || exit $?
|
|
done
|
|
}
|
|
|
|
maketest \
|
|
pkg \
|
|
|
|
# all of these are subtly different
|
|
# from what maketest does.
|
|
|
|
(xcd pkg/sync;
|
|
make clean;
|
|
time make
|
|
GOMAXPROCS=10 make test
|
|
) || exit $?
|
|
|
|
(xcd cmd/gofmt
|
|
make clean
|
|
time make
|
|
time make smoketest
|
|
) || exit $?
|
|
|
|
(xcd cmd/ebnflint
|
|
make clean
|
|
time make
|
|
time make test
|
|
) || exit $?
|
|
|
|
(xcd ../misc/cgo/stdio
|
|
make clean
|
|
./test.bash
|
|
) || exit $?
|
|
|
|
(xcd pkg/exp/ogle
|
|
make clean
|
|
time make ogle
|
|
) || exit $?
|
|
|
|
(xcd ../doc/progs
|
|
time ./run
|
|
) || exit $?
|
|
|
|
(xcd ../test/bench
|
|
./timing.sh -test
|
|
) || exit $?
|
|
|
|
(xcd ../test
|
|
./run
|
|
) || exit $?
|
|
|