summaryrefslogtreecommitdiff
path: root/src/cmd/gotest
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-22 16:56:28 -0700
committerRuss Cox <rsc@golang.org>2009-09-22 16:56:28 -0700
commitce588e89e47cb1904209c6258f259ff7dec0212d (patch)
tree871dd0057038663f376fbcd0f6464e88f741fca1 /src/cmd/gotest
parentbc8441544b2566ad0d133d95ab94b9355588c602 (diff)
downloadgolang-ce588e89e47cb1904209c6258f259ff7dec0212d.tar.gz
nacl - run tests under emulator.
special all-nacl.bash and test/run-nacl that run just the tests known to work under nacl. the rest requires closures. fix another bug or two in syscall. R=r DELTA=420 (410 added, 8 deleted, 2 changed) OCL=34882 CL=34907
Diffstat (limited to 'src/cmd/gotest')
-rwxr-xr-xsrc/cmd/gotest/gotest8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest
index 5ee3eb0a8..c4c8e1a9e 100755
--- a/src/cmd/gotest/gotest
+++ b/src/cmd/gotest/gotest
@@ -16,6 +16,12 @@ if [ -z "$O" ]; then
exit 1
fi
+E=""
+case "$GOOS" in
+nacl)
+ E="nacl"
+esac
+
# Allow overrides
GC=${_GC:-$GC}
GL=${GL:-$LD}
@@ -124,4 +130,4 @@ importpath=$(make -s importpath)
$GC _testmain.go
$GL _testmain.$O _test/$importpath.a $xofile
-./$O.out "$@"
+$E ./$O.out "$@"