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