/[pcre]/code/trunk/RunTest.bat
ViewVC logotype

Diff of /code/trunk/RunTest.bat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 708 by ph10, Fri Sep 23 11:03:03 2011 UTC revision 1053 by zherczeg, Tue Oct 9 15:43:08 2012 UTC
# Line 1  Line 1 
1  @echo off  @echo off
2  @rem This file must use CRLF linebreaks to function properly  @rem This file must use CRLF linebreaks to function properly
3  @rem and user must have external findstr command  @rem and requires both pcretest and pcregrep
4  @rem  This file was contributed by Ralf Junker, and touched up by  @rem  This file was originally contributed by Ralf Junker, and touched up by
5  @rem  Daniel Richard G. Tests 10-12 added by Philip H.  @rem  Daniel Richard G. Tests 10-12 added by Philip H.
6  @rem  Philip H also changed test 3 to use "wintest" files.  @rem  Philip H also changed test 3 to use "wintest" files.
7  @rem  @rem
8  @rem  Updated by Tom Fortmann to support explicit test numbers on the command line.  @rem  Updated by Tom Fortmann to support explicit test numbers on the command line.
9  @rem  Added argument validation and added error reporting.  @rem  Added argument validation and added error reporting.
10  @rem  @rem
11  @rem  MS Windows batch file to run pcretest on testfiles with the correct  @rem  MS Windows batch file to run pcretest on testfiles with the correct
12  @rem  options.  @rem  options.
13  @rem  @rem
14  @rem Sheri Pierce added logic to skip feature dependent tests  @rem Sheri Pierce added logic to skip feature dependent tests
15  @rem tests 4 5 8 and 12 require utf8 support  @rem tests 4 5 9 15 and 18 require utf support
16  @rem tests 6 9 13 require ucp support  @rem tests 6 7 10 16 and 19 require ucp support
17  @rem 10 requires ucp and link size 2  @rem 11 requires ucp and link size 2
18  @rem 14 requires presense of jit support  @rem 12 requires presense of jit support
19  @rem 15 requires absence of jit support  @rem 13 requires absence of jit support
20    @rem Sheri P also added override tests for study and jit testing
21  @rem Sheri P also added override tests for study and jit testing  @rem Zoltan Herczeg added libpcre16 support
22  @rem Output is written to newly created subfolders named testout testoutstudy and testoutjit.  
23  @rem Current dir should be the build dir. The testdata folder should exist in the current dir or in ..  setlocal enabledelayedexpansion
24  @rem Copy RunTest.bat to the build dir manually if necessary.  if [%srcdir%]==[] (
25  @rem  if exist testdata\ set srcdir=.)
26    if [%srcdir%]==[] (
27  setlocal enabledelayedexpansion  if exist ..\testdata\ set srcdir=..)
28    if [%srcdir%]==[] (
29  if exist testdata set srcdir=.  if exist ..\..\testdata\ set srcdir=..\..)
30  if [%srcdir%]==[]   set srcdir=..  if NOT exist %srcdir%\testdata\ (
31  if NOT exist %srcdir%\testdata (  Error: echo distribution testdata folder not found!
32  echo distribution testdata folder not found.  call :conferror
33  exit /b 1  exit /b 1
34  goto :eof  goto :eof
35  )  )
36  if [%pcretest%]==[] set pcretest=pcretest  
37    if [%pcretest%]==[] set pcretest=.\pcretest.exe
38  %pcretest% -C |findstr /C:"No UTF-8 support" >NUL  
39  set utf8=%ERRORLEVEL%  echo source dir is %srcdir%
40  %pcretest% -C |findstr /C:"No Unicode properties support" >NUL  echo pcretest=%pcretest%
41  set ucp=%ERRORLEVEL%  
42  %pcretest% -C |findstr /C:"No just-in-time compiler support" >NUL  if NOT exist %pcretest% (
43  set jit=%ERRORLEVEL%  echo Error: %pcretest% not found!
44  %pcretest% -C |findstr /C:"Internal link size = 2" >NUL  echo.
45  set link2=%ERRORLEVEL%  call :conferror
46    exit /b 1
47  set ucpandlink2=0  )
48  if %ucp% EQU 1 (  
49   if %link2% EQU 0 set ucpandlink2=1  %pcretest% -C linksize >NUL
50  )  set link_size=%ERRORLEVEL%
51    %pcretest% -C pcre8 >NUL
52  if not exist testout md testout  set support8=%ERRORLEVEL%
53  if not exist testoutstudy md testoutstudy  %pcretest% -C pcre16 >NUL
54  if not exist testoutjit md testoutjit  set support16=%ERRORLEVEL%
55    %pcretest% -C utf >NUL
56  set do1=no  set utf=%ERRORLEVEL%
57  set do2=no  %pcretest% -C ucp >NUL
58  set do3=no  set ucp=%ERRORLEVEL%
59  set do4=no  %pcretest% -C jit >NUL
60  set do5=no  set jit=%ERRORLEVEL%
61  set do6=no  
62  set do7=no  if %support8% EQU 1 (
63  set do8=no  if not exist testout8 md testout8
64  set do9=no  if not exist testoutstudy8 md testoutstudy8
65  set do10=no  if not exist testoutjit8 md testoutjit8
66  set do11=no  )
67  set do12=no  
68  set do13=no  if %support16% EQU 1 (
69  set do14=no  if not exist testout16 md testout16
70  set do15=no  if not exist testoutstudy16 md testoutstudy16
71  set all=yes  if not exist testoutjit16 md testoutjit16
72    )
73  for %%a in (%*) do (  
74    set valid=no  set do1=no
75    for %%v in (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) do if %%v == %%a set valid=yes  set do2=no
76    if "!valid!" == "yes" (  set do3=no
77      set do%%a=yes  set do4=no
78      set all=no  set do5=no
79  ) else (  set do6=no
80      echo Invalid test number - %%a!  set do7=no
81          echo Usage %0 [ test_number ] ...  set do8=no
82          echo Where test_number is one or more optional test numbers 1 through 15, default is all tests.  set do9=no
83          exit /b 1  set do10=no
84  )  set do11=no
85  )  set do12=no
86  if "%all%" == "yes" (  set do13=no
87    set do1=yes  set do14=no
88    set do2=yes  set do15=no
89    set do3=yes  set do16=no
90    set do4=yes  set do17=no
91    set do5=yes  set do18=no
92    set do6=yes  set do19=no
93    set do7=yes  set do20=no
94    set do8=yes  set all=yes
95    set do9=yes  
96    set do10=yes  for %%a in (%*) do (
97    set do11=yes    set valid=no
98    set do12=yes    for %%v in (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) do if %%v == %%a set valid=yes
99    set do13=yes    if "!valid!" == "yes" (
100    set do14=yes      set do%%a=yes
101    set do15=yes      set all=no
102  )  ) else (
103        echo Invalid test number - %%a!
104  if "%do1%" == "yes" call :do1          echo Usage %0 [ test_number ] ...
105  if "%do2%" == "yes" call :do2          echo Where test_number is one or more optional test numbers 1 through 20, default is all tests.
106  if "%do3%" == "yes" call :do3          exit /b 1
107  if "%do4%" == "yes" call :do4  )
108  if "%do5%" == "yes" call :do5  )
109  if "%do6%" == "yes" call :do6  set failed="no"
110  if "%do7%" == "yes" call :do7  
111  if "%do8%" == "yes" call :do8  if "%all%" == "yes" (
112  if "%do9%" == "yes" call :do9    set do1=yes
113  if "%do10%" == "yes" call :do10    set do2=yes
114  if "%do11%" == "yes" call :do11    set do3=yes
115  if "%do12%" == "yes" call :do12    set do4=yes
116  if "%do13%" == "yes" call :do13    set do5=yes
117  if "%do14%" == "yes" call :do14    set do6=yes
118  if "%do15%" == "yes" call :do15    set do7=yes
119  goto :eof    set do8=yes
120      set do9=yes
121  :runsub    set do10=yes
122  @rem Function to execute pcretest and compare the output    set do11=yes
123  @rem Arguments are as follows:    set do12=yes
124  @rem    set do13=yes
125  @rem       1 = test number    set do14=yes
126  @rem       2 = outputdir    set do15=yes
127  @rem       3 = test name use double quotes    set do16=yes
128  @rem   4 - 9 = pcretest options    set do17=yes
129      set do18=yes
130  if [%1] == [] (    set do19=yes
131    echo Missing test number argument!    set do20=yes
132    exit /b 1  )
133  )  
134    @echo RunTest.bat's pcretest output is written to newly created subfolders named
135  if [%2] == [] (  @echo testout, testoutstudy and testoutjit.
136    echo Missing outputdir!  @echo.
137    exit /b 1  
138  )  set mode=
139    set bits=8
140  if [%3] == [] (  
141    echo Missing test name argument!  :nextMode
142    exit /b 1  if "%mode%" == "" (
143  )    if %support8% EQU 0 goto modeSkip
144      echo.
145  set testinput=testinput%1    echo ---- Testing 8-bit library ----
146  set testoutput=testoutput%1    echo.
147  if exist %srcdir%\testdata\win%testinput% (  ) else (
148    set testinput=wintestinput%1    if %support16% EQU 0 goto modeSkip
149    set testoutput=wintestoutput%1    echo.
150  )    echo ---- Testing 16-bit library ----
151      echo.
152  echo.  )
153  echo Test %1: %3  if "%do1%" == "yes" call :do1
154  %pcretest% %4 %5 %6 %7 %8 %9 %srcdir%\testdata\%testinput%>%2\%testoutput%  if "%do2%" == "yes" call :do2
155  if errorlevel 1 (  if "%do3%" == "yes" call :do3
156    echo Test %1: pcretest failed!  if "%do4%" == "yes" call :do4
157    goto :eof  if "%do5%" == "yes" call :do5
158  )  if "%do6%" == "yes" call :do6
159    if "%do7%" == "yes" call :do7
160  fc /n %srcdir%\testdata\%testoutput% %2\%testoutput%  if "%do8%" == "yes" call :do8
161  if errorlevel 1 (  if "%do9%" == "yes" call :do9
162    echo Test %1: file compare failed!  if "%do10%" == "yes" call :do10
163    goto :eof  if "%do11%" == "yes" call :do11
164  )  if "%do12%" == "yes" call :do12
165    if "%do13%" == "yes" call :do13
166  echo Test %1: Passed.  if "%do14%" == "yes" call :do14
167  echo.  if "%do15%" == "yes" call :do15
168  goto :eof  if "%do16%" == "yes" call :do16
169    if "%do17%" == "yes" call :do17
170  :do1  if "%do18%" == "yes" call :do18
171  call :runsub 1 testout "Main functionality - Compatible with Perl 5.8 and above" -q  if "%do19%" == "yes" call :do19
172  call :runsub 1 testoutstudy "Test with Study Override" -q -s  if "%do20%" == "yes" call :do20
173  if %jit% EQU 1 call :runsub 1 testoutjit "Test with JIT Override" -q -s+  :modeSkip
174  goto :eof  if "%mode%" == "" (
175      set mode=-16
176  :do2    set bits=16
177    call :runsub 2 testout "API, errors, internals, and non-Perl stuff" -q    goto nextMode
178    call :runsub 2 testoutstudy "Test with Study Override" -q -s  )
179    if %jit% EQU 1 call :runsub 2 testoutjit "Test with JIT Override" -q -s+  
180  goto :eof  if %failed% == "yes" (
181    echo In above output, one or more of the various tests failed!
182  :do3  exit /b 1
183    call :runsub 3 testout "Locale-specific features" -q  )
184    call :runsub 3 testoutstudy "Test with Study Override" -q -s  echo All OK
185    if %jit% EQU 1 call :runsub 3 testoutjit "Test with JIT Override" -q -s+  goto :eof
186  goto :eof  
187    :runsub
188  :do4  @rem Function to execute pcretest and compare the output
189    if %utf8% EQU 0 (  @rem Arguments are as follows:
190    echo Test 4 Skipped due to absence of UTF-8 support.  @rem
191    goto :eof  @rem       1 = test number
192  )  @rem       2 = outputdir
193    call :runsub 4 testout "UTF-8 support - Compatible with Perl 5.8 and above" -q  @rem       3 = test name use double quotes
194    call :runsub 4 testoutstudy "Test with Study Override" -q -s  @rem   4 - 9 = pcretest options
195    if %jit% EQU 1 call :runsub 4 testoutjit "Test with JIT Override" -q -s+  
196  goto :eof  if [%1] == [] (
197      echo Missing test number argument!
198  :do5    exit /b 1
199    if %utf8% EQU 0 (  )
200    echo Test 5 Skipped due to absence of UTF-8 support.  
201    goto :eof  if [%2] == [] (
202  )    echo Missing outputdir!
203    call :runsub 5 testout "API, internals, and non-Perl stuff for UTF-8 support" -q    exit /b 1
204    call :runsub 5 testoutstudy "Test with Study Override" -q -s  )
205    if %jit% EQU 1 call :runsub 5 testoutjit "Test with JIT Override" -q -s+  
206  goto :eof  if [%3] == [] (
207      echo Missing test name argument!
208  :do6    exit /b 1
209  if %ucp% EQU 0 (  )
210    echo Test 6 Skipped due to absence of ucp support.  
211    goto :eof  set testinput=testinput%1
212  )  set testoutput=testoutput%1
213    call :runsub 6 testout "Unicode property support - Compatible with Perl 5.10 and above" -q  if exist %srcdir%\testdata\win%testinput% (
214    call :runsub 6 testoutstudy "Test with Study Override" -q -s    set testinput=wintestinput%1
215    if %jit% EQU 1 call :runsub 6 testoutjit "Test with JIT Override" -q -s+    set testoutput=wintestoutput%1
216  goto :eof  )
217    
218  :do7  echo Test %1: %3
219    call :runsub 7 testout "DFA matching" -q -dfa  %pcretest% %mode% %4 %5 %6 %7 %8 %9 %srcdir%\testdata\%testinput% >%2%bits%\%testoutput%
220    call :runsub 7 testoutstudy "Test with Study Override" -q -dfa -s  if errorlevel 1 (
221    if %jit% EQU 1 call :runsub 7 testoutjit "Test with JIT Override" -q -dfa -s+    echo.          failed executing command-line:
222  goto :eof    echo.            %pcretest% %mode% %4 %5 %6 %7 %8 %9 %srcdir%\testdata\%testinput% ^>%2%bits%\%testoutput%
223      set failed="yes"
224  :do8    goto :eof
225    if %utf8% EQU 0 (  )
226    echo Test 8 Skipped due to absence of UTF-8 support.  
227    goto :eof  if [%1]==[11] (
228  )    fc /n %srcdir%\testdata\%testoutput%-%bits% %2%bits%\%testoutput% >NUL
229    call :runsub 8 testout "DFA matching with UTF-8" -q -dfa  ) else (
230    call :runsub 8 testoutstudy "Test with Study Override" -q -dfa -s    fc /n %srcdir%\testdata\%testoutput% %2%bits%\%testoutput% >NUL
231    if %jit% EQU 1 call :runsub 8 testoutjit "Test with JIT Override" -q -dfa -s+  )
232    goto :eof  if errorlevel 1 (
233      echo.          failed comparison: fc /n %srcdir%\testdata\%testoutput% %2%bits%\%testoutput%
234  :do9    if [%1]==[2] (
235    if %ucp% EQU 0 (      echo.
236    echo Test 9 Skipped due to absence of ucp support.      echo ** Test 2 requires a lot of stack. PCRE can be configured to
237    goto :eof      echo ** use heap for recursion. Otherwise, to pass Test 2
238  )      echo ** you generally need to allocate 8 mb stack to PCRE.
239    call :runsub 9 testout "DFA matching with Unicode properties" -q -dfa      echo ** See the 'pcrestack' page for a discussion of PCRE's
240    call :runsub 9 testoutstudy "Test with Study Override" -q -dfa -s      echo ** stack usage.
241    if %jit% EQU 1 call :runsub 9 testoutjit "Test with JIT Override" -q -dfa -s+      echo.
242  goto :eof  )
243      if [%1]==[3] (
244  :do10      echo.
245    if %ucpandlink2% EQU 0 (      echo ** Test 3 failure usually means french locale is not
246    echo Test 10 Skipped due to requirements of ucp support AND link size 2.      echo ** available on the system, rather than a bug or problem with PCRE.
247    goto :eof      echo.
248  )      goto :eof
249    call :runsub 10 testout "Internal offsets and code size tests" -q  )
250    call :runsub 10 testoutstudy "Test with Study Override" -q -s  
251    if %jit% EQU 1 call :runsub 10 testoutjit "Test with JIT Override" -q -s+    set failed="yes"
252  goto :eof    goto :eof
253    )
254  :do11  
255    call :runsub 11 testout "Features from Perl 5.10 and above" -q  echo.          Passed.
256    call :runsub 11 testoutstudy "Test with Study Override" -q -s  goto :eof
257    if %jit% EQU 1 call :runsub 11 testoutjit "Test with JIT Override" -q -s+  
258  goto :eof  :do1
259    call :runsub 1 testout "Main functionality - Compatible with Perl 5.8 and above" -q
260  :do12  call :runsub 1 testoutstudy "Test with Study Override" -q -s
261    if %utf8% EQU 0 (  if %jit% EQU 1 call :runsub 1 testoutjit "Test with JIT Override" -q -s+
262    echo Test 12 Skipped due to absence of UTF-8 support.  goto :eof
263    goto :eof  
264  )  :do2
265    call :runsub 12 testout "Features from Perl 5.10 and above w UTF-8" -q    call :runsub 2 testout "API, errors, internals, and non-Perl stuff (not UTF-8)" -q
266    call :runsub 12 testoutstudy "Test with Study Override" -q -s    call :runsub 2 testoutstudy "Test with Study Override" -q -s
267    if %jit% EQU 1 call :runsub 12 testoutjit "Test with JIT Override" -q -s+    if %jit% EQU 1 call :runsub 2 testoutjit "Test with JIT Override" -q -s+
268  goto :eof  goto :eof
269    
270  :do13  :do3
271    if %ucp% EQU 0 (    call :runsub 3 testout "Locale-specific features" -q
272    echo Test 13 Skipped due to absence of ucp support.    call :runsub 3 testoutstudy "Test with Study Override" -q -s
273    goto :eof    if %jit% EQU 1 call :runsub 3 testoutjit "Test with JIT Override" -q -s+
274  )  goto :eof
275  call :runsub 13 testout "API internals and non-Perl stuff for Unicode property support" -q  
276  call :runsub 13 testoutstudy "Test with Study Override" -q -s  :do4
277  if %jit% EQU 1 call :runsub 13 testoutjit "Test with JIT Override" -q -s+    if %utf% EQU 0 (
278  goto :eof    echo Test 4 Skipped due to absence of UTF-%bits% support.
279      goto :eof
280  :do14  )
281  if %jit% EQU 0 (    call :runsub 4 testout "UTF-%bits% support - Compatible with Perl 5.8 and above" -q
282    echo Test 14 Skipped due to absence of JIT support.    call :runsub 4 testoutstudy "Test with Study Override" -q -s
283    goto :eof    if %jit% EQU 1 call :runsub 4 testoutjit "Test with JIT Override" -q -s+
284  )  goto :eof
285    call :runsub 14 testout "JIT-specific features - have JIT" -q  
286    call :runsub 14 testoutstudy "Test with Study Override" -q -s  :do5
287    call :runsub 14 testoutjit "Test with JIT Override" -q -s+    if %utf% EQU 0 (
288  goto :eof    echo Test 5 Skipped due to absence of UTF-%bits% support.
289      goto :eof
290  :do15  )
291    if %jit% EQU 1 (    call :runsub 5 testout "API, internals, and non-Perl stuff for UTF-%bits% support" -q
292    echo Test 15 Skipped due to presence of JIT support.    call :runsub 5 testoutstudy "Test with Study Override" -q -s
293    goto :eof    if %jit% EQU 1 call :runsub 5 testoutjit "Test with JIT Override" -q -s+
294  )  goto :eof
295    call :runsub 15 testout "JIT-specific features - no JIT" -q  
296    call :runsub 15 testoutstudy "Test with Study Override" -q -s  :do6
297  goto :eof  if %ucp% EQU 0 (
298      echo Test 6 Skipped due to absence of Unicode property support.
299      goto :eof
300    )
301      call :runsub 6 testout "Unicode property support (Compatible with Perl >= 5.10)" -q
302      call :runsub 6 testoutstudy "Test with Study Override" -q -s
303      if %jit% EQU 1 call :runsub 6 testoutjit "Test with JIT Override" -q -s+
304    goto :eof
305    
306    :do7
307    if %ucp% EQU 0 (
308      echo Test 7 Skipped due to absence of Unicode property support.
309      goto :eof
310    )
311      call :runsub 7 testout "API, internals, and non-Perl stuff for Unicode property support" -q
312      call :runsub 7 testoutstudy "Test with Study Override" -q -s
313      if %jit% EQU 1 call :runsub 7 testoutjit "Test with JIT Override" -q -s+
314    goto :eof
315    
316    :do8
317      call :runsub 8 testout "DFA matching main functionality" -q -dfa
318      call :runsub 8 testoutstudy "Test with Study Override" -q -dfa -s
319    goto :eof
320    
321    :do9
322      if %utf% EQU 0 (
323      echo Test 9 Skipped due to absence of UTF-%bits% support.
324      goto :eof
325    )
326      call :runsub 9 testout "DFA matching with UTF-%bits%" -q -dfa
327      call :runsub 9 testoutstudy "Test with Study Override" -q -dfa -s
328      goto :eof
329    
330    :do10
331      if %ucp% EQU 0 (
332      echo Test 10 Skipped due to absence of Unicode property support.
333      goto :eof
334    )
335      call :runsub 10 testout "DFA matching with Unicode properties" -q -dfa
336      call :runsub 10 testoutstudy "Test with Study Override" -q -dfa -s
337    goto :eof
338    
339    :do11
340      if NOT %link_size% EQU 2 (
341      echo Test 11 Skipped because link size is not 2.
342      goto :eof
343    )
344      if %ucp% EQU 0 (
345      echo Test 11 Skipped due to absence of Unicode property support.
346      goto :eof
347    )
348      call :runsub 11 testout "Internal offsets and code size tests" -q
349      call :runsub 11 testoutstudy "Test with Study Override" -q -s
350    goto :eof
351    
352    :do12
353    if %jit% EQU 0 (
354      echo Test 12 Skipped due to absence of JIT support.
355      goto :eof
356    )
357      call :runsub 12 testout "JIT-specific features - have JIT" -q
358    goto :eof
359    
360    :do13
361      if %jit% EQU 1 (
362      echo Test 13 Skipped due to presence of JIT support.
363      goto :eof
364    )
365      call :runsub 13 testout "JIT-specific features - no JIT" -q
366    goto :eof
367    
368    :do14
369      if NOT %bits% EQU 8 (
370      echo Test 14 Skipped when running 16-bit tests.
371      goto :eof
372    )
373      copy /Y %srcdir%\testdata\saved16 testsaved16
374      call :runsub 14 testout "Specials for the basic 8-bit library" -q
375      call :runsub 14 testoutstudy "Test with Study Override" -q -s
376      if %jit% EQU 1 call :runsub 14 testoutjit "Test with JIT Override" -q -s+
377    goto :eof
378    
379    :do15
380      if NOT %bits% EQU 8 (
381      echo Test 15 Skipped when running 16-bit tests.
382      goto :eof
383    )
384      if %utf% EQU 0 (
385      echo Test 15 Skipped due to absence of UTF-8 support.
386      goto :eof
387    )
388      call :runsub 15 testout "Specials for the 8-bit library with UTF-8 support" -q
389      call :runsub 15 testoutstudy "Test with Study Override" -q -s
390      if %jit% EQU 1 call :runsub 15 testoutjit "Test with JIT Override" -q -s+
391    goto :eof
392    
393    :do16
394      if NOT %bits% EQU 8 (
395      echo Test 16 Skipped when running 16-bit tests.
396      goto :eof
397    )
398      if %ucp% EQU 0 (
399      echo Test 16 Skipped due to absence of Unicode property support.
400      goto :eof
401    )
402      call :runsub 16 testout "Specials for the 8-bit library with Unicode propery support" -q
403      call :runsub 16 testoutstudy "Test with Study Override" -q -s
404      if %jit% EQU 1 call :runsub 16 testoutjit "Test with JIT Override" -q -s+
405    goto :eof
406    
407    :do17
408      if NOT %bits% EQU 16 (
409      echo Test 17 Skipped when running 8-bit tests.
410      goto :eof
411    )
412      copy /Y %srcdir%\testdata\saved8 testsaved8
413      copy /Y %srcdir%\testdata\saved16LE-1 testsaved16LE-1
414      copy /Y %srcdir%\testdata\saved16BE-1 testsaved16BE-1
415      call :runsub 17 testout "Specials for the basic 8-bit library" -q
416      call :runsub 17 testoutstudy "Test with Study Override" -q -s
417      if %jit% EQU 1 call :runsub 17 testoutjit "Test with JIT Override" -q -s+
418    goto :eof
419    
420    :do18
421      if NOT %bits% EQU 16 (
422      echo Test 18 Skipped when running 8-bit tests.
423      goto :eof
424    )
425      if %utf% EQU 0 (
426      echo Test 18 Skipped due to absence of UTF-8 support.
427      goto :eof
428    )
429      copy /Y %srcdir%\testdata\saved16LE-2 testsaved16LE-2
430      copy /Y %srcdir%\testdata\saved16BE-2 testsaved16BE-2
431      call :runsub 18 testout "Specials for the basic 8-bit library" -q
432      call :runsub 18 testoutstudy "Test with Study Override" -q -s
433      if %jit% EQU 1 call :runsub 18 testoutjit "Test with JIT Override" -q -s+
434    goto :eof
435    
436    :do19
437      if NOT %bits% EQU 16 (
438      echo Test 19 Skipped when running 8-bit tests.
439      goto :eof
440    )
441      if %ucp% EQU 0 (
442      echo Test 19 Skipped due to absence of Unicode property support.
443      goto :eof
444    )
445      call :runsub 19 testout "Specials for the basic 8-bit library" -q
446      call :runsub 19 testoutstudy "Test with Study Override" -q -s
447      if %jit% EQU 1 call :runsub 19 testoutjit "Test with JIT Override" -q -s+
448    goto :eof
449    
450    :do20
451      if NOT %bits% EQU 16 (
452      echo Test 20 Skipped when running 8-bit tests.
453      goto :eof
454    )
455      call :runsub 20 testout "DFA specials for the basic 16-bit library" -q
456      call :runsub 20 testoutstudy "Test with Study Override" -q -s
457    goto :eof
458    
459    :conferror
460    @echo.
461    @echo Either your build is incomplete or you have a configuration error.
462    @echo.
463    @echo If configured with cmake and executed via "make test" or the MSVC "RUN_TESTS"
464    @echo project, pcre_test.bat defines variables and automatically calls RunTest.bat.
465    @echo For manual testing of all available features, after configuring with cmake
466    @echo and building, you can run the built pcre_test.bat. For best results with
467    @echo cmake builds and tests avoid directories with full path names that include
468    @echo spaces for source or build.
469    @echo.
470    @echo Otherwise, if the build dir is in a subdir of the source dir, testdata needed
471    @echo for input and verification should be found automatically when (from the
472    @echo location of the the built exes) you call RunTest.bat. By default RunTest.bat
473    @echo runs all tests compatible with the linked pcre library but it can be given
474    @echo a test number as an argument.
475    @echo.
476    @echo If the build dir is not under the source dir you can either copy your exes
477    @echo to the source folder or copy RunTest.bat and the testdata folder to the
478    @echo location of your built exes and then run RunTest.bat.
479    @echo.
480    goto :eof

Legend:
Removed from v.708  
changed lines
  Added in v.1053

  ViewVC Help
Powered by ViewVC 1.1.5