ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/runtest.bat
(Generate patch)

Comparing ibx/trunk/fbintf/testsuite/runtest.bat (file contents):
Revision 56 by tony, Mon Mar 6 10:20:02 2017 UTC vs.
Revision 380 by tony, Mon Jan 10 10:13:17 2022 UTC

# Line 1 | Line 1
1 < @echo off
2 < REM Test suite Configuration parameters
3 < REM These may be modified if needed to suite local requirements
4 <
5 <
6 < if EXIST C:\lazarus\fpc\3.0.2\bin\i386-win32\fpc.exe (
7 < set FPCDIR=C:\lazarus\fpc\3.0.2
8 < set FPCBIN=C:\lazarus\fpc\3.0.2\bin\i386-win32
9 < Goto COMPILE
10 < )
11 <
12 < if EXIST C:\lazarus\fpc\3.0.2\bin\x86_64-win64\fpc.exe (
13 < set FPCDIR=C:\lazarus\fpc\3.0.2
14 < set FPCBIN=C:\lazarus\fpc\3.0.2\bin\x86_64-win64
15 < Goto COMPILE
16 < )
17 <
18 < if EXIST C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.exe (
19 < set FPCDIR=C:\lazarus\fpc\3.0.0
20 < set FPCBIN=C:\lazarus\fpc\3.0.0\bin\i386-win32
21 < Goto COMPILE
22 < )
23 <
24 < if EXIST C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exe (
25 < set FPCDIR=C:\lazarus\fpc\3.0.0
26 < set FPCBIN=C:\lazarus\fpc\3.0.0\bin\x86_64-win64
27 < Goto COMPILE
28 < )
29 <
30 < if not EXIST %FPCBIN%\fpc.exe (
31 <  echo "Unable to find fpc.exe"
32 <  goto :EOF
33 < )
34 <
35 < :COMPILE
36 < set TESTOUTDIR=%TEMP%\fbintf-testsuite
37 < set USERNAME=SYSDBA
38 < set PASSWORD=masterkey
39 < set EMPLOYEEDB=localhost:employee
40 < set NEWDBNAME=localhost:%TESTOUTDIR%\testsuite1.fdb
41 < set NEWDBNAME2=localhost:%TESTOUTDIR%\testsuite2.fdb
42 < set BAKFILE=%TESTOUTDIR%\testsuite.gbk
43 <
44 < rd /s /q testunits
45 < mkdir %TESTOUTDIR%
46 < %FPCBIN%\fpcmake
47 < %FPCBIN%\make clean
48 < %FPCBIN%\make
49 < echo(
50 < echo Starting Testsuite
51 < echo(
52 < IF EXIST "testsuite.exe" (
53 < testsuite.exe -u %USERNAME% -p %PASSWORD% -e %EMPLOYEEDB% -n %NEWDBNAME% -s %NEWDBNAME2% -b %BAKFILE% -o testout.log %1
54 < echo Comparing results with reference log
55 < echo(
56 < %FPCBIN%\diff reference.log testout.log >diff.log
57 < type diff.log
58 < rd /s /q testunits
59 < del testsuite.exe
60 < )
1 > @echo off
2 > REM Test suite Configuration parameters (FPCDIR and FPCBIN)
3 > REM These may be modified if needed to suite local requirements
4 >
5 > FOR %%V in (3.2.0 3.0.4 3.0.2 3.0.0) do (
6 >  if EXIST C:\lazarus\fpc\%%V\bin\i386-win32\fpc.exe (
7 >    set FPCDIR=C:\lazarus\fpc\%%V
8 >    set FPCBIN=C:\lazarus\fpc\%%V\bin\i386-win32
9 >    Goto COMPILE
10 >  )
11 >  if EXIST C:\lazarus\fpc\%%V\bin\x86_64-win32\fpc.exe (
12 >    set FPCDIR=C:\lazarus\fpc\%%V
13 >    set FPCBIN=C:\lazarus\fpc\%%V\bin\x86_64-win32
14 >    Goto COMPILE
15 >  )
16 >  if EXIST C:\lazarus\fpc\%%V\bin\x86_64-win64\fpc.exe (
17 >    set FPCDIR=C:\lazarus\fpc\%%V
18 >    set FPCBIN=C:\lazarus\fpc\%%V\bin\x86_64-win64
19 >    Goto COMPILE
20 >  )
21 > )
22 >
23 > if not EXIST %FPCBIN%\fpc.exe (
24 >  echo "Unable to find fpc.exe"
25 >  goto :EOF
26 > )
27 >
28 > :COMPILE
29 > set TESTOUTDIR=%TEMP%\fbintf-testsuite
30 > set USERNAME=SYSDBA
31 > set PASSWORD=masterkey
32 > set EMPLOYEEDB=employee
33 > set NEWDBNAME=%TESTOUTDIR%\testsuite1.fdb
34 > set NEWDBNAME2=%TESTOUTDIR%\testsuite2.fdb
35 > set BAKFILE=%TESTOUTDIR%\testsuite.gbk
36 > set DIFF=%FPCBIN%\diff.exe
37 >
38 > rd /s /q testunits
39 > mkdir %TESTOUTDIR%
40 > %FPCBIN%\fpcmake
41 > %FPCBIN%\make clean
42 > %FPCBIN%\make
43 > echo(
44 > echo Starting Testsuite
45 > echo(
46 > IF EXIST "testsuite.exe" (
47 > testsuite.exe -u %USERNAME% -p %PASSWORD% -e %EMPLOYEEDB% -n %NEWDBNAME% -s %NEWDBNAME2% -b %BAKFILE% -o testout.log %1
48 >
49 > if not EXIST "%DIFF%" (
50 >  echo Unable to compare results - diff not found - %DIFF%
51 >  goto :EOF
52 >  )
53 >
54 > echo Comparing results with reference log
55 > echo(
56 > findstr /C:"ODS Major Version = 11" testout.log
57 > IF ERRORLEVEL 1 (
58 >  findstr /C:"ODS Major Version = 12" testout.log
59 >  IF ERRORLEVEL 1 (
60 >    %DIFF% FB4reference.log testout.log >diff.log
61 >  ) ELSE (
62 >    %DIFF% FB3reference.log testout.log >diff.log
63 >  )
64 > ) ELSE (
65 >  %DIFF% FB2reference.log testout.log >diff.log
66 > )
67 > type diff.log
68 > rd /s /q testunits
69 > del testsuite.exe
70 > )

Comparing ibx/trunk/fbintf/testsuite/runtest.bat (property svn:eol-style):
Revision 56 by tony, Mon Mar 6 10:20:02 2017 UTC vs.
Revision 380 by tony, Mon Jan 10 10:13:17 2022 UTC

# Line 0 | Line 1
1 + native

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines