tree: e1a182c1b1ec175f747a37bd029a84b60b278601 [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. convlit.go
  70. convlit1.go
  71. copy.go
  72. copy1.go
  73. crlf.go
  74. ddd.go
  75. ddd1.go
  76. ddd2.dir/
  77. ddd2.go
  78. decl.go
  79. declbad.go
  80. defer.go
  81. defererrcheck.go
  82. deferfin.go
  83. defernil.go
  84. deferprint.go
  85. deferprint.out
  86. devirt.go
  87. directive.go
  88. divide.go
  89. divmod.go
  90. dwarf/
  91. embedfunc.go
  92. embedvers.go
  93. empty.go
  94. env.go
  95. eof.go
  96. eof1.go
  97. escape.go
  98. escape2.go
  99. escape2n.go
  100. escape3.go
  101. escape4.go
  102. escape5.go
  103. escape_array.go
  104. escape_calls.go
  105. escape_closure.go
  106. escape_field.go
  107. escape_goto.go
  108. escape_hash_maphash.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. fixedbugs/
  125. float_lit.go
  126. float_lit2.go
  127. float_lit3.go
  128. floatcmp.go
  129. for.go
  130. func.go
  131. func1.go
  132. func2.go
  133. func3.go
  134. func4.go
  135. func5.go
  136. func6.go
  137. func7.go
  138. func8.go
  139. funcdup.go
  140. funcdup2.go
  141. gc.go
  142. gc1.go
  143. gc2.go
  144. gcgort.go
  145. gcstring.go
  146. goprint.go
  147. goprint.out
  148. goto.go
  149. heapsampling.go
  150. helloworld.go
  151. helloworld.out
  152. if.go
  153. import.go
  154. import1.go
  155. import2.dir/
  156. import2.go
  157. import4.dir/
  158. import4.go
  159. import5.go
  160. import6.go
  161. index.go
  162. index0.go
  163. index1.go
  164. index2.go
  165. indirect.go
  166. indirect1.go
  167. init.go
  168. init1.go
  169. initcomma.go
  170. initempty.go
  171. initexp.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. interface/
  186. intrinsic.dir/
  187. intrinsic.go
  188. intrinsic_atomic.go
  189. iota.go
  190. ken/
  191. label.go
  192. label1.go
  193. linkmain.go
  194. linkmain_run.go
  195. linkname.dir/
  196. linkname.go
  197. linkname2.go
  198. linkobj.go
  199. linkx.go
  200. linkx_run.go
  201. literal.go
  202. literal2.go
  203. live.go
  204. live1.go
  205. live2.go
  206. live_syscall.go
  207. locklinear.go
  208. loopbce.go
  209. mainsig.go
  210. makechan.go
  211. makemap.go
  212. makenew.go
  213. makeslice.go
  214. mallocfin.go
  215. map.go
  216. map1.go
  217. mapclear.go
  218. maplinear.go
  219. mergemul.go
  220. method.go
  221. method1.go
  222. method2.go
  223. method3.go
  224. method4.dir/
  225. method4.go
  226. method5.go
  227. method6.go
  228. method7.go
  229. named.go
  230. named1.go
  231. nil.go
  232. nilcheck.go
  233. nilptr.go
  234. nilptr2.go
  235. nilptr3.go
  236. nilptr4.go
  237. nilptr5.go
  238. nilptr5_aix.go
  239. nilptr5_wasm.go
  240. nilptr_aix.go
  241. nosplit.go
  242. notinheap.go
  243. notinheap2.go
  244. notinheap3.go
  245. nowritebarrier.go
  246. nul1.go
  247. oldescape_linkname.dir/
  248. opt_branchlikely.go
  249. parentype.go
  250. peano.go
  251. phiopt.go
  252. print.go
  253. print.out
  254. printbig.go
  255. printbig.out
  256. prove.go
  257. range.go
  258. recover.go
  259. recover1.go
  260. recover2.go
  261. recover3.go
  262. recover4.go
  263. recover5.go
  264. reflectmethod1.go
  265. reflectmethod2.go
  266. reflectmethod3.go
  267. reflectmethod4.go
  268. reflectmethod5.go
  269. reflectmethod6.go
  270. reflectmethod7.go
  271. rename.go
  272. rename1.go
  273. reorder.go
  274. reorder2.go
  275. retjmp.dir/
  276. retjmp.go
  277. return.go
  278. rotate.go
  279. rotate0.go
  280. rotate1.go
  281. rotate2.go
  282. rotate3.go
  283. run.go
  284. rune.go
  285. runtime.go
  286. runtime/
  287. shift1.go
  288. shift2.go
  289. sieve.go
  290. sigchld.go
  291. sigchld.out
  292. simassign.go
  293. sinit.go
  294. sinit_run.go
  295. sizeof.go
  296. slice3.go
  297. slice3err.go
  298. slicecap.go
  299. sliceopt.go
  300. solitaire.go
  301. stack.go
  302. stackobj.go
  303. stackobj2.go
  304. stackobj3.go
  305. strcopy.go
  306. strength.go
  307. stress/
  308. string_lit.go
  309. stringrange.go
  310. struct0.go
  311. switch.go
  312. switch2.go
  313. switch3.go
  314. switch4.go
  315. switch5.go
  316. switch6.go
  317. switch7.go
  318. syntax/
  319. tinyfin.go
  320. torture.go
  321. turing.go
  322. typecheck.go
  323. typecheckloop.go
  324. typeparam/
  325. typeswitch.go
  326. typeswitch1.go
  327. typeswitch2.go
  328. typeswitch2b.go
  329. typeswitch3.go
  330. uintptrescapes.dir/
  331. uintptrescapes.go
  332. uintptrescapes2.go
  333. uintptrescapes3.go
  334. undef.go
  335. used.go
  336. utf.go
  337. varerr.go
  338. varinit.go
  339. winbatch.go
  340. writebarrier.go
  341. 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.