mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:09:25 +02:00
* Write results to a testsuite-digest
* Fixed a range-overflow in a testvalue * Set the db-engine to test from the command line * Fixed compilation of old index-test git-svn-id: trunk@9787 -
This commit is contained in:
parent
9cfe2a0dc4
commit
c8fc140581
@ -794,7 +794,7 @@ begin
|
||||
|
||||
open;
|
||||
|
||||
AddSecondIndex;
|
||||
// AddSecondIndex;
|
||||
|
||||
while not eof do
|
||||
begin
|
||||
|
@ -83,7 +83,7 @@ const
|
||||
testCurrencyValues : Array[0..testValuesCount-1] of currency = (-100,-65.5,-54.34,-43.34,-2.50,-0.2,45.40,0.3,45.4,127,128,255,256,45,0.3,45.4,127,128,255,256,45,1234.56,43.23,43.43,99.88);
|
||||
testIntValues : Array[0..testValuesCount-1] of integer = (-maxInt,-maxInt+1,-maxSmallint-1,-maxSmallint,-256,-255,-128,-127,-1,0,1,127,128,255,256,maxSmallint,maxSmallint+1,MaxInt-1,MaxInt,100,130,150,-150,-132,234);
|
||||
testSmallIntValues : Array[0..testValuesCount-1] of smallint = (-maxSmallint,-maxSmallint+1,-256,-255,-128,-127,-1,0,1,127,128,255,256,maxSmallint,maxSmallint-1,100,110,120,130,150,-150,-132,234,231,42);
|
||||
testLargeIntValues : Array[0..testValuesCount-1] of smallint = (-MaxSIntValue,MaxSIntValue+1,-maxInt-1,-maxInt+1,-maxSmallint,-maxSmallint+1,-256,-255,-128,-127,-1,0,1,127,128,255,256,maxSmallint,maxSmallint-1,maxSmallint+1,MaxInt-1,MaxInt,MaxSIntValue-1,MaxSIntValue,235253244);
|
||||
testLargeIntValues : Array[0..testValuesCount-1] of smallint = (-MaxSIntValue,-MaxSIntValue+1,-maxInt-1,-maxInt+1,-maxSmallint,-maxSmallint+1,-256,-255,-128,-127,-1,0,1,127,128,255,256,maxSmallint,maxSmallint-1,maxSmallint+1,MaxInt-1,MaxInt,MaxSIntValue-1,MaxSIntValue,235253244);
|
||||
testBooleanValues : Array[0..testValuesCount-1] of boolean = (true,false,false,true,true,false,false,true,false,true,true,true,false,false,false,false,true,true,true,true,false,true,true,false,false);
|
||||
testStringValues : Array[0..testValuesCount-1] of string = (
|
||||
'',
|
||||
@ -207,7 +207,11 @@ var IniFile : TIniFile;
|
||||
|
||||
begin
|
||||
IniFile := TIniFile.Create(getcurrentdir + PathDelim + 'database.ini');
|
||||
dbtype := IniFile.ReadString('Database','Type','');
|
||||
dbtype:='';
|
||||
if Paramcount>0 then
|
||||
dbtype := ParamStr(1);
|
||||
if (dbtype='') or not inifile.SectionExists(dbtype) then
|
||||
dbtype := IniFile.ReadString('Database','Type','');
|
||||
dbconnectorname := IniFile.ReadString(dbtype,'Connector','');
|
||||
dbname := IniFile.ReadString(dbtype,'Name','');
|
||||
dbuser := IniFile.ReadString(dbtype,'User','');
|
||||
|
Loading…
Reference in New Issue
Block a user