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