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