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