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