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