esruby 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +6 -6
  3. data/bin/esruby +9 -0
  4. data/lib/esruby.rb +8 -0
  5. data/resources/mruby/build_config.rb +0 -1
  6. data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +1 -1
  7. data/resources/project_template/app/app.rb +2 -0
  8. data/resources/project_template/config.rb +35 -0
  9. data/resources/project_template/www/index.html +17 -0
  10. metadata +6 -377
  11. data/resources/mruby/bin/mirb +0 -0
  12. data/resources/mruby/bin/mrbc +0 -0
  13. data/resources/mruby/bin/mruby +0 -0
  14. data/resources/mruby/bin/mruby-strip +0 -0
  15. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/README.md +0 -82
  16. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +0 -63
  17. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +0 -232
  18. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +0 -333
  19. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +0 -313
  20. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +0 -45
  21. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +0 -959
  22. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +0 -5
  23. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +0 -4981
  24. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +0 -67
  25. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +0 -113
  26. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +0 -35
  27. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +0 -473
  28. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +0 -370
  29. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +0 -92
  30. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +0 -877
  31. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +0 -2917
  32. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +0 -611
  33. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +0 -639
  34. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +0 -7
  35. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +0 -253
  36. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +0 -935
  37. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +0 -551
  38. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +0 -1015
  39. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +0 -616
  40. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +0 -1230
  41. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +0 -21280
  42. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +0 -21280
  43. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +0 -273
  44. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +0 -2421
  45. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +0 -1144
  46. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  47. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +0 -17
  48. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  49. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +0 -29
  50. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +0 -343
  51. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +0 -54
  52. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +0 -1552
  53. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +0 -392
  54. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +0 -392
  55. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +0 -343
  56. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +0 -1804
  57. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +0 -21280
  58. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +0 -1082
  59. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +0 -708
  60. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +0 -212
  61. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +0 -180
  62. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +0 -109
  63. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +0 -204
  64. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +0 -383
  65. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +0 -76
  66. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +0 -108
  67. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +0 -112
  68. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +0 -91
  69. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +0 -65
  70. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +0 -61
  71. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +0 -128
  72. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +0 -110
  73. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +0 -46
  74. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +0 -46
  75. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +0 -46
  76. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +0 -108
  77. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +0 -68
  78. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +0 -57
  79. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +0 -60
  80. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +0 -64
  81. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +0 -61
  82. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +0 -108
  83. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +0 -55
  84. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +0 -48
  85. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +0 -48
  86. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +0 -58
  87. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +0 -51
  88. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +0 -68
  89. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +0 -57
  90. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +0 -46
  91. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +0 -2786
  92. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +0 -517
  93. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +0 -243
  94. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +0 -216
  95. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +0 -368
  96. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +0 -426
  97. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +0 -757
  98. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +0 -458
  99. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +0 -86
  100. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +0 -233
  101. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +0 -474
  102. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +0 -2953
  103. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +0 -195
  104. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +0 -292
  105. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +0 -158
  106. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +0 -110
  107. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +0 -225
  108. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +0 -521
  109. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +0 -1082
  110. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +0 -270
  111. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +0 -180
  112. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +0 -92
  113. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +0 -86
  114. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +0 -202
  115. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +0 -9909
  116. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +0 -390
  117. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +0 -389
  118. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +0 -61
  119. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +0 -98
  120. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +0 -106
  121. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +0 -76
  122. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +0 -59
  123. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +0 -52
  124. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +0 -125
  125. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +0 -103
  126. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +0 -31
  127. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +0 -31
  128. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +0 -31
  129. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +0 -95
  130. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +0 -62
  131. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +0 -45
  132. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +0 -48
  133. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +0 -55
  134. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +0 -49
  135. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +0 -104
  136. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +0 -45
  137. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +0 -35
  138. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +0 -33
  139. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +0 -46
  140. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +0 -36
  141. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +0 -56
  142. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +0 -46
  143. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +0 -46
  144. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +0 -31
  145. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +0 -2823
  146. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +0 -520
  147. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +0 -214
  148. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +0 -185
  149. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +0 -348
  150. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +0 -679
  151. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +0 -740
  152. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +0 -437
  153. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +0 -67
  154. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +0 -206
  155. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +0 -445
  156. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +0 -2983
  157. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +0 -177
  158. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +0 -270
  159. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +0 -151
  160. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +0 -99
  161. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +0 -215
  162. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +0 -496
  163. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +0 -1079
  164. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +0 -1012
  165. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +0 -255
  166. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +0 -42
  167. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +0 -527
  168. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +0 -12
  169. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +0 -12
  170. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +0 -12
  171. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +0 -12
  172. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +0 -13
  173. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +0 -9636
  174. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +0 -309
  175. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +0 -7844
  176. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +0 -369
  177. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +0 -123
  178. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +0 -23
  179. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +0 -98
  180. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +0 -89
  181. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +0 -66
  182. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +0 -20
  183. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +0 -20
  184. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +0 -331
  185. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +0 -133
  186. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +0 -653
  187. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +0 -653
  188. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +0 -653
  189. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +0 -45
  190. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +0 -45
  191. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +0 -45
  192. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +0 -45
  193. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +0 -45
  194. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +0 -45
  195. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +0 -45
  196. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +0 -45
  197. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +0 -45
  198. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +0 -45
  199. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +0 -45
  200. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +0 -45
  201. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +0 -90
  202. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +0 -45
  203. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +0 -45
  204. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +0 -45
  205. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +0 -45
  206. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +0 -45
  207. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +0 -45
  208. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +0 -130
  209. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +0 -156
  210. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +0 -45
  211. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +0 -45
  212. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +0 -45
  213. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +0 -45
  214. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +0 -45
  215. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +0 -45
  216. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +0 -45
  217. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +0 -45
  218. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +0 -45
  219. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +0 -45
  220. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +0 -45
  221. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +0 -45
  222. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +0 -45
  223. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +0 -45
  224. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +0 -82
  225. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +0 -45
  226. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +0 -45
  227. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +0 -45
  228. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +0 -45
  229. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +0 -45
  230. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +0 -45
  231. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +0 -141
  232. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +0 -131
  233. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +0 -45
  234. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +0 -45
  235. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +0 -318
  236. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +0 -198
  237. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +0 -198
  238. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +0 -8386
  239. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +0 -186
  240. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +0 -3582
  241. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +0 -7049
  242. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +0 -231
  243. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +0 -662
  244. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +0 -84
  245. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +0 -2744
  246. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +0 -8560
  247. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +0 -1614
  248. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +0 -151
  249. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +0 -210
  250. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +0 -94
  251. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +0 -766
  252. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +0 -92
  253. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +0 -199
  254. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +0 -172
  255. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +0 -159
  256. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +0 -211
  257. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +0 -43
  258. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +0 -179
  259. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +0 -150
  260. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +0 -1562
  261. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +0 -655
  262. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +0 -3298
  263. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +0 -312
  264. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +0 -98
  265. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +0 -198
  266. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +0 -922
  267. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +0 -710
  268. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +0 -71
  269. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +0 -1291
  270. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +0 -174
  271. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +0 -406
  272. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +0 -845
  273. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +0 -3180
  274. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +0 -419
  275. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +0 -146
  276. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +0 -5488
  277. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +0 -237
  278. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +0 -110
  279. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +0 -484
  280. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +0 -289
  281. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +0 -1766
  282. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +0 -985
  283. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +0 -2008
  284. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +0 -2515
  285. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +0 -404
  286. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +0 -1881
  287. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +0 -269
  288. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +0 -421
  289. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +0 -2014
  290. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +0 -164
  291. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +0 -1348
  292. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +0 -547
  293. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +0 -810
  294. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +0 -2836
  295. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +0 -332
  296. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
  297. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +0 -3
  298. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +0 -611
  299. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +0 -15
  300. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +0 -11
  301. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +0 -4
  302. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +0 -43
  303. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +0 -7
  304. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +0 -707
  305. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +0 -12
  306. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +0 -17
  307. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +0 -2
  308. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16 +0 -0
  309. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-1 +0 -0
  310. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-2 +0 -0
  311. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-1 +0 -0
  312. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-2 +0 -0
  313. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32 +0 -0
  314. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-1 +0 -0
  315. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-2 +0 -0
  316. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-1 +0 -0
  317. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-2 +0 -0
  318. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved8 +0 -0
  319. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput1 +0 -5306
  320. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +0 -1337
  321. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +0 -135
  322. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +0 -89
  323. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +0 -9
  324. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +0 -329
  325. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +0 -430
  326. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +0 -35
  327. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +0 -296
  328. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +0 -296
  329. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +0 -22
  330. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +0 -3813
  331. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +0 -19
  332. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +0 -16
  333. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +0 -13
  334. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +0 -16
  335. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +0 -77
  336. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +0 -32
  337. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +0 -80
  338. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +0 -95
  339. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +0 -624
  340. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +0 -772
  341. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +0 -1319
  342. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +0 -672
  343. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +0 -4801
  344. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +0 -717
  345. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +0 -121
  346. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +0 -8798
  347. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +0 -2726
  348. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +0 -713
  349. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +0 -713
  350. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +0 -713
  351. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +0 -181
  352. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +0 -21
  353. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +0 -476
  354. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +0 -1269
  355. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +0 -121
  356. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +0 -505
  357. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +0 -1022
  358. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +0 -1019
  359. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +0 -88
  360. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +0 -12484
  361. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +0 -27
  362. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +0 -90
  363. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +0 -90
  364. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +0 -71
  365. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +0 -71
  366. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +0 -42
  367. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +0 -145
  368. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +0 -79
  369. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +0 -148
  370. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +0 -169
  371. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +0 -1094
  372. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +0 -1849
  373. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +0 -2137
  374. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +0 -1473
  375. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +0 -8019
  376. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +0 -1371
  377. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +0 -182
  378. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +0 -91
  379. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +0 -166
  380. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +0 -197
  381. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +0 -23
  382. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +0 -364
  383. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +0 -94
  384. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +0 -264
  385. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +0 -201
@@ -1,1015 +0,0 @@
1
- #! /bin/sh
2
-
3
- # Run the PCRE tests using the pcretest program. The appropriate tests are
4
- # selected, depending on which build-time options were used.
5
- #
6
- # All tests are now run both with and without -s, to ensure that everything is
7
- # tested with and without studying. However, there are some tests that produce
8
- # different output after studying, typically when we are tracing the actual
9
- # matching process (for example, using auto-callouts). In these few cases, the
10
- # tests are duplicated in the files, one with /S to force studying always, and
11
- # one with /SS to force *not* studying always. The use of -s doesn't then make
12
- # any difference to their output. There is also one test which compiles invalid
13
- # UTF-8 with the UTF-8 check turned off; for this, studying must also be
14
- # disabled with /SS.
15
- #
16
- # When JIT support is available, all the tests are also run with -s+ to test
17
- # (again, almost) everything with studying and the JIT option. There are also
18
- # two tests for JIT-specific features, one to be run when JIT support is
19
- # available, and one when it is not.
20
- #
21
- # Whichever of the 8-, 16- and 32-bit libraries exist are tested. It is also
22
- # possible to select which to test by the arguments -8, -16 or -32.
23
- #
24
- # Other arguments for this script can be individual test numbers, or the word
25
- # "valgrind", "valgrind-log" or "sim" followed by an argument to run cross-
26
- # compiled executables under a simulator, for example:
27
- #
28
- # RunTest 3 sim "qemu-arm -s 8388608"
29
- #
30
- #
31
- # There are two special cases where only one argument is allowed:
32
- #
33
- # If the first and only argument is "ebcdic", the script runs the special
34
- # EBCDIC test that can be useful for checking certain EBCDIC features, even
35
- # when run in an ASCII environment.
36
- #
37
- # If the script is obeyed as "RunTest list", a list of available tests is
38
- # output, but none of them are run.
39
-
40
-
41
- # Define test titles in variables so that they can be output as a list. Some
42
- # of them are modified (e.g. with -8 or -16) when used in the actual tests.
43
-
44
- title1="Test 1: Main functionality (Compatible with Perl >= 5.10)"
45
- title2="Test 2: API, errors, internals, and non-Perl stuff"
46
- title3="Test 3: Locale-specific features"
47
- title4A="Test 4: UTF"
48
- title4B=" support (Compatible with Perl >= 5.10)"
49
- title5="Test 5: API, internals, and non-Perl stuff for UTF"
50
- title6="Test 6: Unicode property support (Compatible with Perl >= 5.10)"
51
- title7="Test 7: API, internals, and non-Perl stuff for Unicode property support"
52
- title8="Test 8: DFA matching main functionality"
53
- title9="Test 9: DFA matching with UTF"
54
- title10="Test 10: DFA matching with Unicode properties"
55
- title11="Test 11: Internal offsets and code size tests"
56
- title12="Test 12: JIT-specific features (JIT available)"
57
- title13="Test 13: JIT-specific features (JIT not available)"
58
- title14="Test 14: Specials for the basic 8-bit library"
59
- title15="Test 15: Specials for the 8-bit library with UTF-8 support"
60
- title16="Test 16: Specials for the 8-bit library with Unicode propery support"
61
- title17="Test 17: Specials for the basic 16/32-bit library"
62
- title18="Test 18: Specials for the 16/32-bit library with UTF-16/32 support"
63
- title19="Test 19: Specials for the 16/32-bit library with Unicode property support"
64
- title20="Test 20: DFA specials for the basic 16/32-bit library"
65
- title21="Test 21: Reloads for the basic 16/32-bit library"
66
- title22="Test 22: Reloads for the 16/32-bit library with UTF-16/32 support"
67
- title23="Test 23: Specials for the 16-bit library"
68
- title24="Test 24: Specials for the 16-bit library with UTF-16 support"
69
- title25="Test 25: Specials for the 32-bit library"
70
- title26="Test 26: Specials for the 32-bit library with UTF-32 support"
71
-
72
- if [ $# -eq 1 -a "$1" = "list" ]; then
73
- echo $title1
74
- echo $title2 "(not UTF)"
75
- echo $title3
76
- echo $title4A $title4B
77
- echo $title5 support
78
- echo $title6
79
- echo $title7
80
- echo $title8
81
- echo $title9
82
- echo $title10
83
- echo $title11
84
- echo $title12
85
- echo $title13
86
- echo $title14
87
- echo $title15
88
- echo $title16
89
- echo $title17
90
- echo $title18
91
- echo $title19
92
- echo $title20
93
- echo $title21
94
- echo $title22
95
- echo $title23
96
- echo $title24
97
- echo $title25
98
- echo $title26
99
- exit 0
100
- fi
101
-
102
- # Set up a suitable "diff" command for comparison. Some systems
103
- # have a diff that lacks a -u option. Try to deal with this.
104
-
105
- cf="diff"
106
- diff -u /dev/null /dev/null 2>/dev/null && cf="diff -u"
107
-
108
- # Find the test data
109
-
110
- if [ -n "$srcdir" -a -d "$srcdir" ] ; then
111
- testdata="$srcdir/testdata"
112
- elif [ -d "./testdata" ] ; then
113
- testdata=./testdata
114
- elif [ -d "../testdata" ] ; then
115
- testdata=../testdata
116
- else
117
- echo "Cannot find the testdata directory"
118
- exit 1
119
- fi
120
-
121
-
122
- # ------ Special EBCDIC Test -------
123
-
124
- if [ $# -eq 1 -a "$1" = "ebcdic" ]; then
125
- ./pcretest -C ebcdic >/dev/null
126
- ebcdic=$?
127
- if [ $ebcdic -ne 1 ] ; then
128
- echo "Cannot run EBCDIC tests: EBCDIC support not compiled"
129
- exit 1
130
- fi
131
-
132
- for opt in "" "-s" "-dfa" "-s -dfa"; do
133
- ./pcretest -q $opt $testdata/testinputEBC >testtry
134
- if [ $? = 0 ] ; then
135
- $cf $testdata/testoutputEBC testtry
136
- if [ $? != 0 ] ; then exit 1; fi
137
- else exit 1
138
- fi
139
- if [ "$opt" = "-s" ] ; then echo " OK with study"
140
- elif [ "$opt" = "-dfa" ] ; then echo " OK using DFA"
141
- elif [ "$opt" = "-s -dfa" ] ; then echo " OK using DFA with study"
142
- else echo " OK"
143
- fi
144
- done
145
-
146
- exit 0
147
- fi
148
-
149
-
150
- # ------ Normal Tests ------
151
-
152
- # Default values
153
-
154
- valgrind=
155
- sim=
156
- arg8=
157
- arg16=
158
- arg32=
159
-
160
- # This is in case the caller has set aliases (as I do - PH)
161
- unset cp ls mv rm
162
-
163
- # Select which tests to run; for those that are explicitly requested, check
164
- # that the necessary optional facilities are available.
165
-
166
- do1=no
167
- do2=no
168
- do3=no
169
- do4=no
170
- do5=no
171
- do6=no
172
- do7=no
173
- do8=no
174
- do9=no
175
- do10=no
176
- do11=no
177
- do12=no
178
- do13=no
179
- do14=no
180
- do15=no
181
- do16=no
182
- do17=no
183
- do18=no
184
- do19=no
185
- do20=no
186
- do21=no
187
- do22=no
188
- do23=no
189
- do24=no
190
- do25=no
191
- do26=no
192
-
193
- while [ $# -gt 0 ] ; do
194
- case $1 in
195
- 1) do1=yes;;
196
- 2) do2=yes;;
197
- 3) do3=yes;;
198
- 4) do4=yes;;
199
- 5) do5=yes;;
200
- 6) do6=yes;;
201
- 7) do7=yes;;
202
- 8) do8=yes;;
203
- 9) do9=yes;;
204
- 10) do10=yes;;
205
- 11) do11=yes;;
206
- 12) do12=yes;;
207
- 13) do13=yes;;
208
- 14) do14=yes;;
209
- 15) do15=yes;;
210
- 16) do16=yes;;
211
- 17) do17=yes;;
212
- 18) do18=yes;;
213
- 19) do19=yes;;
214
- 20) do20=yes;;
215
- 21) do21=yes;;
216
- 22) do22=yes;;
217
- 23) do23=yes;;
218
- 24) do24=yes;;
219
- 25) do25=yes;;
220
- 26) do26=yes;;
221
- -8) arg8=yes;;
222
- -16) arg16=yes;;
223
- -32) arg32=yes;;
224
- valgrind) valgrind="valgrind --tool=memcheck -q --smc-check=all";;
225
- valgrind-log) valgrind="valgrind --tool=memcheck --num-callers=30 --leak-check=no --error-limit=no --smc-check=all --log-file=report.%p ";;
226
- sim) shift; sim=$1;;
227
- *) echo "Unknown test number '$1'"; exit 1;;
228
- esac
229
- shift
230
- done
231
-
232
- # Find which optional facilities are available.
233
-
234
- $sim ./pcretest -C linksize >/dev/null
235
- link_size=$?
236
- if [ $link_size -lt 2 ] ; then
237
- echo "Failed to find internal link size"
238
- exit 1
239
- fi
240
- if [ $link_size -gt 4 ] ; then
241
- echo "Failed to find internal link size"
242
- exit 1
243
- fi
244
-
245
- # All of 8-bit, 16-bit, and 32-bit character strings may be supported, but only
246
- # one need be.
247
-
248
- $sim ./pcretest -C pcre8 >/dev/null
249
- support8=$?
250
- $sim ./pcretest -C pcre16 >/dev/null
251
- support16=$?
252
- $sim ./pcretest -C pcre32 >/dev/null
253
- support32=$?
254
-
255
- # Initialize all bitsizes skipped
256
-
257
- test8=skip
258
- test16=skip
259
- test32=skip
260
-
261
- # If no bitsize arguments, select all that are available
262
-
263
- if [ "$arg8$arg16$arg32" = "" ] ; then
264
- if [ $support8 -ne 0 ] ; then
265
- test8=
266
- fi
267
- if [ $support16 -ne 0 ] ; then
268
- test16=-16
269
- fi
270
- if [ $support32 -ne 0 ] ; then
271
- test32=-32
272
- fi
273
-
274
- # Select requested bit sizes
275
-
276
- else
277
- if [ "$arg8" = yes ] ; then
278
- if [ $support8 -eq 0 ] ; then
279
- echo "Cannot run 8-bit library tests: 8-bit library not compiled"
280
- exit 1
281
- fi
282
- test8=
283
- fi
284
- if [ "$arg16" = yes ] ; then
285
- if [ $support16 -eq 0 ] ; then
286
- echo "Cannot run 16-bit library tests: 16-bit library not compiled"
287
- exit 1
288
- fi
289
- test16=-16
290
- fi
291
- if [ "$arg32" = yes ] ; then
292
- if [ $support32 -eq 0 ] ; then
293
- echo "Cannot run 32-bit library tests: 32-bit library not compiled"
294
- exit 1
295
- fi
296
- test32=-32
297
- fi
298
- fi
299
-
300
- # UTF support always applies to all bit sizes if both are supported; we can't
301
- # have UTF-8 support without UTF-16 support (for example).
302
-
303
- $sim ./pcretest -C utf >/dev/null
304
- utf=$?
305
-
306
- $sim ./pcretest -C ucp >/dev/null
307
- ucp=$?
308
-
309
- jitopt=
310
- $sim ./pcretest -C jit >/dev/null
311
- jit=$?
312
- if [ $jit -ne 0 ] ; then
313
- jitopt=-s+
314
- fi
315
-
316
- if [ $utf -eq 0 ] ; then
317
- if [ $do4 = yes ] ; then
318
- echo "Can't run test 4 because UTF support is not configured"
319
- exit 1
320
- fi
321
- if [ $do5 = yes ] ; then
322
- echo "Can't run test 5 because UTF support is not configured"
323
- exit 1
324
- fi
325
- if [ $do9 = yes ] ; then
326
- echo "Can't run test 8 because UTF support is not configured"
327
- exit 1
328
- fi
329
- if [ $do15 = yes ] ; then
330
- echo "Can't run test 15 because UTF support is not configured"
331
- exit 1
332
- fi
333
- if [ $do18 = yes ] ; then
334
- echo "Can't run test 18 because UTF support is not configured"
335
- fi
336
- if [ $do22 = yes ] ; then
337
- echo "Can't run test 22 because UTF support is not configured"
338
- fi
339
- fi
340
-
341
- if [ $ucp -eq 0 ] ; then
342
- if [ $do6 = yes ] ; then
343
- echo "Can't run test 6 because Unicode property support is not configured"
344
- exit 1
345
- fi
346
- if [ $do7 = yes ] ; then
347
- echo "Can't run test 7 because Unicode property support is not configured"
348
- exit 1
349
- fi
350
- if [ $do10 = yes ] ; then
351
- echo "Can't run test 10 because Unicode property support is not configured"
352
- exit 1
353
- fi
354
- if [ $do16 = yes ] ; then
355
- echo "Can't run test 16 because Unicode property support is not configured"
356
- exit 1
357
- fi
358
- if [ $do19 = yes ] ; then
359
- echo "Can't run test 19 because Unicode property support is not configured"
360
- exit 1
361
- fi
362
- fi
363
-
364
- if [ $link_size -ne 2 ] ; then
365
- if [ $do11 = yes ] ; then
366
- echo "Can't run test 11 because the link size ($link_size) is not 2"
367
- exit 1
368
- fi
369
- fi
370
-
371
- if [ $jit -eq 0 ] ; then
372
- if [ $do12 = "yes" ] ; then
373
- echo "Can't run test 12 because JIT support is not configured"
374
- exit 1
375
- fi
376
- else
377
- if [ $do13 = "yes" ] ; then
378
- echo "Can't run test 13 because JIT support is configured"
379
- exit 1
380
- fi
381
- fi
382
-
383
- # If no specific tests were requested, select all. Those that are not
384
- # relevant will be skipped.
385
-
386
- if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \
387
- $do5 = no -a $do6 = no -a $do7 = no -a $do8 = no -a \
388
- $do9 = no -a $do10 = no -a $do11 = no -a $do12 = no -a \
389
- $do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \
390
- $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no -a \
391
- $do21 = no -a $do22 = no -a $do23 = no -a $do24 = no -a \
392
- $do25 = no -a $do26 = no ] ; then
393
- do1=yes
394
- do2=yes
395
- do3=yes
396
- do4=yes
397
- do5=yes
398
- do6=yes
399
- do7=yes
400
- do8=yes
401
- do9=yes
402
- do10=yes
403
- do11=yes
404
- do12=yes
405
- do13=yes
406
- do14=yes
407
- do15=yes
408
- do16=yes
409
- do17=yes
410
- do18=yes
411
- do19=yes
412
- do20=yes
413
- do21=yes
414
- do22=yes
415
- do23=yes
416
- do24=yes
417
- do25=yes
418
- do26=yes
419
- fi
420
-
421
- # Show which release and which test data
422
-
423
- echo ""
424
- echo PCRE C library tests using test data from $testdata
425
- $sim ./pcretest /dev/null
426
-
427
- for bmode in "$test8" "$test16" "$test32"; do
428
- case "$bmode" in
429
- skip) continue;;
430
- -16) if [ "$test8$test32" != "skipskip" ] ; then echo ""; fi
431
- bits=16; echo "---- Testing 16-bit library ----"; echo "";;
432
- -32) if [ "$test8$test16" != "skipskip" ] ; then echo ""; fi
433
- bits=32; echo "---- Testing 32-bit library ----"; echo "";;
434
- *) bits=8; echo "---- Testing 8-bit library ----"; echo "";;
435
- esac
436
-
437
- # Primary test, compatible with JIT and all versions of Perl >= 5.8
438
-
439
- if [ $do1 = yes ] ; then
440
- echo $title1
441
- for opt in "" "-s" $jitopt; do
442
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput1 testtry
443
- if [ $? = 0 ] ; then
444
- $cf $testdata/testoutput1 testtry
445
- if [ $? != 0 ] ; then exit 1; fi
446
- else exit 1
447
- fi
448
- if [ "$opt" = "-s" ] ; then echo " OK with study"
449
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
450
- else echo " OK"
451
- fi
452
- done
453
- fi
454
-
455
- # PCRE tests that are not JIT or Perl-compatible: API, errors, internals
456
-
457
- if [ $do2 = yes ] ; then
458
- echo $title2 "(not UTF-$bits)"
459
- for opt in "" "-s" $jitopt; do
460
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput2 testtry
461
- if [ $? = 0 ] ; then
462
- $cf $testdata/testoutput2 testtry
463
- if [ $? != 0 ] ; then exit 1; fi
464
- else
465
- echo " "
466
- echo "** Test 2 requires a lot of stack. If it has crashed with a"
467
- echo "** segmentation fault, it may be that you do not have enough"
468
- echo "** stack available by default. Please see the 'pcrestack' man"
469
- echo "** page for a discussion of PCRE's stack usage."
470
- echo " "
471
- exit 1
472
- fi
473
- if [ "$opt" = "-s" ] ; then echo " OK with study"
474
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
475
- else echo " OK"
476
- fi
477
- done
478
- fi
479
-
480
- # Locale-specific tests, provided that either the "fr_FR" or the "french"
481
- # locale is available. The former is the Unix-like standard; the latter is
482
- # for Windows. Another possibility is "fr", which needs to be run against
483
- # the Windows-specific input and output files.
484
-
485
- if [ $do3 = yes ] ; then
486
- locale -a | grep '^fr_FR$' >/dev/null
487
- if [ $? -eq 0 ] ; then
488
- locale=fr_FR
489
- infile=$testdata/testinput3
490
- outfile=$testdata/testoutput3
491
- else
492
- infile=test3input
493
- outfile=test3output
494
- locale -a | grep '^french$' >/dev/null
495
- if [ $? -eq 0 ] ; then
496
- locale=french
497
- sed 's/fr_FR/french/' $testdata/testinput3 >test3input
498
- sed 's/fr_FR/french/' $testdata/testoutput3 >test3output
499
- else
500
- locale -a | grep '^fr$' >/dev/null
501
- if [ $? -eq 0 ] ; then
502
- locale=fr
503
- sed 's/fr_FR/fr/' $testdata/wintestinput3 >test3input
504
- sed 's/fr_FR/fr/' $testdata/wintestoutput3 >test3output
505
- else
506
- locale=
507
- fi
508
- fi
509
- fi
510
-
511
- if [ "$locale" != "" ] ; then
512
- echo $title3 "(using '$locale' locale)"
513
- for opt in "" "-s" $jitopt; do
514
- $sim $valgrind ./pcretest -q $bmode $opt $infile testtry
515
- if [ $? = 0 ] ; then
516
- $cf $outfile testtry
517
- if [ $? != 0 ] ; then
518
- echo " "
519
- echo "Locale test did not run entirely successfully."
520
- echo "This usually means that there is a problem with the locale"
521
- echo "settings rather than a bug in PCRE."
522
- break;
523
- else
524
- if [ "$opt" = "-s" ] ; then echo " OK with study"
525
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
526
- else echo " OK"
527
- fi
528
- fi
529
- else exit 1
530
- fi
531
- done
532
- else
533
- echo "Cannot test locale-specific features - none of the 'fr_FR', 'fr' or"
534
- echo "'french' locales exist, or the \"locale\" command is not available"
535
- echo "to check for them."
536
- echo " "
537
- fi
538
- fi
539
-
540
- # Additional tests for UTF support
541
-
542
- if [ $do4 = yes ] ; then
543
- echo ${title4A}-${bits}${title4B}
544
- if [ $utf -eq 0 ] ; then
545
- echo " Skipped because UTF-$bits support is not available"
546
- else
547
- for opt in "" "-s" $jitopt; do
548
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput4 testtry
549
- if [ $? = 0 ] ; then
550
- $cf $testdata/testoutput4 testtry
551
- if [ $? != 0 ] ; then exit 1; fi
552
- else exit 1
553
- fi
554
- if [ "$opt" = "-s" ] ; then echo " OK with study"
555
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
556
- else echo " OK"
557
- fi
558
- done
559
- fi
560
- fi
561
-
562
- if [ $do5 = yes ] ; then
563
- echo ${title5}-${bits} support
564
- if [ $utf -eq 0 ] ; then
565
- echo " Skipped because UTF-$bits support is not available"
566
- else
567
- for opt in "" "-s" $jitopt; do
568
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput5 testtry
569
- if [ $? = 0 ] ; then
570
- $cf $testdata/testoutput5 testtry
571
- if [ $? != 0 ] ; then exit 1; fi
572
- else exit 1
573
- fi
574
- if [ "$opt" = "-s" ] ; then echo " OK with study"
575
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
576
- else echo " OK"
577
- fi
578
- done
579
- fi
580
- fi
581
-
582
- if [ $do6 = yes ] ; then
583
- echo $title6
584
- if [ $utf -eq 0 -o $ucp -eq 0 ] ; then
585
- echo " Skipped because Unicode property support is not available"
586
- else
587
- for opt in "" "-s" $jitopt; do
588
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput6 testtry
589
- if [ $? = 0 ] ; then
590
- $cf $testdata/testoutput6 testtry
591
- if [ $? != 0 ] ; then exit 1; fi
592
- else exit 1
593
- fi
594
- if [ "$opt" = "-s" ] ; then echo " OK with study"
595
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
596
- else echo " OK"
597
- fi
598
- done
599
- fi
600
- fi
601
-
602
- # Test non-Perl-compatible Unicode property support
603
-
604
- if [ $do7 = yes ] ; then
605
- echo $title7
606
- if [ $utf -eq 0 -o $ucp -eq 0 ] ; then
607
- echo " Skipped because Unicode property support is not available"
608
- else
609
- for opt in "" "-s" $jitopt; do
610
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput7 testtry
611
- if [ $? = 0 ] ; then
612
- $cf $testdata/testoutput7 testtry
613
- if [ $? != 0 ] ; then exit 1; fi
614
- else exit 1
615
- fi
616
- if [ "$opt" = "-s" ] ; then echo " OK with study"
617
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
618
- else echo " OK"
619
- fi
620
- done
621
- fi
622
- fi
623
-
624
- # Tests for DFA matching support
625
-
626
- if [ $do8 = yes ] ; then
627
- echo $title8
628
- for opt in "" "-s"; do
629
- $sim $valgrind ./pcretest -q $bmode $opt -dfa $testdata/testinput8 testtry
630
- if [ $? = 0 ] ; then
631
- $cf $testdata/testoutput8 testtry
632
- if [ $? != 0 ] ; then exit 1; fi
633
- else exit 1
634
- fi
635
- if [ "$opt" = "-s" ] ; then echo " OK with study" ; else echo " OK"; fi
636
- done
637
- fi
638
-
639
- if [ $do9 = yes ] ; then
640
- echo ${title9}-${bits}
641
- if [ $utf -eq 0 ] ; then
642
- echo " Skipped because UTF-$bits support is not available"
643
- else
644
- for opt in "" "-s"; do
645
- $sim $valgrind ./pcretest -q $bmode $opt -dfa $testdata/testinput9 testtry
646
- if [ $? = 0 ] ; then
647
- $cf $testdata/testoutput9 testtry
648
- if [ $? != 0 ] ; then exit 1; fi
649
- else exit 1
650
- fi
651
- if [ "$opt" = "-s" ] ; then echo " OK with study" ; else echo " OK"; fi
652
- done
653
- fi
654
- fi
655
-
656
- if [ $do10 = yes ] ; then
657
- echo $title10
658
- if [ $utf -eq 0 -o $ucp -eq 0 ] ; then
659
- echo " Skipped because Unicode property support is not available"
660
- else
661
- for opt in "" "-s"; do
662
- $sim $valgrind ./pcretest -q $bmode $opt -dfa $testdata/testinput10 testtry
663
- if [ $? = 0 ] ; then
664
- $cf $testdata/testoutput10 testtry
665
- if [ $? != 0 ] ; then exit 1; fi
666
- else exit 1
667
- fi
668
- if [ "$opt" = "-s" ] ; then echo " OK with study" ; else echo " OK"; fi
669
- done
670
- fi
671
- fi
672
-
673
- # Test of internal offsets and code sizes. This test is run only when there
674
- # is Unicode property support and the link size is 2. The actual tests are
675
- # mostly the same as in some of the above, but in this test we inspect some
676
- # offsets and sizes that require a known link size. This is a doublecheck for
677
- # the maintainer, just in case something changes unexpectely. The output from
678
- # this test is not the same in 8-bit and 16-bit modes.
679
-
680
- if [ $do11 = yes ] ; then
681
- echo $title11
682
- if [ $link_size -ne 2 ] ; then
683
- echo " Skipped because link size is not 2"
684
- elif [ $ucp -eq 0 ] ; then
685
- echo " Skipped because Unicode property support is not available"
686
- else
687
- for opt in "" "-s"; do
688
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput11 testtry
689
- if [ $? = 0 ] ; then
690
- $cf $testdata/testoutput11-$bits testtry
691
- if [ $? != 0 ] ; then exit 1; fi
692
- else exit 1
693
- fi
694
- if [ "$opt" = "-s" ] ; then echo " OK with study" ; else echo " OK"; fi
695
- done
696
- fi
697
- fi
698
-
699
- # Test JIT-specific features when JIT is available
700
-
701
- if [ $do12 = yes ] ; then
702
- echo $title12
703
- if [ $jit -eq 0 ] ; then
704
- echo " Skipped because JIT is not available or not usable"
705
- else
706
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput12 testtry
707
- if [ $? = 0 ] ; then
708
- $cf $testdata/testoutput12 testtry
709
- if [ $? != 0 ] ; then exit 1; fi
710
- else exit 1
711
- fi
712
- echo " OK"
713
- fi
714
- fi
715
-
716
- # Test JIT-specific features when JIT is not available
717
-
718
- if [ $do13 = yes ] ; then
719
- echo $title13
720
- if [ $jit -ne 0 ] ; then
721
- echo " Skipped because JIT is available"
722
- else
723
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput13 testtry
724
- if [ $? = 0 ] ; then
725
- $cf $testdata/testoutput13 testtry
726
- if [ $? != 0 ] ; then exit 1; fi
727
- else exit 1
728
- fi
729
- echo " OK"
730
- fi
731
- fi
732
-
733
- # Tests for 8-bit-specific features
734
-
735
- if [ "$do14" = yes ] ; then
736
- echo $title14
737
- if [ "$bits" = "16" -o "$bits" = "32" ] ; then
738
- echo " Skipped when running 16/32-bit tests"
739
- else
740
- cp -f $testdata/saved16 testsaved16
741
- cp -f $testdata/saved32 testsaved32
742
- for opt in "" "-s" $jitopt; do
743
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput14 testtry
744
- if [ $? = 0 ] ; then
745
- $cf $testdata/testoutput14 testtry
746
- if [ $? != 0 ] ; then exit 1; fi
747
- else exit 1
748
- fi
749
- if [ "$opt" = "-s" ] ; then echo " OK with study"
750
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
751
- else echo " OK"
752
- fi
753
- done
754
- fi
755
- fi
756
-
757
- # Tests for 8-bit-specific features (needs UTF-8 support)
758
-
759
- if [ "$do15" = yes ] ; then
760
- echo $title15
761
- if [ "$bits" = "16" -o "$bits" = "32" ] ; then
762
- echo " Skipped when running 16/32-bit tests"
763
- elif [ $utf -eq 0 ] ; then
764
- echo " Skipped because UTF-$bits support is not available"
765
- else
766
- for opt in "" "-s" $jitopt; do
767
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput15 testtry
768
- if [ $? = 0 ] ; then
769
- $cf $testdata/testoutput15 testtry
770
- if [ $? != 0 ] ; then exit 1; fi
771
- else exit 1
772
- fi
773
- if [ "$opt" = "-s" ] ; then echo " OK with study"
774
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
775
- else echo " OK"
776
- fi
777
- done
778
- fi
779
- fi
780
-
781
- # Tests for 8-bit-specific features (Unicode property support)
782
-
783
- if [ $do16 = yes ] ; then
784
- echo $title16
785
- if [ "$bits" = "16" -o "$bits" = "32" ] ; then
786
- echo " Skipped when running 16/32-bit tests"
787
- elif [ $ucp -eq 0 ] ; then
788
- echo " Skipped because Unicode property support is not available"
789
- else
790
- for opt in "" "-s" $jitopt; do
791
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput16 testtry
792
- if [ $? = 0 ] ; then
793
- $cf $testdata/testoutput16 testtry
794
- if [ $? != 0 ] ; then exit 1; fi
795
- else exit 1
796
- fi
797
- if [ "$opt" = "-s" ] ; then echo " OK with study"
798
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
799
- else echo " OK"
800
- fi
801
- done
802
- fi
803
- fi
804
-
805
- # Tests for 16/32-bit-specific features
806
-
807
- if [ $do17 = yes ] ; then
808
- echo $title17
809
- if [ "$bits" = "8" ] ; then
810
- echo " Skipped when running 8-bit tests"
811
- else
812
- for opt in "" "-s" $jitopt; do
813
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput17 testtry
814
- if [ $? = 0 ] ; then
815
- $cf $testdata/testoutput17 testtry
816
- if [ $? != 0 ] ; then exit 1; fi
817
- else exit 1
818
- fi
819
- if [ "$opt" = "-s" ] ; then echo " OK with study"
820
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
821
- else echo " OK"
822
- fi
823
- done
824
- fi
825
- fi
826
-
827
- # Tests for 16/32-bit-specific features (UTF-16/32 support)
828
-
829
- if [ $do18 = yes ] ; then
830
- echo $title18
831
- if [ "$bits" = "8" ] ; then
832
- echo " Skipped when running 8-bit tests"
833
- elif [ $utf -eq 0 ] ; then
834
- echo " Skipped because UTF-$bits support is not available"
835
- else
836
- for opt in "" "-s" $jitopt; do
837
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput18 testtry
838
- if [ $? = 0 ] ; then
839
- $cf $testdata/testoutput18-$bits testtry
840
- if [ $? != 0 ] ; then exit 1; fi
841
- else exit 1
842
- fi
843
- if [ "$opt" = "-s" ] ; then echo " OK with study"
844
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
845
- else echo " OK"
846
- fi
847
- done
848
- fi
849
- fi
850
-
851
- # Tests for 16/32-bit-specific features (Unicode property support)
852
-
853
- if [ $do19 = yes ] ; then
854
- echo $title19
855
- if [ "$bits" = "8" ] ; then
856
- echo " Skipped when running 8-bit tests"
857
- elif [ $ucp -eq 0 ] ; then
858
- echo " Skipped because Unicode property support is not available"
859
- else
860
- for opt in "" "-s" $jitopt; do
861
- $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput19 testtry
862
- if [ $? = 0 ] ; then
863
- $cf $testdata/testoutput19 testtry
864
- if [ $? != 0 ] ; then exit 1; fi
865
- else exit 1
866
- fi
867
- if [ "$opt" = "-s" ] ; then echo " OK with study"
868
- elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
869
- else echo " OK"
870
- fi
871
- done
872
- fi
873
- fi
874
-
875
- # Tests for 16/32-bit-specific features in DFA non-UTF-16/32 mode
876
-
877
- if [ $do20 = yes ] ; then
878
- echo $title20
879
- if [ "$bits" = "8" ] ; then
880
- echo " Skipped when running 8-bit tests"
881
- else
882
- for opt in "" "-s"; do
883
- $sim $valgrind ./pcretest -q $bmode $opt -dfa $testdata/testinput20 testtry
884
- if [ $? = 0 ] ; then
885
- $cf $testdata/testoutput20 testtry
886
- if [ $? != 0 ] ; then exit 1; fi
887
- else exit 1
888
- fi
889
- if [ "$opt" = "-s" ] ; then echo " OK with study"
890
- else echo " OK"
891
- fi
892
- done
893
- fi
894
- fi
895
-
896
- # Tests for reloads with 16/32-bit library
897
-
898
- if [ $do21 = yes ] ; then
899
- echo $title21
900
- if [ "$bits" = "8" ] ; then
901
- echo " Skipped when running 8-bit tests"
902
- elif [ $link_size -ne 2 ] ; then
903
- echo " Skipped because link size is not 2"
904
- else
905
- cp -f $testdata/saved8 testsaved8
906
- cp -f $testdata/saved16LE-1 testsaved16LE-1
907
- cp -f $testdata/saved16BE-1 testsaved16BE-1
908
- cp -f $testdata/saved32LE-1 testsaved32LE-1
909
- cp -f $testdata/saved32BE-1 testsaved32BE-1
910
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput21 testtry
911
- if [ $? = 0 ] ; then
912
- $cf $testdata/testoutput21-$bits testtry
913
- if [ $? != 0 ] ; then exit 1; fi
914
- else exit 1
915
- fi
916
- echo " OK"
917
- fi
918
- fi
919
-
920
- # Tests for reloads with 16/32-bit library (UTF-16 support)
921
-
922
- if [ $do22 = yes ] ; then
923
- echo $title22
924
- if [ "$bits" = "8" ] ; then
925
- echo " Skipped when running 8-bit tests"
926
- elif [ $utf -eq 0 ] ; then
927
- echo " Skipped because UTF-$bits support is not available"
928
- elif [ $link_size -ne 2 ] ; then
929
- echo " Skipped because link size is not 2"
930
- else
931
- cp -f $testdata/saved16LE-2 testsaved16LE-2
932
- cp -f $testdata/saved16BE-2 testsaved16BE-2
933
- cp -f $testdata/saved32LE-2 testsaved32LE-2
934
- cp -f $testdata/saved32BE-2 testsaved32BE-2
935
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput22 testtry
936
- if [ $? = 0 ] ; then
937
- $cf $testdata/testoutput22-$bits testtry
938
- if [ $? != 0 ] ; then exit 1; fi
939
- else exit 1
940
- fi
941
- echo " OK"
942
- fi
943
- fi
944
-
945
- if [ $do23 = yes ] ; then
946
- echo $title23
947
- if [ "$bits" = "8" -o "$bits" = "32" ] ; then
948
- echo " Skipped when running 8/32-bit tests"
949
- else
950
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput23 testtry
951
- if [ $? = 0 ] ; then
952
- $cf $testdata/testoutput23 testtry
953
- if [ $? != 0 ] ; then exit 1; fi
954
- else exit 1
955
- fi
956
- echo " OK"
957
- fi
958
- fi
959
-
960
- if [ $do24 = yes ] ; then
961
- echo $title24
962
- if [ "$bits" = "8" -o "$bits" = "32" ] ; then
963
- echo " Skipped when running 8/32-bit tests"
964
- elif [ $utf -eq 0 ] ; then
965
- echo " Skipped because UTF-$bits support is not available"
966
- else
967
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput24 testtry
968
- if [ $? = 0 ] ; then
969
- $cf $testdata/testoutput24 testtry
970
- if [ $? != 0 ] ; then exit 1; fi
971
- else exit 1
972
- fi
973
- echo " OK"
974
- fi
975
- fi
976
-
977
- if [ $do25 = yes ] ; then
978
- echo $title25
979
- if [ "$bits" = "8" -o "$bits" = "16" ] ; then
980
- echo " Skipped when running 8/16-bit tests"
981
- else
982
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput25 testtry
983
- if [ $? = 0 ] ; then
984
- $cf $testdata/testoutput25 testtry
985
- if [ $? != 0 ] ; then exit 1; fi
986
- else exit 1
987
- fi
988
- echo " OK"
989
- fi
990
- fi
991
-
992
- if [ $do26 = yes ] ; then
993
- echo $title26
994
- if [ "$bits" = "8" -o "$bits" = "16" ] ; then
995
- echo " Skipped when running 8/16-bit tests"
996
- elif [ $utf -eq 0 ] ; then
997
- echo " Skipped because UTF-$bits support is not available"
998
- else
999
- $sim $valgrind ./pcretest -q $bmode $testdata/testinput26 testtry
1000
- if [ $? = 0 ] ; then
1001
- $cf $testdata/testoutput26 testtry
1002
- if [ $? != 0 ] ; then exit 1; fi
1003
- else exit 1
1004
- fi
1005
- echo " OK"
1006
- fi
1007
- fi
1008
-
1009
- # End of loop for 8/16/32-bit tests
1010
- done
1011
-
1012
- # Clean up local working files
1013
- rm -f test3input test3output testNinput testsaved* teststderr teststdout testtry
1014
-
1015
- # End