tree: b38f3e53b370b06e668fd56d5a165242a7f9875c [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. gen/
  12. import2.dir/
  13. import4.dir/
  14. interface/
  15. intrinsic.dir/
  16. ken/
  17. linkname.dir/
  18. method4.dir/
  19. oldescape_linkname.dir/
  20. retjmp.dir/
  21. runtime/
  22. stress/
  23. syntax/
  24. typeparam/
  25. uintptrescapes.dir/
  26. 235.go
  27. 64bit.go
  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. convert.go
  82. convert1.go
  83. convert2.go
  84. convert3.go
  85. convlit.go
  86. convlit1.go
  87. convT2X.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. README.md
  265. recover.go
  266. recover1.go
  267. recover2.go
  268. recover3.go
  269. recover4.go
  270. recover5.go
  271. reflectmethod1.go
  272. reflectmethod2.go
  273. reflectmethod3.go
  274. reflectmethod4.go
  275. reflectmethod5.go
  276. reflectmethod6.go
  277. reflectmethod7.go
  278. rename.go
  279. rename1.go
  280. reorder.go
  281. reorder2.go
  282. retjmp.go
  283. return.go
  284. rotate.go
  285. rotate0.go
  286. rotate1.go
  287. rotate2.go
  288. rotate3.go
  289. run.go
  290. rune.go
  291. runtime.go
  292. shift1.go
  293. shift2.go
  294. sieve.go
  295. sigchld.go
  296. sigchld.out
  297. simassign.go
  298. sinit.go
  299. sinit_run.go
  300. sizeof.go
  301. slice3.go
  302. slice3err.go
  303. slicecap.go
  304. sliceopt.go
  305. solitaire.go
  306. stack.go
  307. stackobj.go
  308. stackobj2.go
  309. stackobj3.go
  310. strcopy.go
  311. strength.go
  312. string_lit.go
  313. stringrange.go
  314. struct0.go
  315. switch.go
  316. switch2.go
  317. switch3.go
  318. switch4.go
  319. switch5.go
  320. switch6.go
  321. switch7.go
  322. tinyfin.go
  323. torture.go
  324. turing.go
  325. typecheck.go
  326. typecheckloop.go
  327. typeswitch.go
  328. typeswitch1.go
  329. typeswitch2.go
  330. typeswitch2b.go
  331. typeswitch3.go
  332. uintptrescapes.go
  333. uintptrescapes2.go
  334. uintptrescapes3.go
  335. undef.go
  336. used.go
  337. utf.go
  338. varerr.go
  339. varinit.go
  340. winbatch.go
  341. writebarrier.go
  342. 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.