ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/runtest.bat
Revision: 45
Committed: Tue Dec 6 10:33:46 2016 UTC (7 years, 11 months ago) by tony
Content type: application/x-msdos-program
File size: 895 byte(s)
Log Message:
Committing updates for Release R2-0-0

File Contents

# User Rev Content
1 tony 45 @echo off
2     #Test suite Configuration parameters
3     #These may be modified if needed to suite local requirements
4    
5     set FPCDIR=C:\lazarus\fpc\3.0.0
6     set FPCBIN=%FPCDIR%\bin\i386-win32
7     set TESTOUTDIR=%TEMP%\fbintf-testsuite
8     set USERNAME=SYSDBA
9     set PASSWORD=masterkey
10     set EMPLOYEEDB=localhost:employee
11     set NEWDBNAME=localhost:%TESTOUTDIR%\testsuite1.fdb
12     set NEWDBNAME2=localhost:%TESTOUTDIR%\testsuite2.fdb
13     set BAKFILE=%TESTOUTDIR%\testsuite.gbk
14    
15     rd /s /q testunits
16     mkdir %TESTOUTDIR%
17     %FPCBIN%\fpcmake
18     %FPCBIN%\make clean
19     %FPCBIN%\make
20     echo(
21     echo Starting Testsuite
22     echo(
23     IF EXIST "testsuite.exe" (
24     testsuite.exe -u %USERNAME% -p %PASSWORD% -e %EMPLOYEEDB% -n %NEWDBNAME% -s %NEWDBNAME2% -b %BAKFILE% -o testout.log %1
25     echo Comparing results with reference log
26     echo(
27     %FPCBIN%\diff reference.log testout.log >diff.log
28     type diff.log
29     rd /s /q testunits
30     del testsuite.exe
31     )