mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-25 01:51:53 +02:00
test: add codetools examples to the test suite for compilation
git-svn-id: trunk@11030 -
This commit is contained in:
parent
00e7a6e50f
commit
b5c463103f
@ -48,6 +48,7 @@ implementation
|
|||||||
var
|
var
|
||||||
LazarusDir: string;
|
LazarusDir: string;
|
||||||
ExamplesDir: string;
|
ExamplesDir: string;
|
||||||
|
CTExamplesDir: string;
|
||||||
LCLTestDir: string;
|
LCLTestDir: string;
|
||||||
ScriptEngine: string;
|
ScriptEngine: string;
|
||||||
|
|
||||||
@ -55,6 +56,7 @@ procedure InitDirectories;
|
|||||||
begin
|
begin
|
||||||
LazarusDir := ExpandFileName(ExtractFilePath(ParamStr(0)) + '../');
|
LazarusDir := ExpandFileName(ExtractFilePath(ParamStr(0)) + '../');
|
||||||
ExamplesDir := LazarusDir + 'examples' + PathDelim;
|
ExamplesDir := LazarusDir + 'examples' + PathDelim;
|
||||||
|
CTExamplesDir := SetDirSeparators(LazarusDir + 'components/codetools/examples/');
|
||||||
LCLTestDir := LazarusDir + 'lcl' + PathDelim + 'tests' + PathDelim;
|
LCLTestDir := LazarusDir + 'lcl' + PathDelim + 'tests' + PathDelim;
|
||||||
ScriptEngine := 'C:\Program Files\AutoHotkey\AutoHotKey.exe';
|
ScriptEngine := 'C:\Program Files\AutoHotkey\AutoHotKey.exe';
|
||||||
end;
|
end;
|
||||||
@ -182,6 +184,8 @@ initialization
|
|||||||
InitDirectories;
|
InitDirectories;
|
||||||
GetTestRegistry.AddTest(
|
GetTestRegistry.AddTest(
|
||||||
TLpiTest.CreateSuiteFromDirectory('Examples', ExamplesDir));
|
TLpiTest.CreateSuiteFromDirectory('Examples', ExamplesDir));
|
||||||
|
GetTestRegistry.AddTest(
|
||||||
|
TLpiTest.CreateSuiteFromDirectory('Codetools Examples', CTExamplesDir));
|
||||||
GetTestRegistry.AddTest(
|
GetTestRegistry.AddTest(
|
||||||
TLpiTest.CreateSuiteFromDirectory('LCL test', LCLTestDir));
|
TLpiTest.CreateSuiteFromDirectory('LCL test', LCLTestDir));
|
||||||
end.
|
end.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user