mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:19:32 +02:00
tests: improved searching for test directories
git-svn-id: trunk@10542 -
This commit is contained in:
parent
2bdbe6f91c
commit
85bf638910
@ -186,7 +186,6 @@ begin
|
||||
CreateWithName(ATestName);
|
||||
FPath := APath;
|
||||
FProjectFile := FindProjectFile(FPath);
|
||||
writeln(FProjectFile);
|
||||
end;
|
||||
|
||||
class function TBugTestCase.CreateSuite(Path: string): TTestSuite;
|
||||
@ -209,7 +208,7 @@ begin
|
||||
ProgPath := ExtractFilePath(ParamStr(0));
|
||||
if FindFirst(ProgPath+'*', faAnyFile, SearchRec)=0 then
|
||||
repeat
|
||||
if (SearchRec.Attr=faDirectory) and
|
||||
if (SearchRec.Attr and (faDirectory + faHidden)=faDirectory) and
|
||||
(SearchRec.Name<>'.') and (SearchRec.Name<>'..')
|
||||
then
|
||||
GetTestRegistry.AddTest(
|
||||
|
@ -14,7 +14,6 @@
|
||||
</VersionInfo>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
<IgnoreBinaries Value="False"/>
|
||||
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
||||
</PublishOptions>
|
||||
|
Loading…
Reference in New Issue
Block a user