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