ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/runtest.bat
Revision: 87
Committed: Mon Jan 1 11:31:26 2018 UTC (6 years, 3 months ago) by tony
Content type: application/x-msdos-program
File size: 1488 byte(s)
Log Message:
fnintf fixes merged

File Contents

# Content
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.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=localhost:employee
33 set NEWDBNAME=localhost:%TESTOUTDIR%\testsuite1.fdb
34 set NEWDBNAME2=localhost:%TESTOUTDIR%\testsuite2.fdb
35 set BAKFILE=%TESTOUTDIR%\testsuite.gbk
36
37 rd /s /q testunits
38 mkdir %TESTOUTDIR%
39 %FPCBIN%\fpcmake
40 %FPCBIN%\make clean
41 %FPCBIN%\make
42 echo(
43 echo Starting Testsuite
44 echo(
45 IF EXIST "testsuite.exe" (
46 testsuite.exe -u %USERNAME% -p %PASSWORD% -e %EMPLOYEEDB% -n %NEWDBNAME% -s %NEWDBNAME2% -b %BAKFILE% -o testout.log %1
47 echo Comparing results with reference log
48 echo(
49 %FPCBIN%\diff reference.log testout.log >diff.log
50 type diff.log
51 rd /s /q testunits
52 del testsuite.exe
53 )