tree: 271de548140e0fb348b706e32bb8e52ca7f2a54b [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. initialize.go
  174. initializerr.go
  175. initloop.go
  176. inline.go
  177. inline_big.go
  178. inline_caller.go
  179. inline_callers.go
  180. inline_literal.go
  181. inline_math_bits_rotate.go
  182. inline_sync.go
  183. inline_variadic.go
  184. int_lit.go
  185. intcvt.go
  186. intrinsic.go
  187. intrinsic_atomic.go
  188. iota.go
  189. label.go
  190. label1.go
  191. linkmain.go
  192. linkmain_run.go
  193. linkname.go
  194. linkobj.go
  195. linkx.go
  196. linkx_run.go
  197. literal.go
  198. literal2.go
  199. live.go
  200. live1.go
  201. live2.go
  202. live_syscall.go
  203. locklinear.go
  204. loopbce.go
  205. makechan.go
  206. makemap.go
  207. makenew.go
  208. makeslice.go
  209. mallocfin.go
  210. map.go
  211. map1.go
  212. mapclear.go
  213. maplinear.go
  214. mergemul.go
  215. method.go
  216. method1.go
  217. method2.go
  218. method3.go
  219. method4.go
  220. method5.go
  221. method6.go
  222. method7.go
  223. named.go
  224. named1.go
  225. nil.go
  226. nilcheck.go
  227. nilptr.go
  228. nilptr2.go
  229. nilptr3.go
  230. nilptr4.go
  231. nilptr5.go
  232. nilptr5_aix.go
  233. nilptr5_wasm.go
  234. nilptr_aix.go
  235. nosplit.go
  236. notinheap.go
  237. notinheap2.go
  238. notinheap3.go
  239. nowritebarrier.go
  240. nul1.go
  241. opt_branchlikely.go
  242. parentype.go
  243. peano.go
  244. phiopt.go
  245. print.go
  246. print.out
  247. printbig.go
  248. printbig.out
  249. prove.go
  250. range.go
  251. README.md
  252. recover.go
  253. recover1.go
  254. recover2.go
  255. recover3.go
  256. recover4.go
  257. recover5.go
  258. reflectmethod1.go
  259. reflectmethod2.go
  260. reflectmethod3.go
  261. reflectmethod4.go
  262. reflectmethod5.go
  263. reflectmethod6.go
  264. rename.go
  265. rename1.go
  266. reorder.go
  267. reorder2.go
  268. retjmp.go
  269. return.go
  270. rotate.go
  271. rotate0.go
  272. rotate1.go
  273. rotate2.go
  274. rotate3.go
  275. run.go
  276. rune.go
  277. runtime.go
  278. shift1.go
  279. shift2.go
  280. sieve.go
  281. sigchld.go
  282. sigchld.out
  283. simassign.go
  284. sinit.go
  285. sinit_run.go
  286. sizeof.go
  287. slice3.go
  288. slice3err.go
  289. slicecap.go
  290. sliceopt.go
  291. solitaire.go
  292. stack.go
  293. stackobj.go
  294. stackobj2.go
  295. stackobj3.go
  296. strcopy.go
  297. strength.go
  298. string_lit.go
  299. stringrange.go
  300. struct0.go
  301. switch.go
  302. switch2.go
  303. switch3.go
  304. switch4.go
  305. switch5.go
  306. switch6.go
  307. switch7.go
  308. tinyfin.go
  309. torture.go
  310. turing.go
  311. typecheck.go
  312. typecheckloop.go
  313. typeswitch.go
  314. typeswitch1.go
  315. typeswitch2.go
  316. typeswitch2b.go
  317. typeswitch3.go
  318. uintptrescapes.go
  319. uintptrescapes2.go
  320. uintptrescapes3.go
  321. undef.go
  322. utf.go
  323. varerr.go
  324. varinit.go
  325. winbatch.go
  326. writebarrier.go
  327. 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.