tree: b24f02837a9fd3b13704c2a8ce5808ac4134a5cd [path history] [tgz]
  1. abi/
  2. alias3.dir/
  3. asmhdr.dir/
  4. bench/
  5. chan/
  6. closure3.dir/
  7. closure5.dir/
  8. codegen/
  9. ddd2.dir/
  10. dwarf/
  11. fixedbugs/
  12. import2.dir/
  13. import4.dir/
  14. interface/
  15. intrinsic.dir/
  16. ken/
  17. linkname.dir/
  18. method4.dir/
  19. retjmp.dir/
  20. runtime/
  21. stress/
  22. syntax/
  23. typeparam/
  24. uintptrescapes.dir/
  25. 235.go
  26. 64bit.go
  27. alg.go
  28. alias.go
  29. alias1.go
  30. alias2.go
  31. alias3.go
  32. align.go
  33. append.go
  34. append1.go
  35. args.go
  36. armimm.go
  37. asmhdr.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. const8.go
  82. convert.go
  83. convert1.go
  84. convert2.go
  85. convert3.go
  86. convert4.go
  87. convlit.go
  88. convlit1.go
  89. convT2X.go
  90. copy.go
  91. copy1.go
  92. crlf.go
  93. ddd.go
  94. ddd1.go
  95. ddd2.go
  96. decl.go
  97. declbad.go
  98. defer.go
  99. defererrcheck.go
  100. deferfin.go
  101. defernil.go
  102. deferprint.go
  103. deferprint.out
  104. devirt.go
  105. directive.go
  106. directive2.go
  107. divide.go
  108. divmod.go
  109. embedfunc.go
  110. embedvers.go
  111. empty.go
  112. env.go
  113. eof.go
  114. eof1.go
  115. escape.go
  116. escape2.go
  117. escape2n.go
  118. escape3.go
  119. escape4.go
  120. escape5.go
  121. escape_array.go
  122. escape_calls.go
  123. escape_closure.go
  124. escape_field.go
  125. escape_goto.go
  126. escape_hash_maphash.go
  127. escape_iface.go
  128. escape_iface_nounified.go
  129. escape_iface_unified.go
  130. escape_indir.go
  131. escape_level.go
  132. escape_map.go
  133. escape_param.go
  134. escape_runtime_atomic.go
  135. escape_selfassign.go
  136. escape_slice.go
  137. escape_struct_param1.go
  138. escape_struct_param2.go
  139. escape_struct_return.go
  140. escape_sync_atomic.go
  141. escape_unsafe.go
  142. fibo.go
  143. finprofiled.go
  144. float_lit.go
  145. float_lit2.go
  146. float_lit3.go
  147. floatcmp.go
  148. for.go
  149. func.go
  150. func1.go
  151. func2.go
  152. func3.go
  153. func4.go
  154. func5.go
  155. func6.go
  156. func7.go
  157. func8.go
  158. funcdup.go
  159. funcdup2.go
  160. fuse.go
  161. gc.go
  162. gc1.go
  163. gc2.go
  164. gcgort.go
  165. gcstring.go
  166. goprint.go
  167. goprint.out
  168. goto.go
  169. heapsampling.go
  170. helloworld.go
  171. helloworld.out
  172. if.go
  173. import.go
  174. import1.go
  175. import2.go
  176. import4.go
  177. import5.go
  178. import6.go
  179. index.go
  180. index0.go
  181. index1.go
  182. index2.go
  183. indirect.go
  184. indirect1.go
  185. init.go
  186. init1.go
  187. initcomma.go
  188. initempty.go
  189. initexp.go
  190. initialize.go
  191. initializerr.go
  192. initloop.go
  193. inline.go
  194. inline_big.go
  195. inline_caller.go
  196. inline_callers.go
  197. inline_endian.go
  198. inline_literal.go
  199. inline_math_bits_rotate.go
  200. inline_nounified.go
  201. inline_sync.go
  202. inline_unified.go
  203. inline_variadic.go
  204. int_lit.go
  205. intcvt.go
  206. intrinsic.go
  207. intrinsic_atomic.go
  208. iota.go
  209. label.go
  210. label1.go
  211. linkmain.go
  212. linkmain_run.go
  213. linkname.go
  214. linkname3.go
  215. linkobj.go
  216. linkx.go
  217. linkx_run.go
  218. literal.go
  219. literal2.go
  220. live.go
  221. live1.go
  222. live2.go
  223. live_regabi.go
  224. live_uintptrkeepalive.go
  225. loopbce.go
  226. mainsig.go
  227. makechan.go
  228. makemap.go
  229. makenew.go
  230. makeslice.go
  231. mallocfin.go
  232. map.go
  233. map1.go
  234. mapclear.go
  235. maplinear.go
  236. maymorestack.go
  237. mergemul.go
  238. method.go
  239. method1.go
  240. method2.go
  241. method3.go
  242. method4.go
  243. method5.go
  244. method6.go
  245. method7.go
  246. named.go
  247. named1.go
  248. nil.go
  249. nilcheck.go
  250. nilptr.go
  251. nilptr2.go
  252. nilptr3.go
  253. nilptr4.go
  254. nilptr5.go
  255. nilptr5_aix.go
  256. nilptr5_wasm.go
  257. nilptr_aix.go
  258. nosplit.go
  259. notinheap.go
  260. notinheap2.go
  261. notinheap3.go
  262. nowritebarrier.go
  263. nul1.go
  264. opt_branchlikely.go
  265. parentype.go
  266. peano.go
  267. phiopt.go
  268. print.go
  269. print.out
  270. printbig.go
  271. printbig.out
  272. prove.go
  273. prove_constant_folding.go
  274. range.go
  275. README.md
  276. recover.go
  277. recover1.go
  278. recover2.go
  279. recover3.go
  280. recover4.go
  281. recover5.go
  282. reflectmethod1.go
  283. reflectmethod2.go
  284. reflectmethod3.go
  285. reflectmethod4.go
  286. reflectmethod5.go
  287. reflectmethod6.go
  288. reflectmethod7.go
  289. reflectmethod8.go
  290. rename.go
  291. rename1.go
  292. reorder.go
  293. reorder2.go
  294. retjmp.go
  295. return.go
  296. rotate.go
  297. rotate0.go
  298. rotate1.go
  299. rotate2.go
  300. rotate3.go
  301. run.go
  302. rune.go
  303. runtime.go
  304. shift1.go
  305. shift2.go
  306. shift3.go
  307. sieve.go
  308. sigchld.go
  309. sigchld.out
  310. simassign.go
  311. sinit.go
  312. sinit_run.go
  313. sizeof.go
  314. slice3.go
  315. slice3err.go
  316. slicecap.go
  317. sliceopt.go
  318. solitaire.go
  319. stack.go
  320. stackobj.go
  321. stackobj2.go
  322. stackobj3.go
  323. strcopy.go
  324. strength.go
  325. string_lit.go
  326. stringrange.go
  327. struct0.go
  328. switch.go
  329. switch2.go
  330. switch3.go
  331. switch4.go
  332. switch5.go
  333. switch6.go
  334. switch7.go
  335. tinyfin.go
  336. torture.go
  337. turing.go
  338. typecheck.go
  339. typecheckloop.go
  340. typeswitch.go
  341. typeswitch1.go
  342. typeswitch2.go
  343. typeswitch2b.go
  344. typeswitch3.go
  345. uintptrescapes.go
  346. uintptrescapes2.go
  347. uintptrescapes3.go
  348. uintptrkeepalive.go
  349. undef.go
  350. unsafebuiltins.go
  351. used.go
  352. utf.go
  353. varerr.go
  354. varinit.go
  355. winbatch.go
  356. writebarrier.go
  357. 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.