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