tree: 5c1951f62456d32f17ad2d6e3c021d590ab0f767 [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. oldescape_linkname.dir/
  17. retjmp.dir/
  18. runtime/
  19. stress/
  20. syntax/
  21. uintptrescapes.dir/
  22. 235.go
  23. 64bit.go
  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. convert.go
  73. convert1.go
  74. convert2.go
  75. convert3.go
  76. convlit.go
  77. convlit1.go
  78. convT2X.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. escape.go
  99. escape2.go
  100. escape2n.go
  101. escape3.go
  102. escape4.go
  103. escape5.go
  104. escape_array.go
  105. escape_calls.go
  106. escape_closure.go
  107. escape_field.go
  108. escape_goto.go
  109. escape_iface.go
  110. escape_indir.go
  111. escape_level.go
  112. escape_map.go
  113. escape_param.go
  114. escape_runtime_atomic.go
  115. escape_selfassign.go
  116. escape_slice.go
  117. escape_struct_param1.go
  118. escape_struct_param2.go
  119. escape_struct_return.go
  120. escape_sync_atomic.go
  121. escape_unsafe.go
  122. fibo.go
  123. finprofiled.go
  124. float_lit.go
  125. float_lit2.go
  126. float_lit3.go
  127. floatcmp.go
  128. for.go
  129. func.go
  130. func1.go
  131. func2.go
  132. func3.go
  133. func4.go
  134. func5.go
  135. func6.go
  136. func7.go
  137. func8.go
  138. funcdup.go
  139. funcdup2.go
  140. gc.go
  141. gc1.go
  142. gc2.go
  143. gcgort.go
  144. gcstring.go
  145. goprint.go
  146. goprint.out
  147. goto.go
  148. heapsampling.go
  149. helloworld.go
  150. helloworld.out
  151. if.go
  152. import.go
  153. import1.go
  154. import2.go
  155. import4.go
  156. import5.go
  157. import6.go
  158. index.go
  159. index0.go
  160. index1.go
  161. index2.go
  162. indirect.go
  163. indirect1.go
  164. init.go
  165. init1.go
  166. initcomma.go
  167. initialize.go
  168. initializerr.go
  169. initloop.go
  170. inline.go
  171. inline_big.go
  172. inline_caller.go
  173. inline_callers.go
  174. inline_literal.go
  175. inline_math_bits_rotate.go
  176. inline_sync.go
  177. inline_variadic.go
  178. int_lit.go
  179. intcvt.go
  180. intrinsic.go
  181. intrinsic_atomic.go
  182. iota.go
  183. label.go
  184. label1.go
  185. linkmain.go
  186. linkmain_run.go
  187. linkname.go
  188. linkobj.go
  189. linkx.go
  190. linkx_run.go
  191. literal.go
  192. literal2.go
  193. live.go
  194. live1.go
  195. live2.go
  196. live_syscall.go
  197. locklinear.go
  198. loopbce.go
  199. makechan.go
  200. makemap.go
  201. makenew.go
  202. mallocfin.go
  203. map.go
  204. map1.go
  205. mapclear.go
  206. maplinear.go
  207. mergemul.go
  208. method.go
  209. method1.go
  210. method2.go
  211. method3.go
  212. method4.go
  213. method5.go
  214. method6.go
  215. method7.go
  216. named.go
  217. named1.go
  218. nil.go
  219. nilcheck.go
  220. nilptr.go
  221. nilptr2.go
  222. nilptr3.go
  223. nilptr4.go
  224. nilptr5.go
  225. nilptr5_aix.go
  226. nilptr5_wasm.go
  227. nilptr_aix.go
  228. nosplit.go
  229. notinheap.go
  230. notinheap2.go
  231. notinheap3.go
  232. nowritebarrier.go
  233. nul1.go
  234. opt_branchlikely.go
  235. parentype.go
  236. peano.go
  237. phiopt.go
  238. print.go
  239. print.out
  240. printbig.go
  241. printbig.out
  242. prove.go
  243. range.go
  244. README.md
  245. recover.go
  246. recover1.go
  247. recover2.go
  248. recover3.go
  249. recover4.go
  250. recover5.go
  251. reflectmethod1.go
  252. reflectmethod2.go
  253. reflectmethod3.go
  254. reflectmethod4.go
  255. rename.go
  256. rename1.go
  257. reorder.go
  258. reorder2.go
  259. retjmp.go
  260. return.go
  261. rotate.go
  262. rotate0.go
  263. rotate1.go
  264. rotate2.go
  265. rotate3.go
  266. run.go
  267. rune.go
  268. runtime.go
  269. shift1.go
  270. shift2.go
  271. sieve.go
  272. sigchld.go
  273. sigchld.out
  274. simassign.go
  275. sinit.go
  276. sinit_run.go
  277. sizeof.go
  278. slice3.go
  279. slice3err.go
  280. slicecap.go
  281. sliceopt.go
  282. solitaire.go
  283. stack.go
  284. stackobj.go
  285. stackobj2.go
  286. stackobj3.go
  287. strcopy.go
  288. strength.go
  289. string_lit.go
  290. stringrange.go
  291. struct0.go
  292. switch.go
  293. switch2.go
  294. switch3.go
  295. switch4.go
  296. switch5.go
  297. switch6.go
  298. switch7.go
  299. tinyfin.go
  300. torture.go
  301. turing.go
  302. typecheck.go
  303. typecheckloop.go
  304. typeswitch.go
  305. typeswitch1.go
  306. typeswitch2.go
  307. typeswitch2b.go
  308. typeswitch3.go
  309. uintptrescapes.go
  310. uintptrescapes2.go
  311. undef.go
  312. utf.go
  313. varerr.go
  314. varinit.go
  315. writebarrier.go
  316. 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.