Skip to content

Commit 0b477ef

Browse files
committed
test: use testlib (first 100)
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
1 parent a0c13b9 commit 0b477ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+99
-99
lines changed

test/235.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/alias.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/alias1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/append.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/assign.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

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

test/assign1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

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

test/bench/garbage/peano.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/bigalg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/bigmap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/blank.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/blank1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

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

test/chan/doubleselect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/fifo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/goroutines.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/nonblock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/perm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

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

test/chan/powser1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/powser2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/select.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/select2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/select3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/select4.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/select6.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/select7.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/sendstmt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chan/sieve1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/sieve2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/chan/zerosize.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/chancap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/char_lit1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $F.go
1+
// errorcheck
22

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

test/closedchan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/closure.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/cmp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/cmp6.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/cmplx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/complit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/complit1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/const.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/const1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $F.go
1+
// errorcheck
22

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

test/const2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G $D/$F.go
1+
// errorcheck
22

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

test/const3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/convert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/convert1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/convert3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G $D/$F.go
1+
// errorcheck
22

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

test/convlit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

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

test/convlit1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G $D/$F.go
1+
// errorcheck
22

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

test/copy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/ddd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/ddd1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $D/$F.go
1+
// errorcheck
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/decl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/declbad.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errchk $G -e $F.go
1+
// errorcheck
22

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

test/defer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/divide.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/dwarf/linedirectives.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/empty.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go
1+
// compile
22

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

test/env.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/eof.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go
1+
// compile
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/eof1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go
1+
// compile
22

33
// Copyright 2010 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/escape.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/escape3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

33
// Copyright 2011 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/fixedbugs/bug000.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/fixedbugs/bug002.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/fixedbugs/bug003.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/fixedbugs/bug004.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/fixedbugs/bug005.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

test/fixedbugs/bug006.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $G $D/$F.go && $L $F.$A && ./$A.out
1+
// run
22

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

0 commit comments

Comments
 (0)