mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 02:39:23 +02:00
codetools: moved tests
git-svn-id: trunk@53152 -
This commit is contained in:
parent
39caa399f5
commit
541f15a9cb
16
.gitattributes
vendored
16
.gitattributes
vendored
@ -1041,8 +1041,16 @@ components/codetools/tests/pt_thlp1.pas svneol=native#text/plain
|
|||||||
components/codetools/tests/pt_thlp2.pas svneol=native#text/plain
|
components/codetools/tests/pt_thlp2.pas svneol=native#text/plain
|
||||||
components/codetools/tests/refactoringtests.pas svneol=native#text/plain
|
components/codetools/tests/refactoringtests.pas svneol=native#text/plain
|
||||||
components/codetools/tests/rt_explodewith.pas svneol=native#text/plain
|
components/codetools/tests/rt_explodewith.pas svneol=native#text/plain
|
||||||
|
components/codetools/tests/testbasiccodetools.pas svneol=native#text/plain
|
||||||
|
components/codetools/tests/testcfgscript.pas svneol=native#text/plain
|
||||||
components/codetools/tests/testcodetools.lpi svneol=native#text/plain
|
components/codetools/tests/testcodetools.lpi svneol=native#text/plain
|
||||||
components/codetools/tests/testcodetools.lpr svneol=native#text/plain
|
components/codetools/tests/testcodetools.lpr svneol=native#text/plain
|
||||||
|
components/codetools/tests/testcompleteblock.pas svneol=native#text/plain
|
||||||
|
components/codetools/tests/testcth2pas.pas svneol=native#text/pascal
|
||||||
|
components/codetools/tests/testctrangescan.pas svneol=native#text/plain
|
||||||
|
components/codetools/tests/testctxmlfixfragments.pas svneol=native#text/pascal
|
||||||
|
components/codetools/tests/testmethodjumptool.pas svneol=native#text/plain
|
||||||
|
components/codetools/tests/teststdcodetools.pas svneol=native#text/plain
|
||||||
components/codetools/unitdictionary.pas svneol=native#text/plain
|
components/codetools/unitdictionary.pas svneol=native#text/plain
|
||||||
components/compilers/c/examples/test.c svneol=native#text/plain
|
components/compilers/c/examples/test.c svneol=native#text/plain
|
||||||
components/compilers/c/languages/lazcstrconsts.de.po svneol=native#text/plain
|
components/compilers/c/languages/lazcstrconsts.de.po svneol=native#text/plain
|
||||||
@ -8047,14 +8055,6 @@ test/bugs/bug8432.pas svneol=native#text/plain
|
|||||||
test/bugs/testfileproc.pas svneol=native#text/plain
|
test/bugs/testfileproc.pas svneol=native#text/plain
|
||||||
test/bugs/testfileutil.pas svneol=native#text/plain
|
test/bugs/testfileutil.pas svneol=native#text/plain
|
||||||
test/bugtestcase.pas svneol=native#text/plain
|
test/bugtestcase.pas svneol=native#text/plain
|
||||||
test/codetoolstests/testbasiccodetools.pas svneol=native#text/plain
|
|
||||||
test/codetoolstests/testcfgscript.pas svneol=native#text/plain
|
|
||||||
test/codetoolstests/testcompleteblock.pas svneol=native#text/plain
|
|
||||||
test/codetoolstests/testcth2pas.pas svneol=native#text/pascal
|
|
||||||
test/codetoolstests/testctrangescan.pas svneol=native#text/plain
|
|
||||||
test/codetoolstests/testctxmlfixfragments.pas svneol=native#text/pascal
|
|
||||||
test/codetoolstests/testmethodjumptool.pas svneol=native#text/plain
|
|
||||||
test/codetoolstests/teststdcodetools.pas svneol=native#text/plain
|
|
||||||
test/customdrawn/cd_test_all.ico -text
|
test/customdrawn/cd_test_all.ico -text
|
||||||
test/customdrawn/cd_test_all.lpi svneol=native#text/plain
|
test/customdrawn/cd_test_all.lpi svneol=native#text/plain
|
||||||
test/customdrawn/cd_test_all.lpr svneol=native#text/plain
|
test/customdrawn/cd_test_all.lpr svneol=native#text/plain
|
||||||
|
@ -32,7 +32,7 @@ uses
|
|||||||
Classes, SysUtils, CodeToolManager, ExprEval, CodeCache, BasicCodeTools,
|
Classes, SysUtils, CodeToolManager, ExprEval, CodeCache, BasicCodeTools,
|
||||||
CustomCodeTool, CodeTree, FindDeclarationTool, KeywordFuncLists,
|
CustomCodeTool, CodeTree, FindDeclarationTool, KeywordFuncLists,
|
||||||
IdentCompletionTool, FileProcs, LazLogger, LazFileUtils, fpcunit,
|
IdentCompletionTool, FileProcs, LazLogger, LazFileUtils, fpcunit,
|
||||||
testregistry;
|
testregistry, TestGlobals;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -322,12 +322,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
GetTestRegistry.TestName := 'All tests';
|
AddToFindDeclarationTestSuite(TTestFindDeclaration);
|
||||||
BugsTestSuite := TTestSuite.Create('Bugs');
|
|
||||||
GetTestRegistry.AddTest(BugsTestSuite);
|
|
||||||
FindDeclarationTestSuite := TTestSuite.Create('FindDeclaration');
|
|
||||||
GetTestRegistry.AddTest(FindDeclarationTestSuite);
|
|
||||||
|
|
||||||
FindDeclarationTestSuite.AddTestSuiteFromClass(TTestFindDeclaration);
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ procedure t;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
(*
|
||||||
|
|
||||||
uses
|
uses
|
||||||
tudots{declaration:tudots}, tudots.dot.next{ todo declaration:tudots.dot.next};
|
tudots{declaration:tudots}, tudots.dot.next{ todo declaration:tudots.dot.next};
|
||||||
|
|
||||||
@ -22,5 +24,6 @@ begin
|
|||||||
tudots.dot.test{declaration:tudots.dot.test} := 'c';
|
tudots.dot.test{declaration:tudots.dot.test} := 'c';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
*)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestBasicCodeTools);
|
AddToBasicTestSuite(TTestBasicCodeTools);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -135,7 +135,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCodetoolsCfgScript);
|
AddToNonPascalTestSuite(TTestCodetoolsCfgScript);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -16,9 +16,6 @@
|
|||||||
<i18n>
|
<i18n>
|
||||||
<EnableI18N LFM="False"/>
|
<EnableI18N LFM="False"/>
|
||||||
</i18n>
|
</i18n>
|
||||||
<VersionInfo>
|
|
||||||
<StringTable ProductVersion=""/>
|
|
||||||
</VersionInfo>
|
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
</BuildModes>
|
</BuildModes>
|
||||||
@ -40,7 +37,7 @@
|
|||||||
<PackageName Value="fpcunitconsolerunner"/>
|
<PackageName Value="fpcunitconsolerunner"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="12">
|
<Units Count="13">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="testcodetools.lpr"/>
|
<Filename Value="testcodetools.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -91,6 +88,11 @@
|
|||||||
<Filename Value="fdt_generics.pas"/>
|
<Filename Value="fdt_generics.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
</Unit11>
|
</Unit11>
|
||||||
|
<Unit12>
|
||||||
|
<Filename Value="testglobals.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="TestGlobals"/>
|
||||||
|
</Unit12>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
|
@ -20,8 +20,14 @@ program testcodetools;
|
|||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, sysutils, consoletestrunner, dom, fpcunit, CodeToolManager,
|
Classes, sysutils, consoletestrunner, dom, fpcunit, LazLogger,
|
||||||
CodeToolsConfig, LazLogger, finddeclarationtests, RefactoringTests,
|
CodeToolManager, CodeToolsConfig,
|
||||||
|
testglobals,
|
||||||
|
TestBasicCodetools, TestCTRangeScan, TestMethodJumpTool, TestStdCodetools,
|
||||||
|
FindDeclarationTests, TestCompleteBlock, RefactoringTests,
|
||||||
|
// non Pascal
|
||||||
|
TestCfgScript, TestCTH2Pas, TestCTXMLFixFragments,
|
||||||
|
// compile test files to make sure they are valid Pascal
|
||||||
fdt_classhelper,
|
fdt_classhelper,
|
||||||
{$IF FPC_FULLVERSION >= 30101}
|
{$IF FPC_FULLVERSION >= 30101}
|
||||||
fdt_typehelper,
|
fdt_typehelper,
|
||||||
|
@ -418,7 +418,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCodetoolsCompleteBlock);
|
AddToRefactoringTestSuite(TTestCodetoolsCompleteBlock);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -277,7 +277,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCodetoolsH2Pas);
|
AddToNonPascalTestSuite(TTestCodetoolsH2Pas);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -392,7 +392,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCodetoolsRangeScan);
|
AddToFindDeclarationTestSuite(TTestCodetoolsRangeScan);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -123,7 +123,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCTXMLFixFragment);
|
AddToNonPascalTestSuite(TTestCTXMLFixFragment);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -120,7 +120,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCTMethodJumpTool);
|
AddToStdToolsTestSuite(TTestCTMethodJumpTool);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -197,7 +197,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
AddToCodetoolsTestSuite(TTestCTStdCodetools);
|
AddToStdToolsTestSuite(TTestCTStdCodetools);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
@ -25,7 +25,7 @@ uses
|
|||||||
testglobals, testunits, dom,
|
testglobals, testunits, dom,
|
||||||
{Unit needed to set the LCL version and widget set name}
|
{Unit needed to set the LCL version and widget set name}
|
||||||
LCLVersion, InterfaceBase, Interfaces, TestLazXML, TestAvgLvlTree,
|
LCLVersion, InterfaceBase, Interfaces, TestLazXML, TestAvgLvlTree,
|
||||||
TestMethodJumpTool, TestLConvEncoding;
|
TestLConvEncoding;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ var
|
|||||||
PrimaryConfigPath: string;
|
PrimaryConfigPath: string;
|
||||||
BugsTestSuite: TTestSuite;
|
BugsTestSuite: TTestSuite;
|
||||||
LazUtilsTestSuite: TTestSuite;
|
LazUtilsTestSuite: TTestSuite;
|
||||||
CodetoolsTestSuite: TTestSuite;
|
|
||||||
LCLTestSuite: TTestSuite;
|
LCLTestSuite: TTestSuite;
|
||||||
IDEIntfTestSuite: TTestSuite;
|
IDEIntfTestSuite: TTestSuite;
|
||||||
SemiAutoTestSuite: TTestSuite;
|
SemiAutoTestSuite: TTestSuite;
|
||||||
@ -40,7 +39,6 @@ function ReadOutput(AProcess:TProcess): TStringList;
|
|||||||
|
|
||||||
procedure AddToBugsTestSuite(ATest: TTest);
|
procedure AddToBugsTestSuite(ATest: TTest);
|
||||||
procedure AddToLazUtilsTestSuite(ATestClass: TClass);
|
procedure AddToLazUtilsTestSuite(ATestClass: TClass);
|
||||||
procedure AddToCodetoolsTestSuite(ATestClass: TClass);
|
|
||||||
procedure AddToLCLTestSuite(ATestClass: TClass);
|
procedure AddToLCLTestSuite(ATestClass: TClass);
|
||||||
procedure AddToIDEIntfTestSuite(ATestClass: TClass);
|
procedure AddToIDEIntfTestSuite(ATestClass: TClass);
|
||||||
procedure AddToSemiAutoTestSuite(ATestClass: TClass);
|
procedure AddToSemiAutoTestSuite(ATestClass: TClass);
|
||||||
@ -106,11 +104,6 @@ begin
|
|||||||
LazUtilsTestSuite.AddTestSuiteFromClass(ATestClass);
|
LazUtilsTestSuite.AddTestSuiteFromClass(ATestClass);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure AddToCodetoolsTestSuite(ATestClass: TClass);
|
|
||||||
begin
|
|
||||||
CodetoolsTestSuite.AddTestSuiteFromClass(ATestClass);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure AddToLCLTestSuite(ATestClass: TClass);
|
procedure AddToLCLTestSuite(ATestClass: TClass);
|
||||||
begin
|
begin
|
||||||
LCLTestSuite.AddTestSuiteFromClass(ATestClass);
|
LCLTestSuite.AddTestSuiteFromClass(ATestClass);
|
||||||
@ -132,8 +125,6 @@ initialization
|
|||||||
GetTestRegistry.AddTest(BugsTestSuite);
|
GetTestRegistry.AddTest(BugsTestSuite);
|
||||||
LazUtilsTestSuite := TTestSuite.Create('LazUtils tests');
|
LazUtilsTestSuite := TTestSuite.Create('LazUtils tests');
|
||||||
GetTestRegistry.AddTest(LazUtilsTestSuite);
|
GetTestRegistry.AddTest(LazUtilsTestSuite);
|
||||||
CodetoolsTestSuite := TTestSuite.Create('Codetools tests');
|
|
||||||
GetTestRegistry.AddTest(CodetoolsTestSuite);
|
|
||||||
LCLTestSuite := TTestSuite.Create('LCL tests');
|
LCLTestSuite := TTestSuite.Create('LCL tests');
|
||||||
GetTestRegistry.AddTest(LCLTestSuite);
|
GetTestRegistry.AddTest(LCLTestSuite);
|
||||||
IDEIntfTestSuite := TTestSuite.Create('IDEIntf tests');
|
IDEIntfTestSuite := TTestSuite.Create('IDEIntf tests');
|
||||||
|
@ -31,9 +31,6 @@ uses
|
|||||||
bug8432, testfileutil, testfileproc,
|
bug8432, testfileutil, testfileproc,
|
||||||
// lazutils
|
// lazutils
|
||||||
TestLazUtils, TestLazUTF8, TestLConvEncoding, TestAvgLvlTree,
|
TestLazUtils, TestLazUTF8, TestLConvEncoding, TestAvgLvlTree,
|
||||||
// codetools
|
|
||||||
TestBasicCodetools, TestCTXMLFixFragments, TestCTRangeScan, TestCTH2Pas,
|
|
||||||
TestCompleteBlock, TestStdCodetools, TestMethodJumpTool, TestCfgScript,
|
|
||||||
// lcltests
|
// lcltests
|
||||||
testunicode, testpen, TestPreferredSize, TestTextStrings
|
testunicode, testpen, TestPreferredSize, TestTextStrings
|
||||||
{$IFNDEF NoSemiAutomatedTests}
|
{$IFNDEF NoSemiAutomatedTests}
|
||||||
|
Loading…
Reference in New Issue
Block a user