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