1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:44:45 -07:00
go/src/run.bash
Robert Griesemer d8e4446d12 - install gofmt in src/cmd/gofmt
- remove some left-over files

R=rsc
DELTA=1465  (281 added, 1181 deleted, 3 changed)
OCL=30350
CL=30353
2009-06-16 12:03:32 -07:00

53 lines
632 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
xcd() {
echo
echo --- cd $1
builtin cd $1
}
maketest() {
for i
do
(
xcd $i
make clean
time make
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 ../doc/progs
time ./run
) || exit $?
(xcd ../test
./run
) || exit $?