From 538ef4f8d6632b422169714282844c34b4bfc271 Mon Sep 17 00:00:00 2001 From: ph10 Date: Mon, 2 Apr 2007 13:32:07 +0000 Subject: Daniel's patches to add to the CMake support. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@144 2f5784b3-3f2a-0410-8824-cb99058d5e15 --- RunTest.bat | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) (limited to 'RunTest.bat') diff --git a/RunTest.bat b/RunTest.bat index f9b3519..1db39e5 100644 --- a/RunTest.bat +++ b/RunTest.bat @@ -1,20 +1,34 @@ -rem This file was contributed by Ralf Junker. -rem -rem MS Windows batch file to run pcretest on testfiles with the correct options. -rem -rem Assumes that this file as well as pcretest.exe is located in the PCRE root folder. -rem -rem Output written to a newly generated subfolder named "testdata". +@rem This file was contributed by Ralf Junker, and touched up by +@rem Daniel Richard G. +@rem +@rem MS Windows batch file to run pcretest on testfiles with the correct +@rem options. +@rem +@rem Output is written to a newly created subfolder named "testdata". -if not exist .\testout\ md .\testout\ +setlocal -pcretest -q testdata\testinput1 > testout\testoutput1 -pcretest -q testdata\testinput2 > testout\testoutput2 -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 +if [%srcdir%]==[] set srcdir=. +if [%pcretest%]==[] set pcretest=pcretest +if not exist testout md testout + +%pcretest% -q %srcdir%\testdata\testinput1 > testout\testoutput1 +%pcretest% -q %srcdir%\testdata\testinput2 > testout\testoutput2 +%pcretest% -q %srcdir%\testdata\testinput3 > testout\testoutput3 +%pcretest% -q %srcdir%\testdata\testinput4 > testout\testoutput4 +%pcretest% -q %srcdir%\testdata\testinput5 > testout\testoutput5 +%pcretest% -q %srcdir%\testdata\testinput6 > testout\testoutput6 +%pcretest% -q -dfa %srcdir%\testdata\testinput7 > testout\testoutput7 +%pcretest% -q -dfa %srcdir%\testdata\testinput8 > testout\testoutput8 +%pcretest% -q -dfa %srcdir%\testdata\testinput9 > testout\testoutput9 + +fc /n %srcdir%\testdata\testoutput1 testout\testoutput1 +fc /n %srcdir%\testdata\testoutput2 testout\testoutput2 +rem fc /n %srcdir%\testdata\testoutput3 testout\testoutput3 +fc /n %srcdir%\testdata\testoutput4 testout\testoutput4 +fc /n %srcdir%\testdata\testoutput5 testout\testoutput5 +fc /n %srcdir%\testdata\testoutput6 testout\testoutput6 +fc /n %srcdir%\testdata\testoutput7 testout\testoutput7 +fc /n %srcdir%\testdata\testoutput8 testout\testoutput8 +fc /n %srcdir%\testdata\testoutput9 testout\testoutput9 -- cgit v1.2.1