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