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