tree: 6255355d6553bce609bee718b2e137b5ae46805c [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. 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. assign.go
  38. assign1.go
  39. atomicload.go
  40. bigalg.go
  41. bigmap.go
  42. blank.go
  43. blank1.go
  44. bom.go
  45. bombad.go
  46. bounds.go
  47. cannotassign.go
  48. chancap.go
  49. chanlinear.go
  50. char_lit.go
  51. char_lit1.go
  52. checkbce.go
  53. clearfat.go
  54. closedchan.go
  55. closure.go
  56. closure1.go
  57. closure2.go
  58. closure3.go
  59. closure4.go
  60. closure5.go
  61. closure6.go
  62. closure7.go
  63. cmp.go
  64. cmp6.go
  65. cmplx.go
  66. cmplxdivide.c
  67. cmplxdivide.go
  68. cmplxdivide1.go
  69. complit.go
  70. complit1.go
  71. compos.go
  72. const.go
  73. const1.go
  74. const2.go
  75. const3.go
  76. const4.go
  77. const5.go
  78. const6.go
  79. const7.go
  80. convert.go
  81. convert1.go
  82. convert2.go
  83. convert3.go
  84. convert4.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. fuse.go
  156. gc.go
  157. gc1.go
  158. gc2.go
  159. gcgort.go
  160. gcstring.go
  161. goprint.go
  162. goprint.out
  163. goto.go
  164. heapsampling.go
  165. helloworld.go
  166. helloworld.out
  167. if.go
  168. import.go
  169. import1.go
  170. import2.go
  171. import4.go
  172. import5.go
  173. import6.go
  174. index.go
  175. index0.go
  176. index1.go
  177. index2.go
  178. indirect.go
  179. indirect1.go
  180. init.go
  181. init1.go
  182. initcomma.go
  183. initempty.go
  184. initexp.go
  185. initialize.go
  186. initializerr.go
  187. initloop.go
  188. inline.go
  189. inline_big.go
  190. inline_caller.go
  191. inline_callers.go
  192. inline_literal.go
  193. inline_math_bits_rotate.go
  194. inline_sync.go
  195. inline_variadic.go
  196. int_lit.go
  197. intcvt.go
  198. intrinsic.go
  199. intrinsic_atomic.go
  200. iota.go
  201. label.go
  202. label1.go
  203. linkmain.go
  204. linkmain_run.go
  205. linkname.go
  206. linkname2.go
  207. linkobj.go
  208. linkx.go
  209. linkx_run.go
  210. literal.go
  211. literal2.go
  212. live.go
  213. live1.go
  214. live2.go
  215. live_regabi.go
  216. live_syscall.go
  217. locklinear.go
  218. loopbce.go
  219. mainsig.go
  220. makechan.go
  221. makemap.go
  222. makenew.go
  223. makeslice.go
  224. mallocfin.go
  225. map.go
  226. map1.go
  227. mapclear.go
  228. maplinear.go
  229. mergemul.go
  230. method.go
  231. method1.go
  232. method2.go
  233. method3.go
  234. method4.go
  235. method5.go
  236. method6.go
  237. method7.go
  238. named.go
  239. named1.go
  240. nil.go
  241. nilcheck.go
  242. nilptr.go
  243. nilptr2.go
  244. nilptr3.go
  245. nilptr4.go
  246. nilptr5.go
  247. nilptr5_aix.go
  248. nilptr5_wasm.go
  249. nilptr_aix.go
  250. nosplit.go
  251. notinheap.go
  252. notinheap2.go
  253. notinheap3.go
  254. nowritebarrier.go
  255. nul1.go
  256. opt_branchlikely.go
  257. parentype.go
  258. peano.go
  259. phiopt.go
  260. print.go
  261. print.out
  262. printbig.go
  263. printbig.out
  264. prove.go
  265. range.go
  266. README.md
  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. rename.go
  281. rename1.go
  282. reorder.go
  283. reorder2.go
  284. retjmp.go
  285. return.go
  286. rotate.go
  287. rotate0.go
  288. rotate1.go
  289. rotate2.go
  290. rotate3.go
  291. run.go
  292. rune.go
  293. runtime.go
  294. shift1.go
  295. shift2.go
  296. sieve.go
  297. sigchld.go
  298. sigchld.out
  299. simassign.go
  300. sinit.go
  301. sinit_run.go
  302. sizeof.go
  303. slice3.go
  304. slice3err.go
  305. slicecap.go
  306. sliceopt.go
  307. solitaire.go
  308. stack.go
  309. stackobj.go
  310. stackobj2.go
  311. stackobj3.go
  312. strcopy.go
  313. strength.go
  314. string_lit.go
  315. stringrange.go
  316. struct0.go
  317. switch.go
  318. switch2.go
  319. switch3.go
  320. switch4.go
  321. switch5.go
  322. switch6.go
  323. switch7.go
  324. tinyfin.go
  325. torture.go
  326. turing.go
  327. typecheck.go
  328. typecheckloop.go
  329. typeswitch.go
  330. typeswitch1.go
  331. typeswitch2.go
  332. typeswitch2b.go
  333. typeswitch3.go
  334. uintptrescapes.go
  335. uintptrescapes2.go
  336. uintptrescapes3.go
  337. undef.go
  338. unsafebuiltins.go
  339. used.go
  340. utf.go
  341. varerr.go
  342. varinit.go
  343. winbatch.go
  344. writebarrier.go
  345. 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.