tree: 6b58d0d0b7e0bfbc56c71987c20f1c714595bed8 [path history] [tgz]
  1. abi/
  2. alias3.dir/
  3. asmhdr.dir/
  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. retjmp.dir/
  19. runtime/
  20. stress/
  21. syntax/
  22. typeparam/
  23. uintptrescapes.dir/
  24. 235.go
  25. 64bit.go
  26. alg.go
  27. alias.go
  28. alias1.go
  29. alias2.go
  30. alias3.go
  31. align.go
  32. append.go
  33. append1.go
  34. args.go
  35. armimm.go
  36. asmhdr.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. clear.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. convinline.go
  88. convlit.go
  89. convlit1.go
  90. convT2X.go
  91. copy.go
  92. copy1.go
  93. crlf.go
  94. ddd.go
  95. ddd1.go
  96. ddd2.go
  97. decl.go
  98. declbad.go
  99. defer.go
  100. defererrcheck.go
  101. deferfin.go
  102. defernil.go
  103. deferprint.go
  104. deferprint.out
  105. devirt.go
  106. directive.go
  107. directive2.go
  108. divide.go
  109. divmod.go
  110. embedfunc.go
  111. embedvers.go
  112. empty.go
  113. env.go
  114. eof.go
  115. eof1.go
  116. escape.go
  117. escape2.go
  118. escape2n.go
  119. escape3.go
  120. escape4.go
  121. escape5.go
  122. escape_array.go
  123. escape_calls.go
  124. escape_closure.go
  125. escape_field.go
  126. escape_goto.go
  127. escape_hash_maphash.go
  128. escape_iface.go
  129. escape_indir.go
  130. escape_level.go
  131. escape_map.go
  132. escape_param.go
  133. escape_reflect.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. initexp.go
  189. initialize.go
  190. initializerr.go
  191. initloop.go
  192. inline.go
  193. inline_big.go
  194. inline_caller.go
  195. inline_callers.go
  196. inline_endian.go
  197. inline_literal.go
  198. inline_math_bits_rotate.go
  199. inline_sync.go
  200. inline_variadic.go
  201. int_lit.go
  202. intcvt.go
  203. intrinsic.go
  204. intrinsic_atomic.go
  205. iota.go
  206. label.go
  207. label1.go
  208. linkmain.go
  209. linkmain_run.go
  210. linkname.go
  211. linkname3.go
  212. linkobj.go
  213. linkx.go
  214. linkx_run.go
  215. literal.go
  216. literal2.go
  217. live.go
  218. live1.go
  219. live2.go
  220. live_regabi.go
  221. live_uintptrkeepalive.go
  222. loopbce.go
  223. mainsig.go
  224. makechan.go
  225. makemap.go
  226. makenew.go
  227. makeslice.go
  228. mallocfin.go
  229. map.go
  230. map1.go
  231. mapclear.go
  232. maplinear.go
  233. maymorestack.go
  234. mergemul.go
  235. method.go
  236. method1.go
  237. method2.go
  238. method3.go
  239. method4.go
  240. method5.go
  241. method6.go
  242. method7.go
  243. named.go
  244. named1.go
  245. nil.go
  246. nilcheck.go
  247. nilptr.go
  248. nilptr2.go
  249. nilptr3.go
  250. nilptr4.go
  251. nilptr5.go
  252. nilptr5_aix.go
  253. nilptr5_wasm.go
  254. nilptr_aix.go
  255. noinit.go
  256. nosplit.go
  257. nowritebarrier.go
  258. nul1.go
  259. opt_branchlikely.go
  260. parentype.go
  261. peano.go
  262. phiopt.go
  263. print.go
  264. print.out
  265. printbig.go
  266. printbig.out
  267. prove.go
  268. prove_constant_folding.go
  269. range.go
  270. README.md
  271. recover.go
  272. recover1.go
  273. recover2.go
  274. recover3.go
  275. recover4.go
  276. recover5.go
  277. reflectmethod1.go
  278. reflectmethod2.go
  279. reflectmethod3.go
  280. reflectmethod4.go
  281. reflectmethod5.go
  282. reflectmethod6.go
  283. reflectmethod7.go
  284. reflectmethod8.go
  285. rename.go
  286. rename1.go
  287. reorder.go
  288. reorder2.go
  289. retjmp.go
  290. return.go
  291. rotate.go
  292. rotate0.go
  293. rotate1.go
  294. rotate2.go
  295. rotate3.go
  296. rune.go
  297. runtime.go
  298. shift1.go
  299. shift2.go
  300. shift3.go
  301. sieve.go
  302. sigchld.go
  303. sigchld.out
  304. simassign.go
  305. sizeof.go
  306. slice3.go
  307. slice3err.go
  308. slicecap.go
  309. sliceopt.go
  310. solitaire.go
  311. stack.go
  312. stackobj.go
  313. stackobj2.go
  314. stackobj3.go
  315. strcopy.go
  316. strength.go
  317. string_lit.go
  318. stringrange.go
  319. struct0.go
  320. switch.go
  321. switch2.go
  322. switch3.go
  323. switch4.go
  324. switch5.go
  325. switch6.go
  326. switch7.go
  327. tighten.go
  328. tinyfin.go
  329. torture.go
  330. turing.go
  331. typecheck.go
  332. typecheckloop.go
  333. typeswitch.go
  334. typeswitch1.go
  335. typeswitch2.go
  336. typeswitch2b.go
  337. typeswitch3.go
  338. uintptrescapes.go
  339. uintptrescapes2.go
  340. uintptrescapes3.go
  341. uintptrkeepalive.go
  342. undef.go
  343. unsafe_slice_data.go
  344. unsafe_string.go
  345. unsafe_string_data.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
  354. zerosize.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 test cmd/internal/testdir

To run just tests from specified files in this directory, execute:

../bin/go test cmd/internal/testdir -run='Test/(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.