tree: 05c0fd7b2aee9b96b50becc3ad973eb4ea2ddf21 [path history] [tgz]
  1. alias3.dir/
  2. bench/
  3. chan/
  4. closure3.dir/
  5. ddd2.dir/
  6. dwarf/
  7. fixedbugs/
  8. import2.dir/
  9. import4.dir/
  10. interface/
  11. intrinsic.dir/
  12. ken/
  13. linkname.dir/
  14. method4.dir/
  15. safe/
  16. stress/
  17. syntax/
  18. uintptrescapes.dir/
  19. 235.go
  20. 64bit.go
  21. alg.go
  22. alias.go
  23. alias1.go
  24. alias2.go
  25. alias3.go
  26. append.go
  27. append1.go
  28. args.go
  29. armimm.go
  30. assign.go
  31. assign1.go
  32. atomicload.go
  33. bigalg.go
  34. bigmap.go
  35. blank.go
  36. blank1.go
  37. bom.go
  38. bombad.go
  39. bounds.go
  40. chancap.go
  41. chanlinear.go
  42. char_lit.go
  43. char_lit1.go
  44. checkbce.go
  45. clearfat.go
  46. closedchan.go
  47. closure.go
  48. closure1.go
  49. closure2.go
  50. closure3.go
  51. cmp.go
  52. cmp6.go
  53. cmplx.go
  54. cmplxdivide.c
  55. cmplxdivide.go
  56. cmplxdivide1.go
  57. complit.go
  58. complit1.go
  59. compos.go
  60. const.go
  61. const1.go
  62. const2.go
  63. const3.go
  64. const4.go
  65. const5.go
  66. const6.go
  67. convert.go
  68. convert1.go
  69. convert2.go
  70. convert3.go
  71. convlit.go
  72. convlit1.go
  73. convT2X.go
  74. copy.go
  75. copy1.go
  76. crlf.go
  77. ddd.go
  78. ddd1.go
  79. ddd2.go
  80. decl.go
  81. declbad.go
  82. defer.go
  83. deferfin.go
  84. deferprint.go
  85. deferprint.out
  86. devirt.go
  87. divide.go
  88. divmod.go
  89. empty.go
  90. env.go
  91. eof.go
  92. eof1.go
  93. errchk
  94. escape.go
  95. escape2.go
  96. escape2n.go
  97. escape3.go
  98. escape4.go
  99. escape5.go
  100. escape_array.go
  101. escape_because.go
  102. escape_calls.go
  103. escape_closure.go
  104. escape_field.go
  105. escape_iface.go
  106. escape_indir.go
  107. escape_level.go
  108. escape_map.go
  109. escape_param.go
  110. escape_slice.go
  111. escape_struct_param1.go
  112. escape_struct_param2.go
  113. escape_struct_return.go
  114. fibo.go
  115. finprofiled.go
  116. float_lit.go
  117. float_lit2.go
  118. float_lit3.go
  119. floatcmp.go
  120. for.go
  121. func.go
  122. func1.go
  123. func2.go
  124. func3.go
  125. func4.go
  126. func5.go
  127. func6.go
  128. func7.go
  129. func8.go
  130. funcdup.go
  131. funcdup2.go
  132. gc.go
  133. gc1.go
  134. gc2.go
  135. gcstring.go
  136. goprint.go
  137. goprint.out
  138. goto.go
  139. heapsampling.go
  140. helloworld.go
  141. helloworld.out
  142. if.go
  143. import.go
  144. import1.go
  145. import2.go
  146. import4.go
  147. import5.go
  148. import6.go
  149. index.go
  150. index0.go
  151. index1.go
  152. index2.go
  153. indirect.go
  154. indirect1.go
  155. init.go
  156. init1.go
  157. initcomma.go
  158. initialize.go
  159. initializerr.go
  160. initloop.go
  161. inline.go
  162. inline_caller.go
  163. inline_callers.go
  164. inline_literal.go
  165. inline_variadic.go
  166. int_lit.go
  167. intcvt.go
  168. intrinsic.go
  169. intrinsic_atomic.go
  170. iota.go
  171. label.go
  172. label1.go
  173. linkmain.go
  174. linkmain_run.go
  175. linkname.go
  176. linkobj.go
  177. linkx.go
  178. linkx_run.go
  179. literal.go
  180. live.go
  181. live1.go
  182. live2.go
  183. live_syscall.go
  184. locklinear.go
  185. loopbce.go
  186. makechan.go
  187. makemap.go
  188. makenew.go
  189. mallocfin.go
  190. map.go
  191. map1.go
  192. maplinear.go
  193. mergemul.go
  194. method.go
  195. method1.go
  196. method2.go
  197. method3.go
  198. method4.go
  199. method5.go
  200. method6.go
  201. method7.go
  202. named.go
  203. named1.go
  204. nil.go
  205. nilcheck.go
  206. nilptr.go
  207. nilptr2.go
  208. nilptr3.go
  209. nilptr4.go
  210. nosplit.go
  211. notinheap.go
  212. notinheap2.go
  213. notinheap3.go
  214. nowritebarrier.go
  215. nul1.go
  216. opt_branchlikely.go
  217. parentype.go
  218. peano.go
  219. phiopt.go
  220. print.go
  221. print.out
  222. printbig.go
  223. printbig.out
  224. prove.go
  225. range.go
  226. README.md
  227. recover.go
  228. recover1.go
  229. recover2.go
  230. recover3.go
  231. recover4.go
  232. recover5.go
  233. reflectmethod1.go
  234. reflectmethod2.go
  235. reflectmethod3.go
  236. reflectmethod4.go
  237. rename.go
  238. rename1.go
  239. reorder.go
  240. reorder2.go
  241. return.go
  242. rotate.go
  243. rotate0.go
  244. rotate1.go
  245. rotate2.go
  246. rotate3.go
  247. run.go
  248. rune.go
  249. runtime.go
  250. shift1.go
  251. shift2.go
  252. sieve.go
  253. sigchld.go
  254. sigchld.out
  255. simassign.go
  256. sinit.go
  257. sinit_run.go
  258. sizeof.go
  259. slice3.go
  260. slice3err.go
  261. slicecap.go
  262. sliceopt.go
  263. solitaire.go
  264. stack.go
  265. strength.go
  266. string_lit.go
  267. stringrange.go
  268. struct0.go
  269. switch.go
  270. switch2.go
  271. switch3.go
  272. switch4.go
  273. switch5.go
  274. switch6.go
  275. switch7.go
  276. tinyfin.go
  277. torture.go
  278. turing.go
  279. typecheck.go
  280. typecheckloop.go
  281. typeswitch.go
  282. typeswitch1.go
  283. typeswitch2.go
  284. typeswitch3.go
  285. uintptrescapes.go
  286. uintptrescapes2.go
  287. undef.go
  288. utf.go
  289. varerr.go
  290. varinit.go
  291. writebarrier.go
  292. zerodivide.go
test/README.md

The test directory contains tests of the Go tool chain and runtime. It includes black box tests, regression tests, and error output tests. They are run as part of all.bash.

To run just these tests, execute:

go run run.go

Standard library tests should be written as regular Go tests in the appropriate package.

The tool chain and runtime also have regular Go tests in their packages. The main reasons to add a new test to this directory are:

  • it is most naturally expressed using the test runner; or
  • it is also applicable to gccgo and other Go tool chains.