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

../bin/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.