tests: pass widgetset name to lazbuild

git-svn-id: trunk@17137 -
This commit is contained in:
vincents 2008-10-27 14:21:05 +00:00
parent f0b96b997f
commit 8b2b41eae0
4 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,6 @@
<General>
<SessionStorage Value="InIDEConfig"/>
<MainUnit Value="0"/>
<IconPath Value="./"/>
<TargetFileExt Value=".exe"/>
</General>
<VersionInfo>

View File

@ -23,8 +23,9 @@ unit BugTestCase;
interface
uses
Classes, SysUtils, Math, process, FileUtil, AsyncProcess, fpcunit,
testregistry, TestGlobals;
Classes, SysUtils, Math, process, fpcunit, testregistry,
FileUtil, AsyncProcess, InterfaceBase,
TestGlobals;
type
@ -95,6 +96,7 @@ begin
CmdLine := CmdLine + ' --compiler='+Compiler;
if PrimaryConfigPath<>'' then
CmdLine := CmdLine + ' --pcp='+PrimaryConfigPath;
Cmdline := Cmdline + ' --ws=' + LCLPlatformDirNames[WidgetSet.LCLPlatform];
CmdLine:=CmdLine + ' ' + FProjectFile;
LazBuild.CommandLine := CmdLine;
LazBuild.CurrentDirectory := FPath;

View File

@ -6,7 +6,6 @@
<General>
<SessionStorage Value="InIDEConfig"/>
<MainUnit Value="0"/>
<IconPath Value="./"/>
<TargetFileExt Value=".exe"/>
</General>
<PublishOptions>

View File

@ -24,7 +24,7 @@ interface
uses
Classes, SysUtils, strutils, fpcunit, testregistry, process, AsyncProcess,
FileUtil,
InterfaceBase, FileUtil,
TestGlobals;
type
@ -152,6 +152,7 @@ begin
CmdLine:=Cmdline + ' --compiler='+Compiler;
if PrimaryConfigPath<>'' then
CmdLine := CmdLine + ' --pcp='+PrimaryConfigPath;
Cmdline := Cmdline + ' --ws=' + LCLPlatformDirNames[WidgetSet.LCLPlatform];
Cmdline := Cmdline + ' -B ' + FPath;
LazBuild.CommandLine := CmdLine;
LazBuild.CurrentDirectory := ExtractFileDir(FPath);
@ -176,8 +177,10 @@ end;
class function TLpiTest.CreateSuiteFromFile(const AName,
APath: string): TTestSuite;
{$IFDEF win32}
var
AhkFileName: String;
{$ENDIF}
begin
Result := inherited CreateSuiteFromFile(AName, APath);
{$IFDEF win32}