summaryrefslogtreecommitdiff
path: root/RunTest.bat
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-04-02 13:32:07 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-04-02 13:32:07 +0000
commit538ef4f8d6632b422169714282844c34b4bfc271 (patch)
tree67867bc84c7834cad2a0c7c65340605c1a02ea9d /RunTest.bat
parentf8735bf7b631d53067a040bd9f2c04b8f80c6dae (diff)
downloadpcre-538ef4f8d6632b422169714282844c34b4bfc271.tar.gz
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
Diffstat (limited to 'RunTest.bat')
-rw-r--r--RunTest.bat48
1 files changed, 31 insertions, 17 deletions
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