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