]> Cypherpunks repositories - gostls13.git/commitdiff
test: use run.go for more tests.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 25 Aug 2012 08:16:02 +0000 (10:16 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 25 Aug 2012 08:16:02 +0000 (10:16 +0200)
R=golang-dev, alex.brainman, minux.ma
CC=golang-dev
https://golang.org/cl/6443110

test/fixedbugs/bug206.go
test/fixedbugs/bug206.out [new file with mode: 0644]
test/fixedbugs/bug222.go
test/fixedbugs/bug335.dir/a.go
test/fixedbugs/bug335.dir/b.go
test/fixedbugs/bug335.go
test/fixedbugs/bug392.dir/pkg2.go [moved from test/fixedbugs/bug392.dir/two.go with 96% similarity]
test/fixedbugs/bug392.dir/pkg3.go [moved from test/fixedbugs/bug392.dir/three.go with 62% similarity]
test/fixedbugs/bug392.go
test/fixedbugs/bug415.dir/prog.go [moved from test/fixedbugs/bug415.dir/main.go with 100% similarity]
test/fixedbugs/bug415.go

index 7efc0b14afb7969b6b3e9936f580cab78bd5c11c..c2382acf13ff5119c7f03f55413785545c4043b7 100644 (file)
@@ -1,4 +1,4 @@
-// $G $D/$F.go && $L $F.$A && ./$A.out >/dev/null 2>&1 || echo BUG: bug206
+// cmpout
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
diff --git a/test/fixedbugs/bug206.out b/test/fixedbugs/bug206.out
new file mode 100644 (file)
index 0000000..aa47d0d
--- /dev/null
@@ -0,0 +1,2 @@
+0
+0
index 5c23a533d19c76a29524b401dfe7d670fede5dc7..3b99da84d4ba1d6a0ae65397970314f5d08475f9 100644 (file)
@@ -1,4 +1,4 @@
-// $G $D/$F.dir/chanbug.go && $G -I. $D/$F.dir/chanbug2.go
+// compiledir
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 5a8112a9de33faf7a885a92856ed47024f6cbee2..256c110d703736c6763e855b108e5dd8a931a6d9 100644 (file)
@@ -4,6 +4,8 @@
 
 package a
 
-import "./b"
+type T interface{}
 
-var Bar = b.Foo
+func f() T { return nil }
+
+var Foo T = f()
index 7428c2a918a4ccb62d5ad4379d3a10b2ca315cbb..1474470d4ceba10846b69bbf0f173542676901cf 100644 (file)
@@ -4,8 +4,6 @@
 
 package b
 
-type T interface{}
+import "./a"
 
-func f() T { return nil }
-
-var Foo T = f()
+var Bar = a.Foo
index 915b746578ccbe3ba7d895a49c16f6c6baab4cd5..37c97d7b5e210592865cc3558e1b01c7942ad457 100644 (file)
@@ -1,5 +1,4 @@
-// $G $D/$F.dir/b.go && $G $D/$F.dir/a.go
-// rm -f a.$A b.$A
+// compiledir
 
 // Copyright 2011 The Go Authors.  All rights reserved.
 // Use of this source code is governed by a BSD-style
@@ -7,4 +6,4 @@
 
 // Issue 1705.
 
-unused (see script at top of file)
+package ignored
similarity index 96%
rename from test/fixedbugs/bug392.dir/two.go
rename to test/fixedbugs/bug392.dir/pkg2.go
index a9033dbb0373dc202e97de494e816ca938dc3d68..8320b2fffa2e23a0cc35095f9dd0458f773eb132 100644 (file)
@@ -5,7 +5,7 @@
 // Use the functions in one.go so that the inlined
 // forms get type-checked.
 
-package two
+package pkg2
 
 import "./one"
 
similarity index 62%
rename from test/fixedbugs/bug392.dir/three.go
rename to test/fixedbugs/bug392.dir/pkg3.go
index a6193bf91078ca6adaca28c40eb16090fbe891d7..402c3b083fd550d77bef5a6bb5c4e2f7a33521ed 100644 (file)
@@ -2,12 +2,12 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Use the functions in one.go so that the inlined
+// Use the functions in pkg2.go so that the inlined
 // forms get type-checked.
 
-package three
+package pkg3
 
-import "./two"
+import "./pkg2"
 
-var x = two.F()
-var v = two.V
+var x = pkg2.F()
+var v = pkg2.V
index a7a4216c4577485018b1238f3d5eb5f90dc946f2..48b79e01b894a128edb9c5c4a839674a5ead3156 100644 (file)
@@ -1,4 +1,4 @@
-// $G $D/$F.dir/one.go && $G $D/$F.dir/two.go && $G $D/$F.dir/three.go
+// compiledir
 
 // Copyright 2011 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index fbf034218a9650582909d7c7cad47cb7400e18de..8cd4c49f24e0c99b054ac4e21c80dbaddbbdcbcc 100644 (file)
@@ -1,4 +1,4 @@
-// $G $D/$F.dir/p.go && $G $D/$F.dir/main.go
+// compiledir
 
 // Copyright 2012 The Go Authors.  All rights reserved.
 // Use of this source code is governed by a BSD-style