tree: a10578ab411a279f7603589d0b80d159dfdb759f [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. retjmp.dir/
  17. stress/
  18. syntax/
  19. uintptrescapes.dir/
  20. 235.go
  21. 64bit.go
  22. alg.go
  23. alias.go
  24. alias1.go
  25. alias2.go
  26. alias3.go
  27. align.go
  28. append.go
  29. append1.go
  30. args.go
  31. armimm.go
  32. assign.go
  33. assign1.go
  34. atomicload.go
  35. bigalg.go
  36. bigmap.go
  37. blank.go
  38. blank1.go
  39. bom.go
  40. bombad.go
  41. bounds.go
  42. chancap.go
  43. chanlinear.go
  44. char_lit.go
  45. char_lit1.go
  46. checkbce.go
  47. clearfat.go
  48. closedchan.go
  49. closure.go
  50. closure1.go
  51. closure2.go
  52. closure3.go
  53. closure4.go
  54. cmp.go
  55. cmp6.go
  56. cmplx.go
  57. cmplxdivide.c
  58. cmplxdivide.go
  59. cmplxdivide1.go
  60. complit.go
  61. complit1.go
  62. compos.go
  63. const.go
  64. const1.go
  65. const2.go
  66. const3.go
  67. const4.go
  68. const5.go
  69. const6.go
  70. convert.go
  71. convert1.go
  72. convert2.go
  73. convert3.go
  74. convlit.go
  75. convlit1.go
  76. convT2X.go
  77. copy.go
  78. copy1.go
  79. crlf.go
  80. ddd.go
  81. ddd1.go
  82. ddd2.go
  83. decl.go
  84. declbad.go
  85. defer.go
  86. deferfin.go
  87. deferprint.go
  88. deferprint.out
  89. devirt.go
  90. divide.go
  91. divmod.go
  92. empty.go
  93. env.go
  94. eof.go
  95. eof1.go
  96. escape.go
  97. escape2.go
  98. escape2n.go
  99. escape3.go
  100. escape4.go
  101. escape5.go
  102. escape_array.go
  103. escape_because.go
  104. escape_calls.go
  105. escape_closure.go
  106. escape_field.go
  107. escape_iface.go
  108. escape_indir.go
  109. escape_level.go
  110. escape_map.go
  111. escape_param.go
  112. escape_slice.go
  113. escape_struct_param1.go
  114. escape_struct_param2.go
  115. escape_struct_return.go
  116. fibo.go
  117. finprofiled.go
  118. float_lit.go
  119. float_lit2.go
  120. float_lit3.go
  121. floatcmp.go
  122. for.go
  123. func.go
  124. func1.go
  125. func2.go
  126. func3.go
  127. func4.go
  128. func5.go
  129. func6.go
  130. func7.go
  131. func8.go
  132. funcdup.go
  133. funcdup2.go
  134. gc.go
  135. gc1.go
  136. gc2.go
  137. gcgort.go
  138. gcstring.go
  139. goprint.go
  140. goprint.out
  141. goto.go
  142. heapsampling.go
  143. helloworld.go
  144. helloworld.out
  145. if.go
  146. import.go
  147. import1.go
  148. import2.go
  149. import4.go
  150. import5.go
  151. import6.go
  152. index.go
  153. index0.go
  154. index1.go
  155. index2.go
  156. indirect.go
  157. indirect1.go
  158. init.go
  159. init1.go
  160. initcomma.go
  161. initialize.go
  162. initializerr.go
  163. initloop.go
  164. inline.go
  165. inline_big.go
  166. inline_caller.go
  167. inline_callers.go
  168. inline_literal.go
  169. inline_math_bits_rotate.go
  170. inline_variadic.go
  171. int_lit.go
  172. intcvt.go
  173. intrinsic.go
  174. intrinsic_atomic.go
  175. iota.go
  176. label.go
  177. label1.go
  178. linkmain.go
  179. linkmain_run.go
  180. linkname.go
  181. linkobj.go
  182. linkx.go
  183. linkx_run.go
  184. literal.go
  185. live.go
  186. live1.go
  187. live2.go
  188. live_syscall.go
  189. locklinear.go
  190. loopbce.go
  191. makechan.go
  192. makemap.go
  193. makenew.go
  194. mallocfin.go
  195. map.go
  196. map1.go
  197. mapclear.go
  198. maplinear.go
  199. mergemul.go
  200. method.go
  201. method1.go
  202. method2.go
  203. method3.go
  204. method4.go
  205. method5.go
  206. method6.go
  207. method7.go
  208. named.go
  209. named1.go
  210. nil.go
  211. nilcheck.go
  212. nilptr.go
  213. nilptr2.go
  214. nilptr3.go
  215. nilptr3_wasm.go
  216. nilptr4.go
  217. nosplit.go
  218. notinheap.go
  219. notinheap2.go
  220. notinheap3.go
  221. nowritebarrier.go
  222. nul1.go
  223. opt_branchlikely.go
  224. parentype.go
  225. peano.go
  226. phiopt.go
  227. print.go
  228. print.out
  229. printbig.go
  230. printbig.out
  231. prove.go
  232. range.go
  233. README.md
  234. recover.go
  235. recover1.go
  236. recover2.go
  237. recover3.go
  238. recover4.go
  239. recover5.go
  240. reflectmethod1.go
  241. reflectmethod2.go
  242. reflectmethod3.go
  243. reflectmethod4.go
  244. rename.go
  245. rename1.go
  246. reorder.go
  247. reorder2.go
  248. retjmp.go
  249. return.go
  250. rotate.go
  251. rotate0.go
  252. rotate1.go
  253. rotate2.go
  254. rotate3.go
  255. run.go
  256. rune.go
  257. runtime.go
  258. shift1.go
  259. shift2.go
  260. sieve.go
  261. sigchld.go
  262. sigchld.out
  263. simassign.go
  264. sinit.go
  265. sinit_run.go
  266. sizeof.go
  267. slice3.go
  268. slice3err.go
  269. slicecap.go
  270. sliceopt.go
  271. solitaire.go
  272. stack.go
  273. strcopy.go
  274. strength.go
  275. string_lit.go
  276. stringrange.go
  277. struct0.go
  278. switch.go
  279. switch2.go
  280. switch3.go
  281. switch4.go
  282. switch5.go
  283. switch6.go
  284. switch7.go
  285. tinyfin.go
  286. torture.go
  287. turing.go
  288. typecheck.go
  289. typecheckloop.go
  290. typeswitch.go
  291. typeswitch1.go
  292. typeswitch2.go
  293. typeswitch3.go
  294. uintptrescapes.go
  295. uintptrescapes2.go
  296. undef.go
  297. unsafereject1.go
  298. unsafereject2.go
  299. utf.go
  300. varerr.go
  301. varinit.go
  302. writebarrier.go
  303. 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.