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