mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 05:36:22 +02:00
IDE: test project: run when unit output directory is set
git-svn-id: trunk@22007 -
This commit is contained in:
parent
7b0e3b8bf6
commit
7b6df74c2f
@ -421,6 +421,8 @@ begin
|
||||
end;
|
||||
|
||||
function TBuildManager.GetTestProjectFilename(aProject: TProject): string;
|
||||
var
|
||||
TestDir: String;
|
||||
begin
|
||||
Result:='';
|
||||
if aProject=nil then exit;
|
||||
@ -428,6 +430,12 @@ begin
|
||||
Result:=GetTestUnitFilename(aProject.MainUnitInfo);
|
||||
if Result='' then exit;
|
||||
Result:=aProject.CompilerOptions.CreateTargetFilename(Result);
|
||||
if Result='' then exit;
|
||||
if (not FilenameIsAbsolute(Result)) then begin
|
||||
TestDir:=GetTestBuildDirectory;
|
||||
if TestDir='' then exit;
|
||||
Result:=TestDir+Result;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TBuildManager.GetTestUnitFilename(AnUnitInfo: TUnitInfo): string;
|
||||
|
@ -9851,6 +9851,7 @@ begin
|
||||
|
||||
// Check project build
|
||||
ProgramFilename := MainBuildBoss.GetProjectTargetFilename(Project1);
|
||||
DebugLn(['TMainIDE.DoInitProjectRun ProgramFilename=',ProgramFilename]);
|
||||
if not FileExistsUTF8(ProgramFilename)
|
||||
then begin
|
||||
MessageDlg(lisFileNotFound,
|
||||
|
Loading…
Reference in New Issue
Block a user