blob: ea06e8c5b51dea57704e87244f6a99a1e09057b6 [file] [log] [blame]
Russ Coxbbb00c62008-10-08 09:46:54 -07001#!/bin/bash
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6set -e
7
8xcd() {
Ken Thompsonb379d542008-10-24 20:14:28 -07009 echo
Russ Coxbbb00c62008-10-08 09:46:54 -070010 echo --- cd $1
Ken Thompsonb379d542008-10-24 20:14:28 -070011 builtin cd $1
Russ Coxbbb00c62008-10-08 09:46:54 -070012}
13
Russ Cox5014da72008-11-20 10:54:11 -080014maketest() {
15 for i
16 do
17 (
18 xcd $i
19 make clean
20 time make
21 make test
22 ) || exit $?
23 done
24}
Russ Cox079c00a2008-11-17 12:34:03 -080025
Russ Cox5014da72008-11-20 10:54:11 -080026maketest \
27 lib/math\
28 lib/reflect\
29 lib/regexp\
30 lib/strconv\
Rob Pike536b1f22008-10-23 17:13:34 -070031
Russ Cox5014da72008-11-20 10:54:11 -080032# all of these are subtly different
33# from what maketest does.
34
35(xcd ../usr/gri/pretty
Rob Pike84523402008-10-14 22:16:45 -070036make clean
37time make
Russ Cox5014da72008-11-20 10:54:11 -080038make smoketest
Russ Cox527669e2008-10-29 15:23:29 -070039) || exit $?
Rob Pike84523402008-10-14 22:16:45 -070040
Russ Coxbbb00c62008-10-08 09:46:54 -070041(xcd ../usr/gri/gosrc
42make clean
43time make
Russ Cox46d34972008-10-20 15:08:53 -070044# make test
Russ Cox527669e2008-10-29 15:23:29 -070045) || exit $?
Russ Coxbbb00c62008-10-08 09:46:54 -070046
Russ Coxbbb00c62008-10-08 09:46:54 -070047(xcd ../test
48./run
Russ Cox527669e2008-10-29 15:23:29 -070049) || exit $?
Russ Coxbbb00c62008-10-08 09:46:54 -070050