tree: 4e19f34d7c0b6249f94d4bb98e4b32dc13ca99f4 [path history] [tgz]
  1. 235.go
  2. 64bit.go
  3. README.md
  4. abi/
  5. alg.go
  6. alias.go
  7. alias1.go
  8. alias2.go
  9. alias3.dir/
  10. alias3.go
  11. align.go
  12. append.go
  13. append1.go
  14. args.go
  15. armimm.go
  16. assign.go
  17. assign1.go
  18. atomicload.go
  19. bench/
  20. bigalg.go
  21. bigmap.go
  22. blank.go
  23. blank1.go
  24. bom.go
  25. bombad.go
  26. bounds.go
  27. cannotassign.go
  28. chan/
  29. chancap.go
  30. chanlinear.go
  31. char_lit.go
  32. char_lit1.go
  33. checkbce.go
  34. clearfat.go
  35. closedchan.go
  36. closure.go
  37. closure1.go
  38. closure2.go
  39. closure3.dir/
  40. closure3.go
  41. closure4.go
  42. closure5.dir/
  43. closure5.go
  44. closure6.go
  45. closure7.go
  46. cmp.go
  47. cmp6.go
  48. cmplx.go
  49. cmplxdivide.c
  50. cmplxdivide.go
  51. cmplxdivide1.go
  52. codegen/
  53. complit.go
  54. complit1.go
  55. compos.go
  56. const.go
  57. const1.go
  58. const2.go
  59. const3.go
  60. const4.go
  61. const5.go
  62. const6.go
  63. const7.go
  64. convT2X.go
  65. convert.go
  66. convert1.go
  67. convert2.go
  68. convert3.go
  69. convert4.go
  70. convlit.go
  71. convlit1.go
  72. copy.go
  73. copy1.go
  74. crlf.go
  75. ddd.go
  76. ddd1.go
  77. ddd2.dir/
  78. ddd2.go
  79. decl.go
  80. declbad.go
  81. defer.go
  82. defererrcheck.go
  83. deferfin.go
  84. defernil.go
  85. deferprint.go
  86. deferprint.out
  87. devirt.go
  88. directive.go
  89. divide.go
  90. divmod.go
  91. dwarf/
  92. embedfunc.go
  93. embedvers.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_calls.go
  106. escape_closure.go
  107. escape_field.go
  108. escape_goto.go
  109. escape_hash_maphash.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. fixedbugs/
  126. float_lit.go
  127. float_lit2.go
  128. float_lit3.go
  129. floatcmp.go
  130. for.go
  131. func.go
  132. func1.go
  133. func2.go
  134. func3.go
  135. func4.go
  136. func5.go
  137. func6.go
  138. func7.go
  139. func8.go
  140. funcdup.go
  141. funcdup2.go
  142. fuse.go
  143. gc.go
  144. gc1.go
  145. gc2.go
  146. gcgort.go
  147. gcstring.go
  148. goprint.go
  149. goprint.out
  150. goto.go
  151. heapsampling.go
  152. helloworld.go
  153. helloworld.out
  154. if.go
  155. import.go
  156. import1.go
  157. import2.dir/
  158. import2.go
  159. import4.dir/
  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. initexp.go
  174. initialize.go
  175. initializerr.go
  176. initloop.go
  177. inline.go
  178. inline_big.go
  179. inline_caller.go
  180. inline_callers.go
  181. inline_literal.go
  182. inline_math_bits_rotate.go
  183. inline_sync.go
  184. inline_variadic.go
  185. int_lit.go
  186. intcvt.go
  187. interface/
  188. intrinsic.dir/
  189. intrinsic.go
  190. intrinsic_atomic.go
  191. iota.go
  192. ken/
  193. label.go
  194. label1.go
  195. linkmain.go
  196. linkmain_run.go
  197. linkname.dir/
  198. linkname.go
  199. linkname2.go
  200. linkobj.go
  201. linkx.go
  202. linkx_run.go
  203. literal.go
  204. literal2.go
  205. live.go
  206. live1.go
  207. live2.go
  208. live_regabi.go
  209. live_syscall.go
  210. locklinear.go
  211. loopbce.go
  212. mainsig.go
  213. makechan.go
  214. makemap.go
  215. makenew.go
  216. makeslice.go
  217. mallocfin.go
  218. map.go
  219. map1.go
  220. mapclear.go
  221. maplinear.go
  222. mergemul.go
  223. method.go
  224. method1.go
  225. method2.go
  226. method3.go
  227. method4.dir/
  228. method4.go
  229. method5.go
  230. method6.go
  231. method7.go
  232. named.go
  233. named1.go
  234. nil.go
  235. nilcheck.go
  236. nilptr.go
  237. nilptr2.go
  238. nilptr3.go
  239. nilptr4.go
  240. nilptr5.go
  241. nilptr5_aix.go
  242. nilptr5_wasm.go
  243. nilptr_aix.go
  244. nosplit.go
  245. notinheap.go
  246. notinheap2.go
  247. notinheap3.go
  248. nowritebarrier.go
  249. nul1.go
  250. oldescape_linkname.dir/
  251. opt_branchlikely.go
  252. parentype.go
  253. peano.go
  254. phiopt.go
  255. print.go
  256. print.out
  257. printbig.go
  258. printbig.out
  259. prove.go
  260. range.go
  261. recover.go
  262. recover1.go
  263. recover2.go
  264. recover3.go
  265. recover4.go
  266. recover5.go
  267. reflectmethod1.go
  268. reflectmethod2.go
  269. reflectmethod3.go
  270. reflectmethod4.go
  271. reflectmethod5.go
  272. reflectmethod6.go
  273. reflectmethod7.go
  274. rename.go
  275. rename1.go
  276. reorder.go
  277. reorder2.go
  278. retjmp.dir/
  279. retjmp.go
  280. return.go
  281. rotate.go
  282. rotate0.go
  283. rotate1.go
  284. rotate2.go
  285. rotate3.go
  286. run.go
  287. rune.go
  288. runtime.go
  289. runtime/
  290. shift1.go
  291. shift2.go
  292. sieve.go
  293. sigchld.go
  294. sigchld.out
  295. simassign.go
  296. sinit.go
  297. sinit_run.go
  298. sizeof.go
  299. slice3.go
  300. slice3err.go
  301. slicecap.go
  302. sliceopt.go
  303. solitaire.go
  304. stack.go
  305. stackobj.go
  306. stackobj2.go
  307. stackobj3.go
  308. strcopy.go
  309. strength.go
  310. stress/
  311. string_lit.go
  312. stringrange.go
  313. struct0.go
  314. switch.go
  315. switch2.go
  316. switch3.go
  317. switch4.go
  318. switch5.go
  319. switch6.go
  320. switch7.go
  321. syntax/
  322. tinyfin.go
  323. torture.go
  324. turing.go
  325. typecheck.go
  326. typecheckloop.go
  327. typeparam/
  328. typeswitch.go
  329. typeswitch1.go
  330. typeswitch2.go
  331. typeswitch2b.go
  332. typeswitch3.go
  333. uintptrescapes.dir/
  334. uintptrescapes.go
  335. uintptrescapes2.go
  336. uintptrescapes3.go
  337. undef.go
  338. unsafebuiltins.go
  339. used.go
  340. utf.go
  341. varerr.go
  342. varinit.go
  343. winbatch.go
  344. writebarrier.go
  345. 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

To run just tests from specified files in this directory, execute:

../bin/go run run.go -- file1.go file2.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.