tree: 1cd5d317841d8cfbfbe4af773c350e37fb58d3d2 [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. nilptr4.go
  216. nilptr5.go
  217. nilptr5_aix.go
  218. nilptr5_wasm.go
  219. nilptr_aix.go
  220. nosplit.go
  221. notinheap.go
  222. notinheap2.go
  223. notinheap3.go
  224. nowritebarrier.go
  225. nul1.go
  226. opt_branchlikely.go
  227. parentype.go
  228. peano.go
  229. phiopt.go
  230. print.go
  231. print.out
  232. printbig.go
  233. printbig.out
  234. prove.go
  235. range.go
  236. README.md
  237. recover.go
  238. recover1.go
  239. recover2.go
  240. recover3.go
  241. recover4.go
  242. recover5.go
  243. reflectmethod1.go
  244. reflectmethod2.go
  245. reflectmethod3.go
  246. reflectmethod4.go
  247. rename.go
  248. rename1.go
  249. reorder.go
  250. reorder2.go
  251. retjmp.go
  252. return.go
  253. rotate.go
  254. rotate0.go
  255. rotate1.go
  256. rotate2.go
  257. rotate3.go
  258. run.go
  259. rune.go
  260. runtime.go
  261. shift1.go
  262. shift2.go
  263. sieve.go
  264. sigchld.go
  265. sigchld.out
  266. simassign.go
  267. sinit.go
  268. sinit_run.go
  269. sizeof.go
  270. slice3.go
  271. slice3err.go
  272. slicecap.go
  273. sliceopt.go
  274. solitaire.go
  275. stack.go
  276. stackobj.go
  277. stackobj2.go
  278. stackobj3.go
  279. strcopy.go
  280. strength.go
  281. string_lit.go
  282. stringrange.go
  283. struct0.go
  284. switch.go
  285. switch2.go
  286. switch3.go
  287. switch4.go
  288. switch5.go
  289. switch6.go
  290. switch7.go
  291. tinyfin.go
  292. torture.go
  293. turing.go
  294. typecheck.go
  295. typecheckloop.go
  296. typeswitch.go
  297. typeswitch1.go
  298. typeswitch2.go
  299. typeswitch3.go
  300. uintptrescapes.go
  301. uintptrescapes2.go
  302. undef.go
  303. utf.go
  304. varerr.go
  305. varinit.go
  306. writebarrier.go
  307. 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.