| 18 |
@rem 14 requires presense of jit support |
@rem 14 requires presense of jit support |
| 19 |
@rem 15 requires absence of jit support |
@rem 15 requires absence of jit support |
| 20 |
@rem Sheri P also added override tests for study and jit testing |
@rem Sheri P also added override tests for study and jit testing |
| 21 |
|
@rem JIT testing n/a for tests 7-10, removed JIT override test for them |
| 22 |
|
@rem removed override tests for 14-15 |
| 23 |
|
|
| 24 |
setlocal enabledelayedexpansion |
setlocal enabledelayedexpansion |
| 25 |
if [%srcdir%]==[] ( |
if [%srcdir%]==[] ( |
| 29 |
if [%srcdir%]==[] ( |
if [%srcdir%]==[] ( |
| 30 |
if exist ..\..\testdata\ set srcdir=..\..) |
if exist ..\..\testdata\ set srcdir=..\..) |
| 31 |
if NOT exist "%srcdir%\testdata\" ( |
if NOT exist "%srcdir%\testdata\" ( |
| 32 |
Error: echo distribution testdata folder not found. |
Error: echo distribution testdata folder not found! |
| 33 |
call :conferror |
call :conferror |
| 34 |
exit /b 1 |
exit /b 1 |
| 35 |
goto :eof |
goto :eof |
| 43 |
echo pcregrep=%pcregrep% |
echo pcregrep=%pcregrep% |
| 44 |
|
|
| 45 |
if NOT exist "%pcregrep%" ( |
if NOT exist "%pcregrep%" ( |
| 46 |
echo Error: "%pcregrep%" not found. |
echo Error: "%pcregrep%" not found! |
| 47 |
echo. |
echo. |
| 48 |
call :conferror |
call :conferror |
| 49 |
exit /b 1 |
exit /b 1 |
| 50 |
) |
) |
| 51 |
|
|
| 52 |
if NOT exist "%pcretest%" ( |
if NOT exist "%pcretest%" ( |
| 53 |
echo Error: "%pcretest%" not found. |
echo Error: "%pcretest%" not found! |
| 54 |
echo. |
echo. |
| 55 |
call :conferror |
call :conferror |
| 56 |
exit /b 1 |
exit /b 1 |
| 221 |
goto :eof |
goto :eof |
| 222 |
|
|
| 223 |
:do2 |
:do2 |
| 224 |
call :runsub 2 testout "API, errors, internals, and non-Perl stuff" -q |
call :runsub 2 testout "API, errors, internals, and non-Perl stuff (not UTF-8)" -q |
| 225 |
call :runsub 2 testoutstudy "Test with Study Override" -q -s |
call :runsub 2 testoutstudy "Test with Study Override" -q -s |
| 226 |
if %jit% EQU 1 call :runsub 2 testoutjit "Test with JIT Override" -q -s+ |
if %jit% EQU 1 call :runsub 2 testoutjit "Test with JIT Override" -q -s+ |
| 227 |
goto :eof |
goto :eof |
| 265 |
:do7 |
:do7 |
| 266 |
call :runsub 7 testout "DFA matching" -q -dfa |
call :runsub 7 testout "DFA matching" -q -dfa |
| 267 |
call :runsub 7 testoutstudy "Test with Study Override" -q -dfa -s |
call :runsub 7 testoutstudy "Test with Study Override" -q -dfa -s |
|
if %jit% EQU 1 call :runsub 7 testoutjit "Test with JIT Override" -q -dfa -s+ |
|
| 268 |
goto :eof |
goto :eof |
| 269 |
|
|
| 270 |
:do8 |
:do8 |
| 274 |
) |
) |
| 275 |
call :runsub 8 testout "DFA matching with UTF-8" -q -dfa |
call :runsub 8 testout "DFA matching with UTF-8" -q -dfa |
| 276 |
call :runsub 8 testoutstudy "Test with Study Override" -q -dfa -s |
call :runsub 8 testoutstudy "Test with Study Override" -q -dfa -s |
|
if %jit% EQU 1 call :runsub 8 testoutjit "Test with JIT Override" -q -dfa -s+ |
|
| 277 |
goto :eof |
goto :eof |
| 278 |
|
|
| 279 |
:do9 |
:do9 |
| 283 |
) |
) |
| 284 |
call :runsub 9 testout "DFA matching with Unicode properties" -q -dfa |
call :runsub 9 testout "DFA matching with Unicode properties" -q -dfa |
| 285 |
call :runsub 9 testoutstudy "Test with Study Override" -q -dfa -s |
call :runsub 9 testoutstudy "Test with Study Override" -q -dfa -s |
|
if %jit% EQU 1 call :runsub 9 testoutjit "Test with JIT Override" -q -dfa -s+ |
|
| 286 |
goto :eof |
goto :eof |
| 287 |
|
|
| 288 |
:do10 |
:do10 |
| 292 |
) |
) |
| 293 |
call :runsub 10 testout "Internal offsets and code size tests" -q |
call :runsub 10 testout "Internal offsets and code size tests" -q |
| 294 |
call :runsub 10 testoutstudy "Test with Study Override" -q -s |
call :runsub 10 testoutstudy "Test with Study Override" -q -s |
|
if %jit% EQU 1 call :runsub 10 testoutjit "Test with JIT Override" -q -s+ |
|
| 295 |
goto :eof |
goto :eof |
| 296 |
|
|
| 297 |
:do11 |
:do11 |
| 326 |
goto :eof |
goto :eof |
| 327 |
) |
) |
| 328 |
call :runsub 14 testout "JIT-specific features - have JIT" -q |
call :runsub 14 testout "JIT-specific features - have JIT" -q |
|
call :runsub 14 testoutstudy "Test with Study Override" -q -s |
|
|
call :runsub 14 testoutjit "Test with JIT Override" -q -s+ |
|
| 329 |
goto :eof |
goto :eof |
| 330 |
|
|
| 331 |
:do15 |
:do15 |
| 334 |
goto :eof |
goto :eof |
| 335 |
) |
) |
| 336 |
call :runsub 15 testout "JIT-specific features - no JIT" -q |
call :runsub 15 testout "JIT-specific features - no JIT" -q |
|
call :runsub 15 testoutstudy "Test with Study Override" -q -s |
|
| 337 |
goto :eof |
goto :eof |
| 338 |
|
|
| 339 |
:conferror |
:conferror |
| 340 |
@echo Configuration error. |
@echo. |
| 341 |
|
@echo Either your build is incomplete or you have a configuration error. |
| 342 |
@echo. |
@echo. |
| 343 |
@echo If configured with cmake and executed via "make test" or the MSVC "RUN_TESTS" |
@echo If configured with cmake and executed via "make test" or the MSVC "RUN_TESTS" |
| 344 |
@echo project, pcre_test.bat defines variables and automatically calls RunTest.bat. |
@echo project, pcre_test.bat defines variables and automatically calls RunTest.bat. |