mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 06:28:28 +02:00
tests: pass widgetset name to lazbuild
git-svn-id: trunk@17137 -
This commit is contained in:
parent
f0b96b997f
commit
8b2b41eae0
@ -6,7 +6,6 @@
|
||||
<General>
|
||||
<SessionStorage Value="InIDEConfig"/>
|
||||
<MainUnit Value="0"/>
|
||||
<IconPath Value="./"/>
|
||||
<TargetFileExt Value=".exe"/>
|
||||
</General>
|
||||
<VersionInfo>
|
||||
|
@ -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;
|
||||
|
@ -6,7 +6,6 @@
|
||||
<General>
|
||||
<SessionStorage Value="InIDEConfig"/>
|
||||
<MainUnit Value="0"/>
|
||||
<IconPath Value="./"/>
|
||||
<TargetFileExt Value=".exe"/>
|
||||
</General>
|
||||
<PublishOptions>
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user