diff options
author | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-07-30 21:12:05 +0200 |
---|---|---|
committer | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-07-30 21:12:05 +0200 |
commit | 09211501f75dd30633efcb6144d34eba926c587f (patch) | |
tree | 656903342542721752a88c18b5aa05541f345e94 /test/testlib | |
parent | a1814d9900ea4ab53d06d3acc7b20ba12f7a9dd6 (diff) | |
download | go-09211501f75dd30633efcb6144d34eba926c587f.tar.gz |
test: add a compiledir pattern in run.go
The compiledir pattern compiles all files xxx.dir/*.go
in lexicographic order (which is assumed to coincide with
the topological order of dependencies).
R=rsc
CC=golang-dev, remy
http://codereview.appspot.com/6440048
Diffstat (limited to 'test/testlib')
-rw-r--r-- | test/testlib | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testlib b/test/testlib index 9e0911526..84cda7b37 100644 --- a/test/testlib +++ b/test/testlib @@ -9,6 +9,13 @@ compile() { $G $D/$F.go } +compiledir() { + for gofile in $D/$F.dir/*.go + do + $G ${gofile} || return 1 + done +} + build() { $G $D/$F.go && $L $F.$A } |