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