Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 1 | #!/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 | |
| 6 | set -e |
| 7 | |
| 8 | xcd() { |
Ken Thompson | b379d54 | 2008-10-24 20:14:28 -0700 | [diff] [blame] | 9 | echo |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 10 | echo --- cd $1 |
Ken Thompson | b379d54 | 2008-10-24 20:14:28 -0700 | [diff] [blame] | 11 | builtin cd $1 |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 12 | } |
| 13 | |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame^] | 14 | maketest() { |
| 15 | for i |
| 16 | do |
| 17 | ( |
| 18 | xcd $i |
| 19 | make clean |
| 20 | time make |
| 21 | make test |
| 22 | ) || exit $? |
| 23 | done |
| 24 | } |
Russ Cox | 079c00a | 2008-11-17 12:34:03 -0800 | [diff] [blame] | 25 | |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame^] | 26 | maketest \ |
| 27 | lib/math\ |
| 28 | lib/reflect\ |
| 29 | lib/regexp\ |
| 30 | lib/strconv\ |
Rob Pike | 536b1f2 | 2008-10-23 17:13:34 -0700 | [diff] [blame] | 31 | |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame^] | 32 | # all of these are subtly different |
| 33 | # from what maketest does. |
| 34 | |
| 35 | (xcd ../usr/gri/pretty |
Rob Pike | 8452340 | 2008-10-14 22:16:45 -0700 | [diff] [blame] | 36 | make clean |
| 37 | time make |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame^] | 38 | make smoketest |
Russ Cox | 527669e | 2008-10-29 15:23:29 -0700 | [diff] [blame] | 39 | ) || exit $? |
Rob Pike | 8452340 | 2008-10-14 22:16:45 -0700 | [diff] [blame] | 40 | |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 41 | (xcd ../usr/gri/gosrc |
| 42 | make clean |
| 43 | time make |
Russ Cox | 46d3497 | 2008-10-20 15:08:53 -0700 | [diff] [blame] | 44 | # make test |
Russ Cox | 527669e | 2008-10-29 15:23:29 -0700 | [diff] [blame] | 45 | ) || exit $? |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 46 | |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 47 | (xcd ../test |
| 48 | ./run |
Russ Cox | 527669e | 2008-10-29 15:23:29 -0700 | [diff] [blame] | 49 | ) || exit $? |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 50 | |