aboutsummaryrefslogtreecommitdiff
path: root/src/run.rc
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2012-05-01 22:32:46 -0700
committerAnthony Martin <ality@pbrane.org>2012-05-01 22:32:46 -0700
commit38590329807beaea154f427549302f71a7a0444e (patch)
tree1230c580a1a0df9b05f470864e948391ab71b84f /src/run.rc
parentce30769ce3d5b9ac02f2a5e6dc36e42eddd66bd2 (diff)
downloadgo-38590329807beaea154f427549302f71a7a0444e.tar.gz
go-38590329807beaea154f427549302f71a7a0444e.zip
build: dist-based build for Plan 9
R=rsc, iant, iant, seed CC=golang-dev https://golang.org/cl/5608059
Diffstat (limited to 'src/run.rc')
-rwxr-xr-xsrc/run.rc50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/run.rc b/src/run.rc
new file mode 100755
index 0000000000..af49297766
--- /dev/null
+++ b/src/run.rc
@@ -0,0 +1,50 @@
+#!/bin/rc -e
+# Copyright 2012 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.
+
+eval `{go env -9}
+
+# allow all.rc to avoid double-build of everything
+rebuild = true
+if(~ $1 --no-rebuild)
+ shift
+if not {
+ echo '# Building packages and commands.'
+ time go install -a -v -p 1 std
+ echo
+}
+
+echo '# Testing packages.'
+time go test std -short -timeout 120s
+echo
+
+echo '# GOMAXPROCS=2 runtime -cpu=1,2,4'
+GOMAXPROCS=2 go test runtime -short -timeout 120s -cpu 1,2,4
+echo
+
+echo '# sync -cpu=10'
+go test sync -short -timeout 120s -cpu 10
+echo
+
+fn xcd {
+ echo
+ echo '#' $1
+ cd $"GOROOT/src/$1
+}
+
+echo
+echo '#' ../misc/dashboard/builder ../misc/goplay
+go build ../misc/dashboard/builder ../misc/gplay
+
+echo
+echo '#' ../test/bench/go1
+go test ../test/bench/go1
+
+@{
+ xcd ../test
+ time go run run.go
+}
+
+echo
+echo ALL TESTS PASSED