tree: 9e7756ec8e3257ec7260df4136ec91b3bfc5d0f9 [path history] [tgz]
  1. alias3.dir/
  2. bench/
  3. chan/
  4. closure3.dir/
  5. codegen/
  6. ddd2.dir/
  7. dwarf/
  8. fixedbugs/
  9. gen/
  10. import2.dir/
  11. import4.dir/
  12. interface/
  13. intrinsic.dir/
  14. ken/
  15. linkname.dir/
  16. method4.dir/
  17. oldescape_linkname.dir/
  18. retjmp.dir/
  19. runtime/
  20. stress/
  21. syntax/
  22. typeparam/
  23. uintptrescapes.dir/
  24. 235.go
  25. 64bit.go
  26. alg.go
  27. alias.go
  28. alias1.go
  29. alias2.go
  30. alias3.go
  31. align.go
  32. append.go
  33. append1.go
  34. args.go
  35. armimm.go
  36. assign.go
  37. assign1.go
  38. atomicload.go
  39. bigalg.go
  40. bigmap.go
  41. blank.go
  42. blank1.go
  43. bom.go
  44. bombad.go
  45. bounds.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. convert.go
  75. convert1.go
  76. convert2.go
  77. convert3.go
  78. convlit.go
  79. convlit1.go
  80. convT2X.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. empty.go
  100. env.go
  101. eof.go
  102. eof1.go
  103. escape.go
  104. escape2.go
  105. escape2n.go
  106. escape3.go
  107. escape4.go
  108. escape5.go
  109. escape_array.go
  110. escape_calls.go
  111. escape_closure.go
  112. escape_field.go
  113. escape_goto.go
  114. escape_hash_maphash.go
  115. escape_iface.go
  116. escape_indir.go
  117. escape_level.go
  118. escape_map.go
  119. escape_param.go
  120. escape_runtime_atomic.go
  121. escape_selfassign.go
  122. escape_slice.go
  123. escape_struct_param1.go
  124. escape_struct_param2.go
  125. escape_struct_return.go
  126. escape_sync_atomic.go
  127. escape_unsafe.go
  128. fibo.go
  129. finprofiled.go
  130. float_lit.go
  131. float_lit2.go
  132. float_lit3.go
  133. floatcmp.go
  134. for.go
  135. func.go
  136. func1.go
  137. func2.go
  138. func3.go
  139. func4.go
  140. func5.go
  141. func6.go
  142. func7.go
  143. func8.go
  144. funcdup.go
  145. funcdup2.go
  146. gc.go
  147. gc1.go
  148. gc2.go
  149. gcgort.go
  150. gcstring.go
  151. goprint.go
  152. goprint.out
  153. goto.go
  154. heapsampling.go
  155. helloworld.go
  156. helloworld.out
  157. if.go
  158. import.go
  159. import1.go
  160. import2.go
  161. import4.go
  162. import5.go
  163. import6.go
  164. index.go
  165. index0.go
  166. index1.go
  167. index2.go
  168. indirect.go
  169. indirect1.go
  170. init.go
  171. init1.go
  172. initcomma.go
  173. initempty.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

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.