tree: e19524627bfd84e34e0e771fef1b1540db8cc586 [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. gcgort.go
  139. gcstring.go
  140. goprint.go
  141. goprint.out
  142. goto.go
  143. heapsampling.go
  144. helloworld.go
  145. helloworld.out
  146. if.go
  147. import.go
  148. import1.go
  149. import2.go
  150. import4.go
  151. import5.go
  152. import6.go
  153. index.go
  154. index0.go
  155. index1.go
  156. index2.go
  157. indirect.go
  158. indirect1.go
  159. init.go
  160. init1.go
  161. initcomma.go
  162. initialize.go
  163. initializerr.go
  164. initloop.go
  165. inline.go
  166. inline_big.go
  167. inline_caller.go
  168. inline_callers.go
  169. inline_literal.go
  170. inline_variadic.go
  171. int_lit.go
  172. intcvt.go
  173. intrinsic.go
  174. intrinsic_atomic.go
  175. iota.go
  176. label.go
  177. label1.go
  178. linkmain.go
  179. linkmain_run.go
  180. linkname.go
  181. linkobj.go
  182. linkx.go
  183. linkx_run.go
  184. literal.go
  185. live.go
  186. live1.go
  187. live2.go
  188. live_syscall.go
  189. locklinear.go
  190. loopbce.go
  191. makechan.go
  192. makemap.go
  193. makenew.go
  194. mallocfin.go
  195. map.go
  196. map1.go
  197. mapclear.go
  198. maplinear.go
  199. mergemul.go
  200. method.go
  201. method1.go
  202. method2.go
  203. method3.go
  204. method4.go
  205. method5.go
  206. method6.go
  207. method7.go
  208. named.go
  209. named1.go
  210. nil.go
  211. nilcheck.go
  212. nilptr.go
  213. nilptr2.go
  214. nilptr3.go
  215. nilptr3_wasm.go
  216. nilptr4.go
  217. nosplit.go
  218. notinheap.go
  219. notinheap2.go
  220. notinheap3.go
  221. nowritebarrier.go
  222. nul1.go
  223. opt_branchlikely.go
  224. parentype.go
  225. peano.go
  226. phiopt.go
  227. print.go
  228. print.out
  229. printbig.go
  230. printbig.out
  231. prove.go
  232. range.go
  233. README.md
  234. recover.go
  235. recover1.go
  236. recover2.go
  237. recover3.go
  238. recover4.go
  239. recover5.go
  240. reflectmethod1.go
  241. reflectmethod2.go
  242. reflectmethod3.go
  243. reflectmethod4.go
  244. rename.go
  245. rename1.go
  246. reorder.go
  247. reorder2.go
  248. retjmp.go
  249. return.go
  250. rotate.go
  251. rotate0.go
  252. rotate1.go
  253. rotate2.go
  254. rotate3.go
  255. run.go
  256. rune.go
  257. runtime.go
  258. shift1.go
  259. shift2.go
  260. sieve.go
  261. sigchld.go
  262. sigchld.out
  263. simassign.go
  264. sinit.go
  265. sinit_run.go
  266. sizeof.go
  267. slice3.go
  268. slice3err.go
  269. slicecap.go
  270. sliceopt.go
  271. solitaire.go
  272. stack.go
  273. strcopy.go
  274. strength.go
  275. string_lit.go
  276. stringrange.go
  277. struct0.go
  278. switch.go
  279. switch2.go
  280. switch3.go
  281. switch4.go
  282. switch5.go
  283. switch6.go
  284. switch7.go
  285. tinyfin.go
  286. torture.go
  287. turing.go
  288. typecheck.go
  289. typecheckloop.go
  290. typeswitch.go
  291. typeswitch1.go
  292. typeswitch2.go
  293. typeswitch3.go
  294. uintptrescapes.go
  295. uintptrescapes2.go
  296. undef.go
  297. utf.go
  298. varerr.go
  299. varinit.go
  300. writebarrier.go
  301. 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.