2008-10-08 10:46:54 -06: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 21:14:28 -06:00
|
|
|
echo
|
2008-10-08 10:46:54 -06:00
|
|
|
echo --- cd $1
|
2008-10-24 21:14:28 -06:00
|
|
|
builtin cd $1
|
2008-10-08 10:46:54 -06:00
|
|
|
}
|
|
|
|
|
2008-11-20 11:54:11 -07:00
|
|
|
maketest() {
|
|
|
|
for i
|
|
|
|
do
|
|
|
|
(
|
|
|
|
xcd $i
|
|
|
|
make clean
|
|
|
|
time make
|
|
|
|
make test
|
|
|
|
) || exit $?
|
|
|
|
done
|
|
|
|
}
|
2008-11-17 13:34:03 -07:00
|
|
|
|
2008-11-20 11:54:11 -07:00
|
|
|
maketest \
|
2008-12-04 14:14:09 -07:00
|
|
|
lib/fmt\
|
|
|
|
lib/hash\
|
2008-12-19 04:05:37 -07:00
|
|
|
lib/json\
|
2008-11-20 11:54:11 -07:00
|
|
|
lib/math\
|
2008-12-19 04:05:37 -07:00
|
|
|
lib/net\
|
2008-11-20 11:54:11 -07:00
|
|
|
lib/reflect\
|
|
|
|
lib/regexp\
|
|
|
|
lib/strconv\
|
2008-12-04 14:14:09 -07:00
|
|
|
lib/tabwriter\
|
|
|
|
lib/time\
|
2008-11-20 11:54:11 -07:00
|
|
|
|
|
|
|
# all of these are subtly different
|
|
|
|
# from what maketest does.
|
2008-10-23 18:13:34 -06:00
|
|
|
|
2008-11-21 17:13:31 -07:00
|
|
|
(xcd lib; make test) || exit $?
|
|
|
|
|
2008-12-04 13:51:36 -07:00
|
|
|
(xcd lib/sync;
|
|
|
|
make clean;
|
|
|
|
time make
|
|
|
|
GOMAXPROCS=10 make test
|
|
|
|
) || exit $?
|
|
|
|
|
2008-11-20 11:54:11 -07:00
|
|
|
(xcd ../usr/gri/pretty
|
2008-10-14 23:16:45 -06:00
|
|
|
make clean
|
|
|
|
time make
|
2008-11-20 11:54:11 -07:00
|
|
|
make smoketest
|
2008-10-29 16:23:29 -06:00
|
|
|
) || exit $?
|
2008-10-14 23:16:45 -06:00
|
|
|
|
2008-10-08 10:46:54 -06:00
|
|
|
(xcd ../usr/gri/gosrc
|
|
|
|
make clean
|
|
|
|
time make
|
2008-10-20 16:08:53 -06:00
|
|
|
# make test
|
2008-10-29 16:23:29 -06:00
|
|
|
) || exit $?
|
2008-10-08 10:46:54 -06:00
|
|
|
|
|
|
|
(xcd ../test
|
|
|
|
./run
|
2008-10-29 16:23:29 -06:00
|
|
|
) || exit $?
|
2008-10-08 10:46:54 -06:00
|
|
|
|