mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 07:18:14 +02:00
tests: added pcp parameter to the runtests program, so specify what settings will be used for building test projects
git-svn-id: trunk@16684 -
This commit is contained in:
parent
122772d90c
commit
1bd23aae6a
@ -93,6 +93,8 @@ begin
|
||||
CmdLine := LazBuildPath;
|
||||
if Compiler<>'' then
|
||||
CmdLine := CmdLine + ' --compiler='+Compiler;
|
||||
if PrimaryConfigPath<>'' then
|
||||
CmdLine := CmdLine + ' --pcp='+PrimaryConfigPath;
|
||||
CmdLine:=CmdLine + ' ' + FProjectFile;
|
||||
LazBuild.CommandLine := CmdLine;
|
||||
LazBuild.CurrentDirectory := FPath;
|
||||
|
@ -48,6 +48,7 @@ procedure TLazTestRunner.AppendLongOpts;
|
||||
begin
|
||||
inherited;
|
||||
LongOpts.Add('compiler:');
|
||||
LongOpts.Add('pcp:');
|
||||
LongOpts.Add('machine:');
|
||||
LongOpts.Add('submitter:');
|
||||
end;
|
||||
@ -57,6 +58,8 @@ begin
|
||||
inherited ParseOptions;
|
||||
if HasOption('compiler') then
|
||||
Compiler := GetOptionValue('compiler');
|
||||
if HasOption('pcp') then
|
||||
PrimaryConfigPath := GetOptionValue('pcp');
|
||||
if HasOption('submitter') then
|
||||
FSubmitter := GetOptionValue('submitter');
|
||||
if HasOption('machine') then
|
||||
@ -65,9 +68,10 @@ end;
|
||||
|
||||
procedure TLazTestRunner.WriteCustomHelp;
|
||||
begin
|
||||
writeln(' --compiler=<ppcxxx> use ppcxxx to build test projects');
|
||||
writeln(' --submitter=SubmitterName name to be stored as sumbitter of the test results');
|
||||
writeln(' --machine=MachineName name of the machine to be stored with the test results');
|
||||
writeln(' --compiler=<ppcxxx> use ppcxxx to build test projects');
|
||||
writeln(' --pcp=<primarty-config-path> pass primarty-config-path to lazbuild');
|
||||
writeln(' --submitter=SubmitterName name of sumbitter of the test results');
|
||||
writeln(' --machine=MachineName name of the machine the test runs on');
|
||||
end;
|
||||
|
||||
procedure TLazTestRunner.ExtendXmlDocument(Doc: TXMLDocument);
|
||||
|
@ -28,6 +28,7 @@ uses
|
||||
|
||||
var
|
||||
Compiler: string;
|
||||
PrimaryConfigPath: string;
|
||||
BugsTestSuite: TTestSuite;
|
||||
LCLTestSuite: TTestSuite;
|
||||
|
||||
|
@ -150,6 +150,8 @@ begin
|
||||
CmdLine:=LazBuildPath;
|
||||
if Compiler<>'' then
|
||||
CmdLine:=Cmdline + ' --compiler='+Compiler;
|
||||
if PrimaryConfigPath<>'' then
|
||||
CmdLine := CmdLine + ' --pcp='+PrimaryConfigPath;
|
||||
Cmdline := Cmdline + ' -B ' + FPath;
|
||||
LazBuild.CommandLine := CmdLine;
|
||||
LazBuild.CurrentDirectory := ExtractFileDir(FPath);
|
||||
|
Loading…
Reference in New Issue
Block a user