1
0
mirror of https://github.com/golang/go synced 2024-10-01 20:18:33 -06:00
go/src/run.bash
Devon H. O'Dell 553be8427e Build changes to support work on the BSDs.
This does still contain some FreeBSD-specific bits, but
it's a pain to do partial diffs.

R=rsc
https://golang.org/cl/152138
2009-11-14 15:29:09 -08:00

76 lines
961 B
Bash
Executable File

#!/usr/bin/env 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
gomake clean
time gomake
gomake install
gomake test
) || exit $?
done
}
maketest \
pkg \
# all of these are subtly different
# from what maketest does.
(xcd pkg/sync;
gomake clean;
time gomake
GOMAXPROCS=10 gomake test
) || exit $?
(xcd cmd/gofmt
gomake clean
time gomake
time gomake smoketest
) || exit $?
(xcd cmd/ebnflint
gomake clean
time gomake
time gomake test
) || exit $?
(xcd ../misc/cgo/stdio
gomake clean
./test.bash
) || exit $?
(xcd pkg/exp/ogle
gomake clean
time gomake ogle
) || exit $?
(xcd ../doc/progs
time ./run
) || exit $?
(xcd ../test/bench
./timing.sh -test
) || exit $?
(xcd ../test
./run
) || exit $?