tree: 5bd8a658139c31df2b8712dcd81531e354a570fc [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. deferprint.go
  90. deferprint.out
  91. devirt.go
  92. divide.go
  93. divmod.go
  94. empty.go
  95. env.go
  96. eof.go
  97. eof1.go
  98. escape.go
  99. escape2.go
  100. escape2n.go
  101. escape3.go
  102. escape4.go
  103. escape5.go
  104. escape_array.go
  105. escape_because.go
  106. escape_calls.go
  107. escape_closure.go
  108. escape_field.go
  109. escape_iface.go
  110. escape_indir.go
  111. escape_level.go
  112. escape_map.go
  113. escape_param.go
  114. escape_runtime_atomic.go
  115. escape_selfassign.go
  116. escape_slice.go
  117. escape_struct_param1.go
  118. escape_struct_param2.go
  119. escape_struct_return.go
  120. escape_sync_atomic.go
  121. escape_unsafe.go
  122. fibo.go
  123. finprofiled.go
  124. float_lit.go
  125. float_lit2.go
  126. float_lit3.go
  127. floatcmp.go
  128. for.go
  129. func.go
  130. func1.go
  131. func2.go
  132. func3.go
  133. func4.go
  134. func5.go
  135. func6.go
  136. func7.go
  137. func8.go
  138. funcdup.go
  139. funcdup2.go
  140. gc.go
  141. gc1.go
  142. gc2.go
  143. gcgort.go
  144. gcstring.go
  145. goprint.go
  146. goprint.out
  147. goto.go
  148. heapsampling.go
  149. helloworld.go
  150. helloworld.out
  151. if.go
  152. import.go
  153. import1.go
  154. import2.go
  155. import4.go
  156. import5.go
  157. import6.go
  158. index.go
  159. index0.go
  160. index1.go
  161. index2.go
  162. indirect.go
  163. indirect1.go
  164. init.go
  165. init1.go
  166. initcomma.go
  167. initialize.go
  168. initializerr.go
  169. initloop.go
  170. inline.go
  171. inline_big.go
  172. inline_caller.go
  173. inline_callers.go
  174. inline_literal.go
  175. inline_math_bits_rotate.go
  176. inline_sync.go
  177. inline_variadic.go
  178. int_lit.go
  179. intcvt.go
  180. intrinsic.go
  181. intrinsic_atomic.go
  182. iota.go
  183. label.go
  184. label1.go
  185. linkmain.go
  186. linkmain_run.go
  187. linkname.go
  188. linkobj.go
  189. linkx.go
  190. linkx_run.go
  191. literal.go
  192. literal2.go
  193. live.go
  194. live1.go
  195. live2.go
  196. live_syscall.go
  197. locklinear.go
  198. loopbce.go
  199. makechan.go
  200. makemap.go
  201. makenew.go
  202. mallocfin.go
  203. map.go
  204. map1.go
  205. mapclear.go
  206. maplinear.go
  207. mergemul.go
  208. method.go
  209. method1.go
  210. method2.go
  211. method3.go
  212. method4.go
  213. method5.go
  214. method6.go
  215. method7.go
  216. named.go
  217. named1.go
  218. nil.go
  219. nilcheck.go
  220. nilptr.go
  221. nilptr2.go
  222. nilptr3.go
  223. nilptr4.go
  224. nilptr5.go
  225. nilptr5_aix.go
  226. nilptr5_wasm.go
  227. nilptr_aix.go
  228. nosplit.go
  229. notinheap.go
  230. notinheap2.go
  231. notinheap3.go
  232. nowritebarrier.go
  233. nul1.go
  234. oldescape2.go
  235. oldescape2n.go
  236. oldescape5.go
  237. oldescape_calls.go
  238. oldescape_closure.go
  239. oldescape_field.go
  240. oldescape_iface.go
  241. oldescape_linkname.go
  242. oldescape_param.go
  243. oldescape_struct_return.go
  244. opt_branchlikely.go
  245. parentype.go
  246. peano.go
  247. phiopt.go
  248. print.go
  249. print.out
  250. printbig.go
  251. printbig.out
  252. prove.go
  253. range.go
  254. README.md
  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.