tree: 4a3c7b69ea5c55e662f27d226c4c002634d51388 [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. README.md
  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. convT2X.go
  80. convert.go
  81. convert1.go
  82. convert2.go
  83. convert3.go
  84. convlit.go
  85. convlit1.go
  86. copy.go
  87. copy1.go
  88. crlf.go
  89. ddd.go
  90. ddd1.go
  91. ddd2.go
  92. decl.go
  93. declbad.go
  94. defer.go
  95. defererrcheck.go
  96. deferfin.go
  97. defernil.go
  98. deferprint.go
  99. deferprint.out
  100. devirt.go
  101. directive.go
  102. divide.go
  103. divmod.go
  104. embedfunc.go
  105. embedvers.go
  106. empty.go
  107. env.go
  108. eof.go
  109. eof1.go
  110. escape.go
  111. escape2.go
  112. escape2n.go
  113. escape3.go
  114. escape4.go
  115. escape5.go
  116. escape_array.go
  117. escape_calls.go
  118. escape_closure.go
  119. escape_field.go
  120. escape_goto.go
  121. escape_hash_maphash.go
  122. escape_iface.go
  123. escape_indir.go
  124. escape_level.go
  125. escape_map.go
  126. escape_param.go
  127. escape_runtime_atomic.go
  128. escape_selfassign.go
  129. escape_slice.go
  130. escape_struct_param1.go
  131. escape_struct_param2.go
  132. escape_struct_return.go
  133. escape_sync_atomic.go
  134. escape_unsafe.go
  135. fibo.go
  136. finprofiled.go
  137. float_lit.go
  138. float_lit2.go
  139. float_lit3.go
  140. floatcmp.go
  141. for.go
  142. func.go
  143. func1.go
  144. func2.go
  145. func3.go
  146. func4.go
  147. func5.go
  148. func6.go
  149. func7.go
  150. func8.go
  151. funcdup.go
  152. funcdup2.go
  153. gc.go
  154. gc1.go
  155. gc2.go
  156. gcgort.go
  157. gcstring.go
  158. goprint.go
  159. goprint.out
  160. goto.go
  161. heapsampling.go
  162. helloworld.go
  163. helloworld.out
  164. if.go
  165. import.go
  166. import1.go
  167. import2.go
  168. import4.go
  169. import5.go
  170. import6.go
  171. index.go
  172. index0.go
  173. index1.go
  174. index2.go
  175. indirect.go
  176. indirect1.go
  177. init.go
  178. init1.go
  179. initcomma.go
  180. initempty.go
  181. initexp.go
  182. initialize.go
  183. initializerr.go
  184. initloop.go
  185. inline.go
  186. inline_big.go
  187. inline_caller.go
  188. inline_callers.go
  189. inline_literal.go
  190. inline_math_bits_rotate.go
  191. inline_sync.go
  192. inline_variadic.go
  193. int_lit.go
  194. intcvt.go
  195. intrinsic.go
  196. intrinsic_atomic.go
  197. iota.go
  198. label.go
  199. label1.go
  200. linkmain.go
  201. linkmain_run.go
  202. linkname.go
  203. linkname2.go
  204. linkobj.go
  205. linkx.go
  206. linkx_run.go
  207. literal.go
  208. literal2.go
  209. live.go
  210. live1.go
  211. live2.go
  212. live_syscall.go
  213. locklinear.go
  214. loopbce.go
  215. mainsig.go
  216. makechan.go
  217. makemap.go
  218. makenew.go
  219. makeslice.go
  220. mallocfin.go
  221. map.go
  222. map1.go
  223. mapclear.go
  224. maplinear.go
  225. mergemul.go
  226. method.go
  227. method1.go
  228. method2.go
  229. method3.go
  230. method4.go
  231. method5.go
  232. method6.go
  233. method7.go
  234. named.go
  235. named1.go
  236. nil.go
  237. nilcheck.go
  238. nilptr.go
  239. nilptr2.go
  240. nilptr3.go
  241. nilptr4.go
  242. nilptr5.go
  243. nilptr5_aix.go
  244. nilptr5_wasm.go
  245. nilptr_aix.go
  246. nosplit.go
  247. notinheap.go
  248. notinheap2.go
  249. notinheap3.go
  250. nowritebarrier.go
  251. nul1.go
  252. opt_branchlikely.go
  253. parentype.go
  254. peano.go
  255. phiopt.go
  256. print.go
  257. print.out
  258. printbig.go
  259. printbig.out
  260. prove.go
  261. range.go
  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.