tree: 33a30018a13337bc149b20379b5fecccd668e23e [path history] [tgz]
  1. 235.go
  2. 64bit.go
  3. README.md
  4. alg.go
  5. alias.go
  6. alias1.go
  7. alias2.go
  8. alias3.dir/
  9. alias3.go
  10. align.go
  11. append.go
  12. append1.go
  13. args.go
  14. armimm.go
  15. assign.go
  16. assign1.go
  17. atomicload.go
  18. bench/
  19. bigalg.go
  20. bigmap.go
  21. blank.go
  22. blank1.go
  23. bom.go
  24. bombad.go
  25. bounds.go
  26. cannotassign.go
  27. chan/
  28. chancap.go
  29. chanlinear.go
  30. char_lit.go
  31. char_lit1.go
  32. checkbce.go
  33. clearfat.go
  34. closedchan.go
  35. closure.go
  36. closure1.go
  37. closure2.go
  38. closure3.dir/
  39. closure3.go
  40. closure4.go
  41. cmp.go
  42. cmp6.go
  43. cmplx.go
  44. cmplxdivide.c
  45. cmplxdivide.go
  46. cmplxdivide1.go
  47. codegen/
  48. complit.go
  49. complit1.go
  50. compos.go
  51. const.go
  52. const1.go
  53. const2.go
  54. const3.go
  55. const4.go
  56. const5.go
  57. const6.go
  58. convT2X.go
  59. convert.go
  60. convert1.go
  61. convert2.go
  62. convert3.go
  63. convlit.go
  64. convlit1.go
  65. copy.go
  66. copy1.go
  67. crlf.go
  68. ddd.go
  69. ddd1.go
  70. ddd2.dir/
  71. ddd2.go
  72. decl.go
  73. declbad.go
  74. defer.go
  75. defererrcheck.go
  76. deferfin.go
  77. defernil.go
  78. deferprint.go
  79. deferprint.out
  80. devirt.go
  81. directive.go
  82. divide.go
  83. divmod.go
  84. dwarf/
  85. empty.go
  86. env.go
  87. eof.go
  88. eof1.go
  89. escape.go
  90. escape2.go
  91. escape2n.go
  92. escape3.go
  93. escape4.go
  94. escape5.go
  95. escape_array.go
  96. escape_calls.go
  97. escape_closure.go
  98. escape_field.go
  99. escape_goto.go
  100. escape_hash_maphash.go
  101. escape_iface.go
  102. escape_indir.go
  103. escape_level.go
  104. escape_map.go
  105. escape_param.go
  106. escape_runtime_atomic.go
  107. escape_selfassign.go
  108. escape_slice.go
  109. escape_struct_param1.go
  110. escape_struct_param2.go
  111. escape_struct_return.go
  112. escape_sync_atomic.go
  113. escape_unsafe.go
  114. fibo.go
  115. finprofiled.go
  116. fixedbugs/
  117. float_lit.go
  118. float_lit2.go
  119. float_lit3.go
  120. floatcmp.go
  121. for.go
  122. func.go
  123. func1.go
  124. func2.go
  125. func3.go
  126. func4.go
  127. func5.go
  128. func6.go
  129. func7.go
  130. func8.go
  131. funcdup.go
  132. funcdup2.go
  133. gc.go
  134. gc1.go
  135. gc2.go
  136. gcgort.go
  137. gcstring.go
  138. goprint.go
  139. goprint.out
  140. goto.go
  141. heapsampling.go
  142. helloworld.go
  143. helloworld.out
  144. if.go
  145. import.go
  146. import1.go
  147. import2.dir/
  148. import2.go
  149. import4.dir/
  150. import4.go
  151. import5.go
  152. import6.go
  153. index.go
  154. index0.go
  155. index1.go
  156. index2.go
  157. indirect.go
  158. indirect1.go
  159. init.go
  160. init1.go
  161. initcomma.go
  162. initempty.go
  163. initialize.go
  164. initializerr.go
  165. initloop.go
  166. inline.go
  167. inline_big.go
  168. inline_caller.go
  169. inline_callers.go
  170. inline_literal.go
  171. inline_math_bits_rotate.go
  172. inline_sync.go
  173. inline_variadic.go
  174. int_lit.go
  175. intcvt.go
  176. interface/
  177. intrinsic.dir/
  178. intrinsic.go
  179. intrinsic_atomic.go
  180. iota.go
  181. ken/
  182. label.go
  183. label1.go
  184. linkmain.go
  185. linkmain_run.go
  186. linkname.dir/
  187. linkname.go
  188. linkobj.go
  189. linkx.go
  190. linkx_run.go
  191. literal.go
  192. literal2.go
  193. live.go
  194. live1.go
  195. live2.go
  196. live_syscall.go
  197. locklinear.go
  198. loopbce.go
  199. makechan.go
  200. makemap.go
  201. makenew.go
  202. makeslice.go
  203. mallocfin.go
  204. map.go
  205. map1.go
  206. mapclear.go
  207. maplinear.go
  208. mergemul.go
  209. method.go
  210. method1.go
  211. method2.go
  212. method3.go
  213. method4.dir/
  214. method4.go
  215. method5.go
  216. method6.go
  217. method7.go
  218. named.go
  219. named1.go
  220. nil.go
  221. nilcheck.go
  222. nilptr.go
  223. nilptr2.go
  224. nilptr3.go
  225. nilptr4.go
  226. nilptr5.go
  227. nilptr5_aix.go
  228. nilptr5_wasm.go
  229. nilptr_aix.go
  230. nosplit.go
  231. notinheap.go
  232. notinheap2.go
  233. notinheap3.go
  234. nowritebarrier.go
  235. nul1.go
  236. oldescape_linkname.dir/
  237. opt_branchlikely.go
  238. parentype.go
  239. peano.go
  240. phiopt.go
  241. print.go
  242. print.out
  243. printbig.go
  244. printbig.out
  245. prove.go
  246. range.go
  247. recover.go
  248. recover1.go
  249. recover2.go
  250. recover3.go
  251. recover4.go
  252. recover5.go
  253. reflectmethod1.go
  254. reflectmethod2.go
  255. reflectmethod3.go
  256. reflectmethod4.go
  257. reflectmethod5.go
  258. reflectmethod6.go
  259. rename.go
  260. rename1.go
  261. reorder.go
  262. reorder2.go
  263. retjmp.dir/
  264. retjmp.go
  265. return.go
  266. rotate.go
  267. rotate0.go
  268. rotate1.go
  269. rotate2.go
  270. rotate3.go
  271. run.go
  272. rune.go
  273. runtime.go
  274. runtime/
  275. shift1.go
  276. shift2.go
  277. sieve.go
  278. sigchld.go
  279. sigchld.out
  280. simassign.go
  281. sinit.go
  282. sinit_run.go
  283. sizeof.go
  284. slice3.go
  285. slice3err.go
  286. slicecap.go
  287. sliceopt.go
  288. solitaire.go
  289. stack.go
  290. stackobj.go
  291. stackobj2.go
  292. stackobj3.go
  293. strcopy.go
  294. strength.go
  295. stress/
  296. string_lit.go
  297. stringrange.go
  298. struct0.go
  299. switch.go
  300. switch2.go
  301. switch3.go
  302. switch4.go
  303. switch5.go
  304. switch6.go
  305. switch7.go
  306. syntax/
  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.dir/
  318. uintptrescapes.go
  319. uintptrescapes2.go
  320. uintptrescapes3.go
  321. undef.go
  322. utf.go
  323. varerr.go
  324. varinit.go
  325. winbatch.go
  326. writebarrier.go
  327. 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.