tree: 8596a599f6ec5250ecba02b35350435bea4f12d2 [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. 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. assign.go
  37. assign1.go
  38. atomicload.go
  39. bigalg.go
  40. bigmap.go
  41. blank.go
  42. blank1.go
  43. bom.go
  44. bombad.go
  45. bounds.go
  46. cannotassign.go
  47. chancap.go
  48. chanlinear.go
  49. char_lit.go
  50. char_lit1.go
  51. checkbce.go
  52. clearfat.go
  53. closedchan.go
  54. closure.go
  55. closure1.go
  56. closure2.go
  57. closure3.go
  58. closure4.go
  59. closure5.go
  60. closure6.go
  61. closure7.go
  62. cmp.go
  63. cmp6.go
  64. cmplx.go
  65. cmplxdivide.c
  66. cmplxdivide.go
  67. cmplxdivide1.go
  68. complit.go
  69. complit1.go
  70. compos.go
  71. const.go
  72. const1.go
  73. const2.go
  74. const3.go
  75. const4.go
  76. const5.go
  77. const6.go
  78. convert.go
  79. convert1.go
  80. convert2.go
  81. convert3.go
  82. convlit.go
  83. convlit1.go
  84. convT2X.go
  85. copy.go
  86. copy1.go
  87. crlf.go
  88. ddd.go
  89. ddd1.go
  90. ddd2.go
  91. decl.go
  92. declbad.go
  93. defer.go
  94. defererrcheck.go
  95. deferfin.go
  96. defernil.go
  97. deferprint.go
  98. deferprint.out
  99. devirt.go
  100. directive.go
  101. divide.go
  102. divmod.go
  103. embedfunc.go
  104. embedvers.go
  105. empty.go
  106. env.go
  107. eof.go
  108. eof1.go
  109. escape.go
  110. escape2.go
  111. escape2n.go
  112. escape3.go
  113. escape4.go
  114. escape5.go
  115. escape_array.go
  116. escape_calls.go
  117. escape_closure.go
  118. escape_field.go
  119. escape_goto.go
  120. escape_hash_maphash.go
  121. escape_iface.go
  122. escape_indir.go
  123. escape_level.go
  124. escape_map.go
  125. escape_param.go
  126. escape_runtime_atomic.go
  127. escape_selfassign.go
  128. escape_slice.go
  129. escape_struct_param1.go
  130. escape_struct_param2.go
  131. escape_struct_return.go
  132. escape_sync_atomic.go
  133. escape_unsafe.go
  134. fibo.go
  135. finprofiled.go
  136. float_lit.go
  137. float_lit2.go
  138. float_lit3.go
  139. floatcmp.go
  140. for.go
  141. func.go
  142. func1.go
  143. func2.go
  144. func3.go
  145. func4.go
  146. func5.go
  147. func6.go
  148. func7.go
  149. func8.go
  150. funcdup.go
  151. funcdup2.go
  152. gc.go
  153. gc1.go
  154. gc2.go
  155. gcgort.go
  156. gcstring.go
  157. goprint.go
  158. goprint.out
  159. goto.go
  160. heapsampling.go
  161. helloworld.go
  162. helloworld.out
  163. if.go
  164. import.go
  165. import1.go
  166. import2.go
  167. import4.go
  168. import5.go
  169. import6.go
  170. index.go
  171. index0.go
  172. index1.go
  173. index2.go
  174. indirect.go
  175. indirect1.go
  176. init.go
  177. init1.go
  178. initcomma.go
  179. initempty.go
  180. initexp.go
  181. initialize.go
  182. initializerr.go
  183. initloop.go
  184. inline.go
  185. inline_big.go
  186. inline_caller.go
  187. inline_callers.go
  188. inline_literal.go
  189. inline_math_bits_rotate.go
  190. inline_sync.go
  191. inline_variadic.go
  192. int_lit.go
  193. intcvt.go
  194. intrinsic.go
  195. intrinsic_atomic.go
  196. iota.go
  197. label.go
  198. label1.go
  199. linkmain.go
  200. linkmain_run.go
  201. linkname.go
  202. linkname2.go
  203. linkobj.go
  204. linkx.go
  205. linkx_run.go
  206. literal.go
  207. literal2.go
  208. live.go
  209. live1.go
  210. live2.go
  211. live_syscall.go
  212. locklinear.go
  213. loopbce.go
  214. mainsig.go
  215. makechan.go
  216. makemap.go
  217. makenew.go
  218. makeslice.go
  219. mallocfin.go
  220. map.go
  221. map1.go
  222. mapclear.go
  223. maplinear.go
  224. mergemul.go
  225. method.go
  226. method1.go
  227. method2.go
  228. method3.go
  229. method4.go
  230. method5.go
  231. method6.go
  232. method7.go
  233. named.go
  234. named1.go
  235. nil.go
  236. nilcheck.go
  237. nilptr.go
  238. nilptr2.go
  239. nilptr3.go
  240. nilptr4.go
  241. nilptr5.go
  242. nilptr5_aix.go
  243. nilptr5_wasm.go
  244. nilptr_aix.go
  245. nosplit.go
  246. notinheap.go
  247. notinheap2.go
  248. notinheap3.go
  249. nowritebarrier.go
  250. nul1.go
  251. opt_branchlikely.go
  252. parentype.go
  253. peano.go
  254. phiopt.go
  255. print.go
  256. print.out
  257. printbig.go
  258. printbig.out
  259. prove.go
  260. range.go
  261. README.md
  262. recover.go
  263. recover1.go
  264. recover2.go
  265. recover3.go
  266. recover4.go
  267. recover5.go
  268. reflectmethod1.go
  269. reflectmethod2.go
  270. reflectmethod3.go
  271. reflectmethod4.go
  272. reflectmethod5.go
  273. reflectmethod6.go
  274. reflectmethod7.go
  275. rename.go
  276. rename1.go
  277. reorder.go
  278. reorder2.go
  279. retjmp.go
  280. return.go
  281. rotate.go
  282. rotate0.go
  283. rotate1.go
  284. rotate2.go
  285. rotate3.go
  286. run.go
  287. rune.go
  288. runtime.go
  289. shift1.go
  290. shift2.go
  291. sieve.go
  292. sigchld.go
  293. sigchld.out
  294. simassign.go
  295. sinit.go
  296. sinit_run.go
  297. sizeof.go
  298. slice3.go
  299. slice3err.go
  300. slicecap.go
  301. sliceopt.go
  302. solitaire.go
  303. stack.go
  304. stackobj.go
  305. stackobj2.go
  306. stackobj3.go
  307. strcopy.go
  308. strength.go
  309. string_lit.go
  310. stringrange.go
  311. struct0.go
  312. switch.go
  313. switch2.go
  314. switch3.go
  315. switch4.go
  316. switch5.go
  317. switch6.go
  318. switch7.go
  319. tinyfin.go
  320. torture.go
  321. turing.go
  322. typecheck.go
  323. typecheckloop.go
  324. typeswitch.go
  325. typeswitch1.go
  326. typeswitch2.go
  327. typeswitch2b.go
  328. typeswitch3.go
  329. uintptrescapes.go
  330. uintptrescapes2.go
  331. uintptrescapes3.go
  332. undef.go
  333. used.go
  334. utf.go
  335. varerr.go
  336. varinit.go
  337. winbatch.go
  338. writebarrier.go
  339. 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.