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 \ |
Ian Lance Taylor | 1a19cb8 | 2008-12-04 13:14:09 -0800 | [diff] [blame] | 27 | lib/fmt\ |
| 28 | lib/hash\ |
Russ Cox | 08ca30b | 2008-12-19 03:05:37 -0800 | [diff] [blame] | 29 | lib/json\ |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame] | 30 | lib/math\ |
Russ Cox | 08ca30b | 2008-12-19 03:05:37 -0800 | [diff] [blame] | 31 | lib/net\ |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame] | 32 | lib/reflect\ |
| 33 | lib/regexp\ |
| 34 | lib/strconv\ |
Ian Lance Taylor | 1a19cb8 | 2008-12-04 13:14:09 -0800 | [diff] [blame] | 35 | lib/tabwriter\ |
| 36 | lib/time\ |
Rob Pike | 536b1f2 | 2008-10-23 17:13:34 -0700 | [diff] [blame] | 37 | |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame] | 38 | # all of these are subtly different |
| 39 | # from what maketest does. |
| 40 | |
Russ Cox | 5169bb4 | 2008-11-21 16:13:31 -0800 | [diff] [blame] | 41 | (xcd lib; make test) || exit $? |
| 42 | |
Russ Cox | bf3dd3f | 2008-12-04 12:51:36 -0800 | [diff] [blame] | 43 | (xcd lib/sync; |
| 44 | make clean; |
| 45 | time make |
| 46 | GOMAXPROCS=10 make test |
| 47 | ) || exit $? |
| 48 | |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame] | 49 | (xcd ../usr/gri/pretty |
Rob Pike | 8452340 | 2008-10-14 22:16:45 -0700 | [diff] [blame] | 50 | make clean |
| 51 | time make |
Russ Cox | 5014da7 | 2008-11-20 10:54:11 -0800 | [diff] [blame] | 52 | make smoketest |
Russ Cox | 527669e | 2008-10-29 15:23:29 -0700 | [diff] [blame] | 53 | ) || exit $? |
Rob Pike | 8452340 | 2008-10-14 22:16:45 -0700 | [diff] [blame] | 54 | |
Robert Griesemer | af065a0 | 2009-01-06 16:26:45 -0800 | [diff] [blame] | 55 | (xcd ../usr/gri/gosrc |
| 56 | make clean |
| 57 | time make |
| 58 | # make test |
| 59 | ) || exit $? |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 60 | |
Rob Pike | 8d21004 | 2009-01-06 15:49:27 -0800 | [diff] [blame] | 61 | (xcd ../doc/progs |
Ken Thompson | b0f627a | 2009-01-06 17:31:24 -0800 | [diff] [blame] | 62 | time ./run |
Rob Pike | 8d21004 | 2009-01-06 15:49:27 -0800 | [diff] [blame] | 63 | ) || exit $? |
| 64 | |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 65 | (xcd ../test |
| 66 | ./run |
Russ Cox | 527669e | 2008-10-29 15:23:29 -0700 | [diff] [blame] | 67 | ) || exit $? |
Russ Cox | bbb00c6 | 2008-10-08 09:46:54 -0700 | [diff] [blame] | 68 | |