2008-10-08 09:46:54 -07:00
|
|
|
#!/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() {
|
2008-10-24 20:14:28 -07:00
|
|
|
echo
|
2008-10-08 09:46:54 -07:00
|
|
|
echo --- cd $1
|
2008-10-24 20:14:28 -07:00
|
|
|
builtin cd $1
|
2008-10-08 09:46:54 -07:00
|
|
|
}
|
|
|
|
|
|
2008-11-20 10:54:11 -08:00
|
|
|
maketest() {
|
|
|
|
|
for i
|
|
|
|
|
do
|
|
|
|
|
(
|
|
|
|
|
xcd $i
|
2009-08-05 00:42:44 -07:00
|
|
|
# make clean
|
|
|
|
|
# time make
|
|
|
|
|
make install
|
2008-11-20 10:54:11 -08:00
|
|
|
make test
|
|
|
|
|
) || exit $?
|
|
|
|
|
done
|
|
|
|
|
}
|
2008-11-17 12:34:03 -08:00
|
|
|
|
2008-11-20 10:54:11 -08:00
|
|
|
maketest \
|
2009-06-09 09:53:44 -07:00
|
|
|
pkg \
|
2008-11-20 10:54:11 -08:00
|
|
|
|
|
|
|
|
# all of these are subtly different
|
|
|
|
|
# from what maketest does.
|
2008-10-23 17:13:34 -07:00
|
|
|
|
2008-11-21 16:13:31 -08:00
|
|
|
|
2009-06-09 09:53:44 -07:00
|
|
|
(xcd pkg/sync;
|
2008-12-04 12:51:36 -08:00
|
|
|
make clean;
|
|
|
|
|
time make
|
|
|
|
|
GOMAXPROCS=10 make test
|
|
|
|
|
) || exit $?
|
|
|
|
|
|
2009-06-16 12:03:32 -07:00
|
|
|
(xcd cmd/gofmt
|
2009-03-03 16:09:40 -08:00
|
|
|
make clean
|
|
|
|
|
time make
|
2009-06-16 12:03:32 -07:00
|
|
|
time make smoketest
|
2009-03-03 16:09:40 -08:00
|
|
|
) || exit $?
|
2008-10-14 22:16:45 -07:00
|
|
|
|
2009-07-13 10:26:58 -07:00
|
|
|
(xcd cmd/ebnflint
|
|
|
|
|
make clean
|
|
|
|
|
time make
|
|
|
|
|
time make test
|
|
|
|
|
) || exit $?
|
|
|
|
|
|
2009-01-06 15:49:27 -08:00
|
|
|
(xcd ../doc/progs
|
2009-01-06 17:31:24 -08:00
|
|
|
time ./run
|
2009-01-06 15:49:27 -08:00
|
|
|
) || exit $?
|
|
|
|
|
|
2008-10-08 09:46:54 -07:00
|
|
|
(xcd ../test
|
|
|
|
|
./run
|
2008-10-29 15:23:29 -07:00
|
|
|
) || exit $?
|
2008-10-08 09:46:54 -07:00
|
|
|
|