tree: e251426e59abb9f90267914950f9acdab66f7159 [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. oldescape_linkname.dir/
  20. retjmp.dir/
  21. runtime/
  22. stress/
  23. syntax/
  24. typeparam/
  25. uintptrescapes.dir/
  26. 235.go
  27. 64bit.go
  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. asmhdr.go
  39. assign.go
  40. assign1.go
  41. atomicload.go
  42. bigalg.go
  43. bigmap.go
  44. blank.go
  45. blank1.go
  46. bom.go
  47. bombad.go
  48. bounds.go
  49. cannotassign.go
  50. chancap.go
  51. chanlinear.go
  52. char_lit.go
  53. char_lit1.go
  54. checkbce.go
  55. clearfat.go
  56. closedchan.go
  57. closure.go
  58. closure1.go
  59. closure2.go
  60. closure3.go
  61. closure4.go
  62. closure5.go
  63. closure6.go
  64. closure7.go
  65. cmp.go
  66. cmp6.go
  67. cmplx.go
  68. cmplxdivide.c
  69. cmplxdivide.go
  70. cmplxdivide1.go
  71. complit.go
  72. complit1.go
  73. compos.go
  74. const.go
  75. const1.go
  76. const2.go
  77. const3.go
  78. const4.go
  79. const5.go
  80. const6.go
  81. const7.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_indir.go
  129. escape_level.go
  130. escape_map.go
  131. escape_param.go
  132. escape_runtime_atomic.go
  133. escape_selfassign.go
  134. escape_slice.go
  135. escape_struct_param1.go
  136. escape_struct_param2.go
  137. escape_struct_return.go
  138. escape_sync_atomic.go
  139. escape_unsafe.go
  140. fibo.go
  141. finprofiled.go
  142. float_lit.go
  143. float_lit2.go
  144. float_lit3.go
  145. floatcmp.go
  146. for.go
  147. func.go
  148. func1.go
  149. func2.go
  150. func3.go
  151. func4.go
  152. func5.go
  153. func6.go
  154. func7.go
  155. func8.go
  156. funcdup.go
  157. funcdup2.go
  158. fuse.go
  159. gc.go
  160. gc1.go
  161. gc2.go
  162. gcgort.go
  163. gcstring.go
  164. goprint.go
  165. goprint.out
  166. goto.go
  167. heapsampling.go
  168. helloworld.go
  169. helloworld.out
  170. if.go
  171. import.go
  172. import1.go
  173. import2.go
  174. import4.go
  175. import5.go
  176. import6.go
  177. index.go
  178. index0.go
  179. index1.go
  180. index2.go
  181. indirect.go
  182. indirect1.go
  183. init.go
  184. init1.go
  185. initcomma.go
  186. initempty.go
  187. initexp.go
  188. initialize.go
  189. initializerr.go
  190. initloop.go
  191. inline.go
  192. inline_big.go
  193. inline_caller.go
  194. inline_callers.go
  195. inline_endian.go
  196. inline_literal.go
  197. inline_math_bits_rotate.go
  198. inline_sync.go
  199. inline_variadic.go
  200. int_lit.go
  201. intcvt.go
  202. intrinsic.go
  203. intrinsic_atomic.go
  204. iota.go
  205. label.go
  206. label1.go
  207. linkmain.go
  208. linkmain_run.go
  209. linkname.go
  210. linkname2.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_syscall.go
  222. locklinear.go
  223. loopbce.go
  224. mainsig.go
  225. makechan.go
  226. makemap.go
  227. makenew.go
  228. makeslice.go
  229. mallocfin.go
  230. map.go
  231. map1.go
  232. mapclear.go
  233. maplinear.go
  234. maymorestack.go
  235. mergemul.go
  236. method.go
  237. method1.go
  238. method2.go
  239. method3.go
  240. method4.go
  241. method5.go
  242. method6.go
  243. method7.go
  244. named.go
  245. named1.go
  246. nil.go
  247. nilcheck.go
  248. nilptr.go
  249. nilptr2.go
  250. nilptr3.go
  251. nilptr4.go
  252. nilptr5.go
  253. nilptr5_aix.go
  254. nilptr5_wasm.go
  255. nilptr_aix.go
  256. nosplit.go
  257. notinheap.go
  258. notinheap2.go
  259. notinheap3.go
  260. nowritebarrier.go
  261. nul1.go
  262. opt_branchlikely.go
  263. parentype.go
  264. peano.go
  265. phiopt.go
  266. print.go
  267. print.out
  268. printbig.go
  269. printbig.out
  270. prove.go
  271. range.go
  272. README.md
  273. recover.go
  274. recover1.go
  275. recover2.go
  276. recover3.go
  277. recover4.go
  278. recover5.go
  279. reflectmethod1.go
  280. reflectmethod2.go
  281. reflectmethod3.go
  282. reflectmethod4.go
  283. reflectmethod5.go
  284. reflectmethod6.go
  285. reflectmethod7.go
  286. reflectmethod8.go
  287. rename.go
  288. rename1.go
  289. reorder.go
  290. reorder2.go
  291. retjmp.go
  292. return.go
  293. rotate.go
  294. rotate0.go
  295. rotate1.go
  296. rotate2.go
  297. rotate3.go
  298. run.go
  299. rune.go
  300. runtime.go
  301. shift1.go
  302. shift2.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. undef.go
  345. unsafebuiltins.go
  346. used.go
  347. utf.go
  348. varerr.go
  349. varinit.go
  350. winbatch.go
  351. writebarrier.go
  352. 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.