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