tree: fa108303763c4f3a0614e260a351e7ac482950aa [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. convert4.go
  87. convlit.go
  88. convlit1.go
  89. copy.go
  90. copy1.go
  91. crlf.go
  92. ddd.go
  93. ddd1.go
  94. ddd2.go
  95. decl.go
  96. declbad.go
  97. defer.go
  98. defererrcheck.go
  99. deferfin.go
  100. defernil.go
  101. deferprint.go
  102. deferprint.out
  103. devirt.go
  104. directive.go
  105. divide.go
  106. divmod.go
  107. embedfunc.go
  108. embedvers.go
  109. empty.go
  110. env.go
  111. eof.go
  112. eof1.go
  113. escape.go
  114. escape2.go
  115. escape2n.go
  116. escape3.go
  117. escape4.go
  118. escape5.go
  119. escape_array.go
  120. escape_calls.go
  121. escape_closure.go
  122. escape_field.go
  123. escape_goto.go
  124. escape_hash_maphash.go
  125. escape_iface.go
  126. escape_indir.go
  127. escape_level.go
  128. escape_map.go
  129. escape_param.go
  130. escape_runtime_atomic.go
  131. escape_selfassign.go
  132. escape_slice.go
  133. escape_struct_param1.go
  134. escape_struct_param2.go
  135. escape_struct_return.go
  136. escape_sync_atomic.go
  137. escape_unsafe.go
  138. fibo.go
  139. finprofiled.go
  140. float_lit.go
  141. float_lit2.go
  142. float_lit3.go
  143. floatcmp.go
  144. for.go
  145. func.go
  146. func1.go
  147. func2.go
  148. func3.go
  149. func4.go
  150. func5.go
  151. func6.go
  152. func7.go
  153. func8.go
  154. funcdup.go
  155. funcdup2.go
  156. fuse.go
  157. gc.go
  158. gc1.go
  159. gc2.go
  160. gcgort.go
  161. gcstring.go
  162. goprint.go
  163. goprint.out
  164. goto.go
  165. heapsampling.go
  166. helloworld.go
  167. helloworld.out
  168. if.go
  169. import.go
  170. import1.go
  171. import2.go
  172. import4.go
  173. import5.go
  174. import6.go
  175. index.go
  176. index0.go
  177. index1.go
  178. index2.go
  179. indirect.go
  180. indirect1.go
  181. init.go
  182. init1.go
  183. initcomma.go
  184. initempty.go
  185. initexp.go
  186. initialize.go
  187. initializerr.go
  188. initloop.go
  189. inline.go
  190. inline_big.go
  191. inline_caller.go
  192. inline_callers.go
  193. inline_literal.go
  194. inline_math_bits_rotate.go
  195. inline_sync.go
  196. inline_variadic.go
  197. int_lit.go
  198. intcvt.go
  199. intrinsic.go
  200. intrinsic_atomic.go
  201. iota.go
  202. label.go
  203. label1.go
  204. linkmain.go
  205. linkmain_run.go
  206. linkname.go
  207. linkname2.go
  208. linkobj.go
  209. linkx.go
  210. linkx_run.go
  211. literal.go
  212. literal2.go
  213. live.go
  214. live1.go
  215. live2.go
  216. live_regabi.go
  217. live_syscall.go
  218. locklinear.go
  219. loopbce.go
  220. mainsig.go
  221. makechan.go
  222. makemap.go
  223. makenew.go
  224. makeslice.go
  225. mallocfin.go
  226. map.go
  227. map1.go
  228. mapclear.go
  229. maplinear.go
  230. mergemul.go
  231. method.go
  232. method1.go
  233. method2.go
  234. method3.go
  235. method4.go
  236. method5.go
  237. method6.go
  238. method7.go
  239. named.go
  240. named1.go
  241. nil.go
  242. nilcheck.go
  243. nilptr.go
  244. nilptr2.go
  245. nilptr3.go
  246. nilptr4.go
  247. nilptr5.go
  248. nilptr5_aix.go
  249. nilptr5_wasm.go
  250. nilptr_aix.go
  251. nosplit.go
  252. notinheap.go
  253. notinheap2.go
  254. notinheap3.go
  255. nowritebarrier.go
  256. nul1.go
  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.go
  286. return.go
  287. rotate.go
  288. rotate0.go
  289. rotate1.go
  290. rotate2.go
  291. rotate3.go
  292. run.go
  293. rune.go
  294. runtime.go
  295. shift1.go
  296. shift2.go
  297. sieve.go
  298. sigchld.go
  299. sigchld.out
  300. simassign.go
  301. sinit.go
  302. sinit_run.go
  303. sizeof.go
  304. slice3.go
  305. slice3err.go
  306. slicecap.go
  307. sliceopt.go
  308. solitaire.go
  309. stack.go
  310. stackobj.go
  311. stackobj2.go
  312. stackobj3.go
  313. strcopy.go
  314. strength.go
  315. string_lit.go
  316. stringrange.go
  317. struct0.go
  318. switch.go
  319. switch2.go
  320. switch3.go
  321. switch4.go
  322. switch5.go
  323. switch6.go
  324. switch7.go
  325. tinyfin.go
  326. torture.go
  327. turing.go
  328. typecheck.go
  329. typecheckloop.go
  330. typeswitch.go
  331. typeswitch1.go
  332. typeswitch2.go
  333. typeswitch2b.go
  334. typeswitch3.go
  335. uintptrescapes.go
  336. uintptrescapes2.go
  337. uintptrescapes3.go
  338. undef.go
  339. unsafebuiltins.go
  340. used.go
  341. utf.go
  342. varerr.go
  343. varinit.go
  344. winbatch.go
  345. writebarrier.go
  346. 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.