Skip to content

Commit

Permalink
test: use testlib (first 100)
Browse files Browse the repository at this point in the history
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g
X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g
X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g
X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5656082
  • Loading branch information
rsc committed Feb 17, 2012
1 parent a0c13b9 commit 0b477ef
Show file tree
Hide file tree
Showing 99 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion test/235.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/alias.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/alias1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/append.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/assign.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/assign1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/bench/garbage/peano.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/bigalg.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/bigmap.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/blank.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/blank1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/doubleselect.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/fifo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/goroutines.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/nonblock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/perm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/powser1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/powser2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/select7.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/sendstmt.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/sieve1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/sieve2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chan/zerosize.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/chancap.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/char_lit1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/closedchan.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/closure.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/cmp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/cmp6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/cmplx.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/complit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/complit1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/const.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/const1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/const2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/const3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/convert.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/convert1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/convert3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/convlit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/convlit1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G $D/$F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/copy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/ddd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/ddd1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $D/$F.go
// errorcheck

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/decl.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/declbad.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// errchk $G -e $F.go
// errorcheck

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/defer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/divide.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/dwarf/linedirectives.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/empty.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go
// compile

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/env.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/eof.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go
// compile

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/eof1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go
// compile

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/escape.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/escape3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug000.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug002.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug003.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug004.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug005.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
2 changes: 1 addition & 1 deletion test/fixedbugs/bug006.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// run

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down
Loading

0 comments on commit 0b477ef

Please sign in to comment.