| 1 |
rem This file was contributed by Ralf Junker. |
@rem This file was contributed by Ralf Junker, and touched up by |
| 2 |
rem |
@rem Daniel Richard G. |
| 3 |
rem MS Windows batch file to run pcretest on testfiles with the correct options. |
@rem |
| 4 |
rem |
@rem MS Windows batch file to run pcretest on testfiles with the correct |
| 5 |
rem Assumes that this file as well as pcretest.exe is located in the PCRE root folder. |
@rem options. |
| 6 |
rem |
@rem |
| 7 |
rem Output written to a newly generated subfolder named "testdata". |
@rem Output is written to a newly created subfolder named "testdata". |
| 8 |
|
|
| 9 |
if not exist .\testout\ md .\testout\ |
setlocal |
| 10 |
|
|
| 11 |
pcretest -q testdata\testinput1 > testout\testoutput1 |
if [%srcdir%]==[] set srcdir=. |
| 12 |
pcretest -q testdata\testinput2 > testout\testoutput2 |
if [%pcretest%]==[] set pcretest=pcretest |
|
pcretest -q testdata\testinput3 > testout\testoutput3 |
|
|
pcretest -q testdata\testinput4 > testout\testoutput4 |
|
|
pcretest -q testdata\testinput5 > testout\testoutput5 |
|
|
pcretest -q testdata\testinput6 > testout\testoutput6 |
|
|
pcretest -q -dfa testdata\testinput7 > testout\testoutput7 |
|
|
pcretest -q -dfa testdata\testinput8 > testout\testoutput8 |
|
|
pcretest -q -dfa testdata\testinput9 > testout\testoutput9 |
|
| 13 |
|
|
| 14 |
|
if not exist testout md testout |
| 15 |
|
|
| 16 |
|
%pcretest% -q %srcdir%\testdata\testinput1 > testout\testoutput1 |
| 17 |
|
%pcretest% -q %srcdir%\testdata\testinput2 > testout\testoutput2 |
| 18 |
|
%pcretest% -q %srcdir%\testdata\testinput3 > testout\testoutput3 |
| 19 |
|
%pcretest% -q %srcdir%\testdata\testinput4 > testout\testoutput4 |
| 20 |
|
%pcretest% -q %srcdir%\testdata\testinput5 > testout\testoutput5 |
| 21 |
|
%pcretest% -q %srcdir%\testdata\testinput6 > testout\testoutput6 |
| 22 |
|
%pcretest% -q -dfa %srcdir%\testdata\testinput7 > testout\testoutput7 |
| 23 |
|
%pcretest% -q -dfa %srcdir%\testdata\testinput8 > testout\testoutput8 |
| 24 |
|
%pcretest% -q -dfa %srcdir%\testdata\testinput9 > testout\testoutput9 |
| 25 |
|
|
| 26 |
|
fc /n %srcdir%\testdata\testoutput1 testout\testoutput1 |
| 27 |
|
fc /n %srcdir%\testdata\testoutput2 testout\testoutput2 |
| 28 |
|
rem fc /n %srcdir%\testdata\testoutput3 testout\testoutput3 |
| 29 |
|
fc /n %srcdir%\testdata\testoutput4 testout\testoutput4 |
| 30 |
|
fc /n %srcdir%\testdata\testoutput5 testout\testoutput5 |
| 31 |
|
fc /n %srcdir%\testdata\testoutput6 testout\testoutput6 |
| 32 |
|
fc /n %srcdir%\testdata\testoutput7 testout\testoutput7 |
| 33 |
|
fc /n %srcdir%\testdata\testoutput8 testout\testoutput8 |
| 34 |
|
fc /n %srcdir%\testdata\testoutput9 testout\testoutput9 |