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