summaryrefslogtreecommitdiff
path: root/test/testlib
blob: ea8c5d74e0982b4d9d34cba9094e6424c80434ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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.

# These function names are also known to
# (and are the plan for transitioning to) run.go.

compile() {
	$G $D/$F.go
}

build() {
	$G $D/$F.go && $L $F.$A
}

run() {
	$G $D/$F.go && $L $F.$A && ./$A.out "$@"
}

errorcheck() {
	errchk $G -e $D/$F.go
}