tree: e88f6227af31bb5c2783592719904cda06920047 [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. README.md
  25. alg.go
  26. alias.go
  27. alias1.go
  28. alias2.go
  29. alias3.go
  30. align.go
  31. append.go
  32. append1.go
  33. args.go
  34. armimm.go
  35. assign.go
  36. assign1.go
  37. atomicload.go
  38. bigalg.go
  39. bigmap.go
  40. blank.go
  41. blank1.go
  42. bom.go
  43. bombad.go
  44. bounds.go
  45. chancap.go
  46. chanlinear.go
  47. char_lit.go
  48. char_lit1.go
  49. checkbce.go
  50. clearfat.go
  51. closedchan.go
  52. closure.go
  53. closure1.go
  54. closure2.go
  55. closure3.go
  56. closure4.go
  57. cmp.go
  58. cmp6.go
  59. cmplx.go
  60. cmplxdivide.c
  61. cmplxdivide.go
  62. cmplxdivide1.go
  63. complit.go
  64. complit1.go
  65. compos.go
  66. const.go
  67. const1.go
  68. const2.go
  69. const3.go
  70. const4.go
  71. const5.go
  72. const6.go
  73. convT2X.go
  74. convert.go
  75. convert1.go
  76. convert2.go
  77. convert3.go
  78. convlit.go
  79. convlit1.go
  80. copy.go
  81. copy1.go
  82. crlf.go
  83. ddd.go
  84. ddd1.go
  85. ddd2.go
  86. decl.go
  87. declbad.go
  88. defer.go
  89. deferfin.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_because.go
  107. escape_calls.go
  108. escape_closure.go
  109. escape_field.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. oldescape2.go
  236. oldescape2n.go
  237. oldescape5.go
  238. oldescape_calls.go
  239. oldescape_closure.go
  240. oldescape_field.go
  241. oldescape_iface.go
  242. oldescape_linkname.go
  243. oldescape_param.go
  244. oldescape_struct_return.go
  245. opt_branchlikely.go
  246. parentype.go
  247. peano.go
  248. phiopt.go
  249. print.go
  250. print.out
  251. printbig.go
  252. printbig.out
  253. prove.go
  254. range.go
  255. recover.go
  256. recover1.go
  257. recover2.go
  258. recover3.go
  259. recover4.go
  260. recover5.go
  261. reflectmethod1.go
  262. reflectmethod2.go
  263. reflectmethod3.go
  264. reflectmethod4.go
  265. rename.go
  266. rename1.go
  267. reorder.go
  268. reorder2.go
  269. retjmp.go
  270. return.go
  271. rotate.go
  272. rotate0.go
  273. rotate1.go
  274. rotate2.go
  275. rotate3.go
  276. run.go
  277. rune.go
  278. runtime.go
  279. shift1.go
  280. shift2.go
  281. sieve.go
  282. sigchld.go
  283. sigchld.out
  284. simassign.go
  285. sinit.go
  286. sinit_run.go
  287. sizeof.go
  288. slice3.go
  289. slice3err.go
  290. slicecap.go
  291. sliceopt.go
  292. solitaire.go
  293. stack.go
  294. stackobj.go
  295. stackobj2.go
  296. stackobj3.go
  297. strcopy.go
  298. strength.go
  299. string_lit.go
  300. stringrange.go
  301. struct0.go
  302. switch.go
  303. switch2.go
  304. switch3.go
  305. switch4.go
  306. switch5.go
  307. switch6.go
  308. switch7.go
  309. tinyfin.go
  310. torture.go
  311. turing.go
  312. typecheck.go
  313. typecheckloop.go
  314. typeswitch.go
  315. typeswitch1.go
  316. typeswitch2.go
  317. typeswitch3.go
  318. uintptrescapes.go
  319. uintptrescapes2.go
  320. undef.go
  321. utf.go
  322. varerr.go
  323. varinit.go
  324. writebarrier.go
  325. 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.