tree: 43e90a7e77010d414e91ac954c7729a8ccb61fb0 [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. 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. closure4.go
  55. cmp.go
  56. cmp6.go
  57. cmplx.go
  58. cmplxdivide.c
  59. cmplxdivide.go
  60. cmplxdivide1.go
  61. complit.go
  62. complit1.go
  63. compos.go
  64. const.go
  65. const1.go
  66. const2.go
  67. const3.go
  68. const4.go
  69. const5.go
  70. const6.go
  71. convert.go
  72. convert1.go
  73. convert2.go
  74. convert3.go
  75. convlit.go
  76. convlit1.go
  77. convT2X.go
  78. copy.go
  79. copy1.go
  80. crlf.go
  81. ddd.go
  82. ddd1.go
  83. ddd2.go
  84. decl.go
  85. declbad.go
  86. defer.go
  87. deferfin.go
  88. deferprint.go
  89. deferprint.out
  90. devirt.go
  91. divide.go
  92. divmod.go
  93. empty.go
  94. env.go
  95. eof.go
  96. eof1.go
  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_runtime_atomic.go
  114. escape_selfassign.go
  115. escape_slice.go
  116. escape_struct_param1.go
  117. escape_struct_param2.go
  118. escape_struct_return.go
  119. escape_sync_atomic.go
  120. escape_unsafe.go
  121. fibo.go
  122. finprofiled.go
  123. float_lit.go
  124. float_lit2.go
  125. float_lit3.go
  126. floatcmp.go
  127. for.go
  128. func.go
  129. func1.go
  130. func2.go
  131. func3.go
  132. func4.go
  133. func5.go
  134. func6.go
  135. func7.go
  136. func8.go
  137. funcdup.go
  138. funcdup2.go
  139. gc.go
  140. gc1.go
  141. gc2.go
  142. gcgort.go
  143. gcstring.go
  144. goprint.go
  145. goprint.out
  146. goto.go
  147. heapsampling.go
  148. helloworld.go
  149. helloworld.out
  150. if.go
  151. import.go
  152. import1.go
  153. import2.go
  154. import4.go
  155. import5.go
  156. import6.go
  157. index.go
  158. index0.go
  159. index1.go
  160. index2.go
  161. indirect.go
  162. indirect1.go
  163. init.go
  164. init1.go
  165. initcomma.go
  166. initialize.go
  167. initializerr.go
  168. initloop.go
  169. inline.go
  170. inline_big.go
  171. inline_caller.go
  172. inline_callers.go
  173. inline_literal.go
  174. inline_math_bits_rotate.go
  175. inline_sync.go
  176. inline_variadic.go
  177. int_lit.go
  178. intcvt.go
  179. intrinsic.go
  180. intrinsic_atomic.go
  181. iota.go
  182. label.go
  183. label1.go
  184. linkmain.go
  185. linkmain_run.go
  186. linkname.go
  187. linkobj.go
  188. linkx.go
  189. linkx_run.go
  190. literal.go
  191. literal2.go
  192. live.go
  193. live1.go
  194. live2.go
  195. live_syscall.go
  196. locklinear.go
  197. loopbce.go
  198. makechan.go
  199. makemap.go
  200. makenew.go
  201. mallocfin.go
  202. map.go
  203. map1.go
  204. mapclear.go
  205. maplinear.go
  206. mergemul.go
  207. method.go
  208. method1.go
  209. method2.go
  210. method3.go
  211. method4.go
  212. method5.go
  213. method6.go
  214. method7.go
  215. named.go
  216. named1.go
  217. nil.go
  218. nilcheck.go
  219. nilptr.go
  220. nilptr2.go
  221. nilptr3.go
  222. nilptr4.go
  223. nilptr5.go
  224. nilptr5_aix.go
  225. nilptr5_wasm.go
  226. nilptr_aix.go
  227. nosplit.go
  228. notinheap.go
  229. notinheap2.go
  230. notinheap3.go
  231. nowritebarrier.go
  232. nul1.go
  233. oldescape2.go
  234. oldescape2n.go
  235. oldescape5.go
  236. oldescape_calls.go
  237. oldescape_closure.go
  238. oldescape_field.go
  239. oldescape_iface.go
  240. oldescape_linkname.go
  241. oldescape_param.go
  242. oldescape_struct_return.go
  243. opt_branchlikely.go
  244. parentype.go
  245. peano.go
  246. phiopt.go
  247. print.go
  248. print.out
  249. printbig.go
  250. printbig.out
  251. prove.go
  252. range.go
  253. README.md
  254. recover.go
  255. recover1.go
  256. recover2.go
  257. recover3.go
  258. recover4.go
  259. recover5.go
  260. reflectmethod1.go
  261. reflectmethod2.go
  262. reflectmethod3.go
  263. reflectmethod4.go
  264. rename.go
  265. rename1.go
  266. reorder.go
  267. reorder2.go
  268. retjmp.go
  269. return.go
  270. rotate.go
  271. rotate0.go
  272. rotate1.go
  273. rotate2.go
  274. rotate3.go
  275. run.go
  276. rune.go
  277. runtime.go
  278. shift1.go
  279. shift2.go
  280. sieve.go
  281. sigchld.go
  282. sigchld.out
  283. simassign.go
  284. sinit.go
  285. sinit_run.go
  286. sizeof.go
  287. slice3.go
  288. slice3err.go
  289. slicecap.go
  290. sliceopt.go
  291. solitaire.go
  292. stack.go
  293. stackobj.go
  294. stackobj2.go
  295. stackobj3.go
  296. strcopy.go
  297. strength.go
  298. string_lit.go
  299. stringrange.go
  300. struct0.go
  301. switch.go
  302. switch2.go
  303. switch3.go
  304. switch4.go
  305. switch5.go
  306. switch6.go
  307. switch7.go
  308. tinyfin.go
  309. torture.go
  310. turing.go
  311. typecheck.go
  312. typecheckloop.go
  313. typeswitch.go
  314. typeswitch1.go
  315. typeswitch2.go
  316. typeswitch3.go
  317. uintptrescapes.go
  318. uintptrescapes2.go
  319. undef.go
  320. utf.go
  321. varerr.go
  322. varinit.go
  323. writebarrier.go
  324. 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.