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