Skip to content

Commit

Permalink
test: use testlib (final 61)
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/5671080
  • Loading branch information
rsc committed Feb 17, 2012
1 parent d2cc988 commit 57eb06f
Show file tree
Hide file tree
Showing 61 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion test/mallocrep1.go
@@ -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/map.go
@@ -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/map1.go
@@ -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/method.go
@@ -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/method1.go
@@ -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/method2.go
@@ -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/named.go
@@ -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/named1.go
@@ -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/nil.go
@@ -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/nilptr.go
@@ -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/parentype.go
@@ -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/peano.go
@@ -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/range.go
@@ -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/recover.go
@@ -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/recover1.go
@@ -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/recover2.go
@@ -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/recover3.go
@@ -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/rename.go
@@ -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/rename1.go
@@ -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/reorder.go
@@ -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/reorder2.go
@@ -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/rune.go
@@ -1,4 +1,4 @@
// $G $D/$F.go
// compile

// 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/runtime.go
@@ -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/shift1.go
@@ -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/simassign.go
@@ -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/sizeof.go
@@ -1,4 +1,4 @@
// $G $D/$F.go
// compile

// 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/stack.go
@@ -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/string_lit.go
@@ -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/stringrange.go
@@ -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/struct0.go
@@ -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/switch.go
@@ -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/switch1.go
@@ -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/switch3.go
@@ -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/syntax/chan.go
@@ -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/syntax/chan1.go
@@ -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/syntax/else.go
@@ -1,4 +1,4 @@
// errchk $G $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/syntax/forvar.go
@@ -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/syntax/if.go
@@ -1,4 +1,4 @@
// errchk $G $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/syntax/import.go
@@ -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/syntax/interface.go
@@ -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/syntax/semi1.go
@@ -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/syntax/semi2.go
@@ -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/syntax/semi3.go
@@ -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/syntax/semi4.go
@@ -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/syntax/semi5.go
@@ -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/syntax/semi6.go
@@ -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/syntax/semi7.go
@@ -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/syntax/topexpr.go
@@ -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/syntax/typesw.go
@@ -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/syntax/vareq.go
@@ -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/syntax/vareq1.go
@@ -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/test0.go
@@ -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/turing.go
@@ -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/typeswitch.go
@@ -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/typeswitch1.go
@@ -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/typeswitch2.go
@@ -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/typeswitch3.go
@@ -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/undef.go
@@ -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/utf.go
@@ -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/varerr.go
@@ -1,4 +1,4 @@
// errchk $G $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/zerodivide.go
@@ -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

0 comments on commit 57eb06f

Please sign in to comment.