TESTS 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. Sample Usage
  2. Note: The core testsuite must be run from CORE/t, and forces INC to ../lib
  3. There's also an alternative setup with t/testcore.t using patched CORE tests:
  4. p=5.6.2
  5. perl$p Makefile.PL && make
  6. mkdir -p t/CORE/
  7. cp /usr/src/perl/perl-$p/t/* t/CORE/
  8. perl -pi -e 's/^(\s*\@INC = )/# $1/' t/CORE/*/*.t
  9. # try CORE compiler
  10. perl$p script/perlcc -r --testsuite t/CORE/*/*.t
  11. # try new compiler
  12. perl$p -Mblib script/perlcc -r --testsuite t/CORE/*/*.t
  13. perl$p script/perlcc -B -r --testsuite t/CORE/*/*.t
  14. perl$p -Mblib script/perlcc -B -r --testsuite t/CORE/*/*.t
  15. perl$p script/perlcc -O -r --testsuite t/CORE/*/*.t
  16. perl$p -Mblib script/perlcc -O -r --testsuite t/CORE/*/*.t
  17. # or simplier
  18. perl$p -Mblib t/testcore.t
  19. Test results from compiling t/*/*.t on 5.10.1
  20. C Bytecode CC
  21. base/cond.t OK ok OK
  22. base/if.t OK ok OK
  23. base/lex.t 7,56 51 OK
  24. Undefined subroutine &xyz::foo
  25. base/pat.t OK ok OK
  26. base/rs.t see CC ok bad realloc ignored
  27. base/term.t OK ok OK
  28. cmd/elsif.t OK ok OK
  29. cmd/for.t OK ok "last" used outside loop
  30. cmd/mod.t 8 8 8
  31. cmd/subval.t OK ok ok
  32. cmd/switch.t OK ok "next" used outside loop
  33. cmd/while.t OK ok "last" used outside loop, ... panic: leaveloop
  34. comp/bproto.t OK ok panic: restartop
  35. comp/cmdopt.t OK ok ok
  36. comp/colon.t OK ok ok
  37. comp/cpp.t ?
  38. comp/decl.t OK ok ok
  39. comp/fold.t fail ok fail B::OP::padix missing
  40. comp/hints.t OK ok ok
  41. comp/multiline.t main::tempfile missing fail B::OP::padix missing
  42. comp/opsubs.t todo
  43. comp/our.t Tieall::TIESCALAR missing
  44. ok fail B::OP::padix missing
  45. comp/package.t OK ok ok
  46. comp/parser.t todo
  47. comp/proto.t OK ok ok
  48. comp/redef.t fail ok fail pp_anonsub_0 undeclared
  49. comp/require.t Wide character in print fail ok
  50. comp/retainedlines.t todo ok todo
  51. comp/script.t todo
  52. comp/term.t OK ok ok
  53. comp/uproto.t fail ok fail B::OP::padix missing
  54. comp/use.t fail ok fail Bad free() ignored
  55. comp/utf.t fail ok fail B::OP::padix missing
  56. io/argv.t OK ok ok
  57. io/dup.t OK ok ok
  58. io/fs.t OK ok ok
  59. io/inplace.t OK ok ok
  60. io/pipe.t OK ok ok with -umain
  61. io/print.t OK ok ok
  62. io/tell.t OK ok ok
  63. op/anonsub.t nok nok nok
  64. op/append.t OK ok OK
  65. op/args.t OK ok OK
  66. op/arith.t OK ok OK
  67. op/array.t OK ok OK
  68. op/assignwarn.t nok
  69. op/auto.t OK ok OK
  70. op/avhv.t ??
  71. op/bop.t 34,35 silent ok hangs
  72. op/chars.t OK ok OK
  73. op/chop.t fail ok fail Bad realloc() ignored
  74. op/closure.t needs rewrite, forks a new perl
  75. op/cmp.t OK ok OK
  76. op/concat.t 4-6 ok 4-6 s/// with UTF-8
  77. op/cond.t OK ok OK
  78. op/context.t OK ok OK
  79. op/defins.t fail ok pp_anonsub_0 undeclared
  80. op/delete.t OK ok no B::OP::gv
  81. op/die.t nok hangs
  82. op/do.t
  83. op/each.t
  84. op/eval.t
  85. op/exec.t
  86. op/exists_sub.t
  87. op/exp.t
  88. op/fh.t
  89. op/filetest.t
  90. op/flip.t
  91. op/fork.t
  92. op/glob.t
  93. op/goto.t
  94. op/goto_xs.t
  95. op/grent.t
  96. op/grep.t
  97. op/groups.t
  98. op/gv.t
  99. op/hashwarn.t
  100. op/inc.t
  101. op/index.t
  102. op/int.t
  103. op/join.t
  104. op/length.t
  105. op/lex_assign.t
  106. op/lfs.t
  107. op/list.t
  108. op/local.t
  109. op/lop.t
  110. op/magic.t
  111. op/method.t
  112. op/misc.t
  113. op/mkdir.t
  114. op/my.t
  115. op/my_stash.t
  116. op/nothr5005.t
  117. op/numconvert.t
  118. op/oct.t
  119. op/ord.t
  120. op/pack.t
  121. op/pat.t
  122. op/pos.t
  123. op/push.t
  124. op/pwent.t
  125. op/quotemeta.t
  126. op/rand.t
  127. op/range.t
  128. op/read.t
  129. op/readdir.t
  130. op/recurse.t
  131. op/ref.t
  132. op/regexp.t
  133. op/regexp_noamp.t
  134. op/regmesg.t
  135. op/repeat.t
  136. op/reverse.t
  137. op/runlevel.t
  138. op/sleep.t
  139. op/sort.t
  140. op/splice.t
  141. op/split.t
  142. op/sprintf.t
  143. op/stat.t
  144. op/study.t
  145. op/subst.t
  146. op/substr.t
  147. op/subst_amp.t
  148. op/subst_wamp.t
  149. op/sysio.t
  150. op/taint.t
  151. op/tie.t
  152. op/do.t OK ok OK
  153. op/each.t OK ok OK
  154. op/eval.t OK ok ok 1-6 of 16 then exits
  155. op/exec.t OK ok OK
  156. op/exp.t OK ok OK
  157. op/flip.t OK ok OK
  158. op/fork.t OK ok OK
  159. op/glob.t OK ok OK
  160. op/goto.t OK ok 1..9, Can't find label label1.
  161. op/groups.t OK (s/ucb/bin/ under Linux) OK 1..0 for now.
  162. op/index.t OK ok OK
  163. op/int.t OK ok OK
  164. op/join.t OK ok OK
  165. op/list.t OK ok OK
  166. op/local.t OK ok OK
  167. op/magic.t OK ok OK
  168. op/misc.t no DATA filehandle so succeeds trivially with 1..0
  169. op/mkdir.t OK ok OK
  170. op/my.t OK ok OK
  171. op/oct.t OK ok OK (C large const warnings)
  172. op/ord.t OK ok OK
  173. op/overload.t Mostly not ok Mostly not ok C errors.
  174. op/pack.t OK ok OK
  175. op/pat.t omit 26 (reset) ok [lots of memory for compile]
  176. op/push.t OK ok OK
  177. op/quotemeta.t OK ok OK
  178. op/rand.t OK ok
  179. op/range.t OK ok OK
  180. op/read.t OK ok OK
  181. op/readdir.t OK ok OK (substcont works too)
  182. op/ref.t omits "ok 40" (lex destruction) ok (Bytecode)
  183. CC: need -u for OBJ,BASEOBJ,
  184. UNIVERSAL,WHATEVER,main.
  185. 1..41, ok1-33,36-38,
  186. then ok 41, ok 39.DESTROY probs
  187. op/regexp.t OK ok ok (trivially all eval'd)
  188. op/repeat.t OK ok ok
  189. op/sleep.t OK ok ok
  190. op/sort.t OK ok 1..10, ok 1, Out of memory!
  191. op/split.t OK ok ok
  192. op/sprintf.t OK ok ok
  193. op/stat.t OK ok ok
  194. op/study.t OK ok ok
  195. op/subst.t OK ok ok
  196. op/substr.t OK ok ok1-22 except 7-9,11 (all $[)
  197. op/taint.t
  198. op/tie.t
  199. op/tiearray.t
  200. op/tiehandle.t
  201. op/time.t OK ok ok
  202. op/tr.t
  203. op/undef.t omit 21 ok ok
  204. op/universal.t
  205. op/unshift.t OK ok ok
  206. op/utf8decode.t
  207. op/vec.t OK ok ok
  208. op/ver.t
  209. op/wantarray.t
  210. op/write.t not ok 3 (no CvOUTSIDE lex from runtime eval). CC: 1..3, hang
  211. run/cloexec.t nok ok nok
  212. run/exit.t nok ok nok
  213. run/fresh_perl.t nok ok nok
  214. run/noswitch.t nok nok nok read from aliased DATA filehandle
  215. # DISABLED
  216. # testing external perl and its perl arguments is not fruitful
  217. run/runenv.t nok nok nok
  218. run/switch0.t ok hangs ok
  219. run/switcha.t fail hangs ok
  220. run/switchC.t BEGIN require tempfile missing
  221. run/switchd.t
  222. run/switches.t nok nok
  223. run/switchF.t nok hangs nok
  224. run/switchF1.t
  225. run/switchI.t
  226. run/switchn.t hangs
  227. run/switchp.t hangs
  228. run/switchPx.t
  229. run/switcht.t
  230. run/switchx.t