File: RunTest.bat

package info (click to toggle)
pcre3 4.5%2B7.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,076 kB
  • ctags: 1,812
  • sloc: ansic: 17,533; sh: 9,563; cpp: 2,961; pascal: 607; perl: 422; makefile: 347
file content (39 lines) | stat: -rw-r--r-- 1,878 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@rem  This file was contributed by Ralf Junker, and touched up by
@rem  Daniel Richard G. Test 10 added by Philip H.
@rem  Philip H also changed test 3 to use "wintest" files.
@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".

setlocal

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
@rem %pcretest% -q      %srcdir%\testdata\testinput3 > testout\testoutput3
%pcretest% -q      %srcdir%\testdata\wintestinput3 > testout\wintestoutput3
%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
%pcretest% -q      %srcdir%\testdata\testinput10 > testout\testoutput10

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\wintestoutput3 testout\wintestoutput3
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
fc /n %srcdir%\testdata\testoutput10 testout\testoutput10