]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: use testlib (final 61)
authorRuss Cox <rsc@golang.org>
Fri, 17 Feb 2012 04:51:04 +0000 (23:51 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 17 Feb 2012 04:51:04 +0000 (23:51 -0500)
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

61 files changed:
test/mallocrep1.go
test/map.go
test/map1.go
test/method.go
test/method1.go
test/method2.go
test/named.go
test/named1.go
test/nil.go
test/nilptr.go
test/parentype.go
test/peano.go
test/range.go
test/recover.go
test/recover1.go
test/recover2.go
test/recover3.go
test/rename.go
test/rename1.go
test/reorder.go
test/reorder2.go
test/rune.go
test/runtime.go
test/shift1.go
test/simassign.go
test/sizeof.go
test/stack.go
test/string_lit.go
test/stringrange.go
test/struct0.go
test/switch.go
test/switch1.go
test/switch3.go
test/syntax/chan.go
test/syntax/chan1.go
test/syntax/else.go
test/syntax/forvar.go
test/syntax/if.go
test/syntax/import.go
test/syntax/interface.go
test/syntax/semi1.go
test/syntax/semi2.go
test/syntax/semi3.go
test/syntax/semi4.go
test/syntax/semi5.go
test/syntax/semi6.go
test/syntax/semi7.go
test/syntax/topexpr.go
test/syntax/typesw.go
test/syntax/vareq.go
test/syntax/vareq1.go
test/test0.go
test/turing.go
test/typeswitch.go
test/typeswitch1.go
test/typeswitch2.go
test/typeswitch3.go
test/undef.go
test/utf.go
test/varerr.go
test/zerodivide.go

index f9d7286efd9d3a8aa59c64d701db484799ce598c..d2ad6f38ffa826d2bbea319afbf92c003e77a95d 100644 (file)
@@ -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
index 8e1af0e9c47f2cbe767ea72c868ec7aa421b2b3e..c7f1d05a981c16478d84bbbbcf015a9f022439f1 100644 (file)
@@ -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
index 6af10565cd1cf6750cbeb9049b163e09f6b90c12..44708c11bb2538a76e8e3b201ce8f16c5b5804c5 100644 (file)
@@ -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
index b5a02c6873ebca877c9a264f4aedf272f8910017..40b42ac7aa68a3df2d223429ec295133a83d4fd9 100644 (file)
@@ -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
index ec14ef9e4f4549602c138a14da48f3ec0b1d2c0f..bbbdbfa1c197a423664ef5a0c33351d790209e9f 100644 (file)
@@ -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
index 039779efbe18cf015c39a9336ddac4ffbb53819d..7db1c3abb5d56027991124b653def39cc85c8a7b 100644 (file)
@@ -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
index 5b6bb81fe342c1905f8e53c768ce90215273ad9b..d0330ab23892ea40073b7db1e2d8416c36bb49d3 100644 (file)
@@ -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
index 499b77b9615e5fe92bed7bcd8509fb8a252df9fb..ca9da0fa31a1cb4b41563b68fcd97e21b3b75f1c 100644 (file)
@@ -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
index efcf4f7822b08c2672ae647c01342a40b8a7023d..fd938273961edc123b94813ac13161960703619c 100644 (file)
@@ -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
index b0c1df2d95c2e59d9545be001f0bb901d3d5f369..1a489aae963cb45270406331db79b6484a71445a 100644 (file)
@@ -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
index 1872cd0ebc9ee8a41ba7bb884aef735578febf34..d7c14f3a26b2841370109bea8e53ca24bef9cb0e 100644 (file)
@@ -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
index dd4c36e0b434f02ea0715daca3c491026b716d30..2cc0ac280fa9836ce9c3d9a2b43e0096fa78c405 100644 (file)
@@ -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
index 84119450b281fe589f1622172be90eced182a5a8..7921e447ec81d3e04b80a0809006c30da89f9a49 100644 (file)
@@ -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
index ca6f0728860c7aa3006026695df48cd72a7c2475..d32cfdf3d1420fc389c298a2f844455336a37936 100644 (file)
@@ -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
index db584738bb556e38d2e292a75445947f66a620c5..b763a10741746eeec64f2ccde024a469a9c3ce2e 100644 (file)
@@ -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
index b5db6f0d1ca424868958267331fb169121cdf315..946d05ae637f7da30779468a2e60a8e228ea4374 100644 (file)
@@ -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
index 60ade9b61c5e6e3b675ea31f93056788ef5efc48..f87547fc3ec180f8b6e37c8c5f9f46f96406ef4a 100644 (file)
@@ -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
index f21ef015b22fccfb756fbe34062a298df5cef821..ab61c57f6fe03dcecbb1647d45b17805a558c558 100644 (file)
@@ -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
index 3e78bfca0bc505bd70acf826295292c4a2ab41bc..765fba2ac1586444512c5f685cab25e3a5ac2685 100644 (file)
@@ -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
index 67d07523b41d8cef1bfac362b7c1fceaf8c65ea2..a98fd8cbf0b24e883622bd35a63c998e8954d77d 100644 (file)
@@ -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
index 3e149853a396b51f95e80d1114ee8911c26aee15..22fefde53015b3dc56eebcf9a51f3ad1928800ce 100644 (file)
@@ -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
index d62a1766dae8fc7488d5a4af060b1be467b46bc1..3d3823e68be5b2bb3081772d6c25e9c71d9b72ae 100644 (file)
@@ -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
index 4be1d055b526d27d41de88a601b164c0fd0c6646..3162b3f13e2890bf8bb0104d5cf97a23e7f375c9 100644 (file)
@@ -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
index c197eef66e58a8942b141289f9e29ed3629c00e5..393e79ee222a45e70995abbc78d4662dc4ddef09 100644 (file)
@@ -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
index 28408abc23aba228772d324c53921a960fdd7fbd..349895152c5ff8e45aac2dbf3cfbbac67a8615e3 100644 (file)
@@ -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
index 544e4c52c1bb87f63ade61569a8f7928e55b7370..292f73ae4d1d0e87dde40913bf4d15895b2edffd 100644 (file)
@@ -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
index 1fd57161ff2903aff1bd3b15ff38cff561e8f8a1..2a7ce21f33a8d1e07747792622752142094682d0 100644 (file)
@@ -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
index c702a05e91fa6a07fd9e65cad9a0c0cbe17b643a..7f1ca35bc94371dd735061fe68e8b6447cd686b2 100644 (file)
@@ -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
index 6a7063e239d3dc70d03a2553eaa28b8383c5289d..a1534c49cbed90adc249a75c538984ba5680b9c0 100644 (file)
@@ -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
index 2398c4117d3ad85723d9843371e4f712e150b28a..490d38973910eb25266668e92f95b841d0ddf3fb 100644 (file)
@@ -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
index bed027ce85f6c9df79880dc18940a1be7756b6ad..68bd117f0b46aa8c66b5f22dd6eeec60218d061c 100644 (file)
@@ -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
index 5bd9d7c5d0591d78523ba9711e6cd1f3772c0967..484a5c3afaf2e8b9861dbb5732c87b000fc1da13 100644 (file)
@@ -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
index 6c9ebfe6d48ee9ef7bbd7459d1f0a4cf0412dd76..404b62e391a972f40dd29d64f9acf688b3a975ba 100644 (file)
@@ -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
index ff3577502f222c7b20ed30c24900054a1f9747a5..3b68bda35f5de243e5ba097b4e13f59d2b6a2652 100644 (file)
@@ -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
index 9c12e5e6fedac3f4a0e9d32d9b7b2b2e26bd05d3..868a1226d9f06a27ca792a01e14004d0c3f36c2e 100644 (file)
@@ -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
index 99595254fd4877a402b77f3bbfe217d2d24b50a6..e985a9c09c75946cb789d441914785cb635a4ac1 100644 (file)
@@ -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
index f12ce55caeb40847deb75200007c6907af8cbc1c..dc592d2b641b7c5c5a184c04ae6721788aa1f0fe 100644 (file)
@@ -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
index a3b51f0c07b1674937f245c70a2c94fc153da2f1..b2a65f9a59374566a4d64ca286f5187c502f3227 100644 (file)
@@ -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
index dd1f2613445164383dbe4451bead730de762bdc8..f0a792126265a5cc8f8f01b38fe2463de2af2bd1 100644 (file)
@@ -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
index a7f43533a2c60a0da646604dd792194143d3636c..0b76b5416fbc5f053108fee01eef00784eaf4c5c 100644 (file)
@@ -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
index 547d9bf79957a3a6e390a68b9f31d06306c827c1..8fbfb206ad73137fb0f4168a90a266a018694cf4 100644 (file)
@@ -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
index 28d1d3906ddd6ceacf8586b0f362b87162ca8f88..cfb0ed17b7476474d08e4b710ba030e7c0226e53 100644 (file)
@@ -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
index ab5941bda5b71c817d86b72f653a166e8c05a8fd..645af7354a57ce7a42c22fd003abaa5c6747f835 100644 (file)
@@ -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
index 7a9c2956e72882f6f9f029fad274f7c463e14a0b..e192348aa200ece91acfeab448d1807ce6f5bd71 100644 (file)
@@ -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
index 5f8ccc688f79bf26f72b0463b8b21f90ddfa2fa5..cf690f0840637118f2978fe94d57314d96ba63bf 100644 (file)
@@ -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
index b6279ed307abcd11b502d2d802d3ecaf2eb9c340..c1e1cc363a26dc0a025a38dce9987a30183f6b48 100644 (file)
@@ -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
index 5a7b3ff4cc8ec2c71b4253ce28c15eaaf91f1236..6c9ade8bc2b8874a3542303f4964ebebdc56f348 100644 (file)
@@ -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
index 93d86fbe959ba520f219e6be2e5b342586515129..c5958f5dd2c00a4e3d74c822807bdd8375bff07b 100644 (file)
@@ -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
index 47f683cdf2978e90902ef86cb09f1f4b88a1afa0..cd8cf35236ab5089e275aca83d5611158a1db426 100644 (file)
@@ -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
index 8525be8cf592aea395b17028babe949b95858ec4..f08955e91bcccf55441d33e958154db34db76a51 100644 (file)
@@ -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
index 9d70bea39f51899f002713c6ecd9f271a7d4516e..e900eabebec55e4fb160d4c25e39d0a2fd8c4a17 100644 (file)
@@ -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
index d8d86c427937955afc6009b09105592038f7a83d..ba88b1dbd4fa94ce8039ff7dd57dbd4ef4340910 100644 (file)
@@ -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
index 366982e67f12e8ecb4d381f022342a7fb4bffce7..f5a2be2321a7158e24bc31cd925d1e1175dc3768 100644 (file)
@@ -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
index aa911f9b621807dbf12f0f31f1814203a6d8db8e..1f864db9f74c9f0a33e957717f82636bd871ed68 100644 (file)
@@ -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
index 9613b166f18bb15cd1491f468775f2fa869cb180..8b33d39bc0f716c7404e7a29272f77a4f0ff1238 100644 (file)
@@ -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
index 3e3acdae37747a6337d075ec9421505dc7f7111d..69088e0d4f32a45b9a2e505c9a67d8a36b2e85aa 100644 (file)
@@ -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
index e11da7d747f9ec6802cfe7b98ba51ae5e78b2ae5..69a2fca8b160328e3c595dbe45472fcb2ca561aa 100644 (file)
@@ -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
index 7ef07882aa298bcf152ad1b5c1a14879d143d59d..461006d2cb3b4652dc283b0b6f8115c3166c37cf 100644 (file)
@@ -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
index 9fba58156b3423bb0c900a7eba44f26433ea1dd9..0a3a1c0d6b48079edbb28a9060701e8bb603b84f 100644 (file)
@@ -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
index ddd718f5b8a1e2ddd48440ee69a9b6b661428209..4056c16d0316b593db9739593cbe494287544135 100644 (file)
@@ -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
index 3b08e774cc193ce3034ed8f06272ba97deca9696..b88b7fc6878843f1fdbeb36d1c2d19f3dec0d416 100644 (file)
@@ -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