/vendor/pcre/RunTest.bat

http://github.com/feyeleanor/RubyGoLightly · Batch · 39 lines · 34 code · 5 blank · 0 comment · 3 complexity · d0644e08c4bb78433f9412a136b9d777 MD5 · raw file

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