/[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 1052 by zherczeg, Mon Jan 16 08:35:42 2012 UTC revision 1053 by zherczeg, Tue Oct 9 15:43:08 2012 UTC
# Line 27  if [%srcdir%]==[] ( Line 27  if [%srcdir%]==[] (
27  if exist ..\testdata\ set srcdir=..)  if exist ..\testdata\ set srcdir=..)
28  if [%srcdir%]==[] (  if [%srcdir%]==[] (
29  if exist ..\..\testdata\ set srcdir=..\..)  if exist ..\..\testdata\ set srcdir=..\..)
30  if NOT exist "%srcdir%\testdata\" (  if NOT exist %srcdir%\testdata\ (
31  Error: echo distribution testdata folder not found!  Error: echo distribution testdata folder not found!
32  call :conferror  call :conferror
33  exit /b 1  exit /b 1
34  goto :eof  goto :eof
35  )  )
36    
37  if "%pcretest%"=="" set pcretest=.\pcretest.exe  if [%pcretest%]==[] set pcretest=.\pcretest.exe
38    
39  echo source dir is %srcdir%  echo source dir is %srcdir%
40  echo pcretest=%pcretest%  echo pcretest=%pcretest%
41    
42  if NOT exist "%pcretest%" (  if NOT exist %pcretest% (
43  echo Error: "%pcretest%" not found!  echo Error: %pcretest% not found!
44  echo.  echo.
45  call :conferror  call :conferror
46  exit /b 1  exit /b 1
47  )  )
48    
49  "%pcretest%" -C linksize >NUL  %pcretest% -C linksize >NUL
50  set link_size=%ERRORLEVEL%  set link_size=%ERRORLEVEL%
51  "%pcretest%" -C pcre8 >NUL  %pcretest% -C pcre8 >NUL
52  set support8=%ERRORLEVEL%  set support8=%ERRORLEVEL%
53  "%pcretest%" -C pcre16 >NUL  %pcretest% -C pcre16 >NUL
54  set support16=%ERRORLEVEL%  set support16=%ERRORLEVEL%
55  "%pcretest%" -C utf >NUL  %pcretest% -C utf >NUL
56  set utf=%ERRORLEVEL%  set utf=%ERRORLEVEL%
57  "%pcretest%" -C ucp >NUL  %pcretest% -C ucp >NUL
58  set ucp=%ERRORLEVEL%  set ucp=%ERRORLEVEL%
59  "%pcretest%" -C jit >NUL  %pcretest% -C jit >NUL
60  set jit=%ERRORLEVEL%  set jit=%ERRORLEVEL%
61    
62  if %support8% EQU 1 (  if %support8% EQU 1 (
# Line 216  if exist %srcdir%\testdata\win%testinput Line 216  if exist %srcdir%\testdata\win%testinput
216  )  )
217    
218  echo Test %1: %3  echo Test %1: %3
219  "%pcretest%" %mode% %4 %5 %6 %7 %8 %9 "%srcdir%\testdata\%testinput%">%2%bits%\%testoutput%  %pcretest% %mode% %4 %5 %6 %7 %8 %9 %srcdir%\testdata\%testinput% >%2%bits%\%testoutput%
220  if errorlevel 1 (  if errorlevel 1 (
221    echo.          failed executing command-line:    echo.          failed executing command-line:
222    echo.            "%pcretest%" %mode% %4 %5 %6 %7 %8 %9 "%srcdir%\testdata\%testinput%"^>%2%bits%\%testoutput%    echo.            %pcretest% %mode% %4 %5 %6 %7 %8 %9 %srcdir%\testdata\%testinput% ^>%2%bits%\%testoutput%
223    set failed="yes"    set failed="yes"
224    goto :eof    goto :eof
225  )  )
226    
227  if [%1]==[11] (  if [%1]==[11] (
228    fc /n "%srcdir%\testdata\%testoutput%-%bits%" "%2%bits%\%testoutput%">NUL    fc /n %srcdir%\testdata\%testoutput%-%bits% %2%bits%\%testoutput% >NUL
229  ) else (  ) else (
230    fc /n "%srcdir%\testdata\%testoutput%" "%2%bits%\%testoutput%">NUL    fc /n %srcdir%\testdata\%testoutput% %2%bits%\%testoutput% >NUL
231  )  )
232  if errorlevel 1 (  if errorlevel 1 (
233    echo.          failed comparison: fc /n "%srcdir%\testdata\%testoutput%" "%2%bits%\%testoutput%"    echo.          failed comparison: fc /n %srcdir%\testdata\%testoutput% %2%bits%\%testoutput%
234    if [%1]==[2] (    if [%1]==[2] (
235      echo.      echo.
236      echo ** Test 2 requires a lot of stack. PCRE can be configured to      echo ** Test 2 requires a lot of stack. PCRE can be configured to
# Line 370  goto :eof Line 370  goto :eof
370    echo Test 14 Skipped when running 16-bit tests.    echo Test 14 Skipped when running 16-bit tests.
371    goto :eof    goto :eof
372  )  )
373    copy /Y "%srcdir%\testdata\saved16" testsaved16    copy /Y %srcdir%\testdata\saved16 testsaved16
374    call :runsub 14 testout "Specials for the basic 8-bit library" -q    call :runsub 14 testout "Specials for the basic 8-bit library" -q
375    call :runsub 14 testoutstudy "Test with Study Override" -q -s    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+    if %jit% EQU 1 call :runsub 14 testoutjit "Test with JIT Override" -q -s+
# Line 409  goto :eof Line 409  goto :eof
409    echo Test 17 Skipped when running 8-bit tests.    echo Test 17 Skipped when running 8-bit tests.
410    goto :eof    goto :eof
411  )  )
412    copy /Y "%srcdir%\testdata\saved8" testsaved8    copy /Y %srcdir%\testdata\saved8 testsaved8
413    copy /Y "%srcdir%\testdata\saved16LE-1" testsaved16LE-1    copy /Y %srcdir%\testdata\saved16LE-1 testsaved16LE-1
414    copy /Y "%srcdir%\testdata\saved16BE-1" testsaved16BE-1    copy /Y %srcdir%\testdata\saved16BE-1 testsaved16BE-1
415    call :runsub 17 testout "Specials for the basic 8-bit library" -q    call :runsub 17 testout "Specials for the basic 8-bit library" -q
416    call :runsub 17 testoutstudy "Test with Study Override" -q -s    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+    if %jit% EQU 1 call :runsub 17 testoutjit "Test with JIT Override" -q -s+
# Line 426  goto :eof Line 426  goto :eof
426    echo Test 18 Skipped due to absence of UTF-8 support.    echo Test 18 Skipped due to absence of UTF-8 support.
427    goto :eof    goto :eof
428  )  )
429    copy /Y "%srcdir%\testdata\saved16LE-2" testsaved16LE-2    copy /Y %srcdir%\testdata\saved16LE-2 testsaved16LE-2
430    copy /Y "%srcdir%\testdata\saved16BE-2" testsaved16BE-2    copy /Y %srcdir%\testdata\saved16BE-2 testsaved16BE-2
431    call :runsub 18 testout "Specials for the basic 8-bit library" -q    call :runsub 18 testout "Specials for the basic 8-bit library" -q
432    call :runsub 18 testoutstudy "Test with Study Override" -q -s    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+    if %jit% EQU 1 call :runsub 18 testoutjit "Test with JIT Override" -q -s+

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

  ViewVC Help
Powered by ViewVC 1.1.5