-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathLanguageTests.dpr
117 lines (111 loc) · 4.32 KB
/
LanguageTests.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
program LanguageTests;
{$SetPEFlags $0020}
{$IFNDEF VER200}
{.$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$ENDIF}
uses
FastMM4,
Classes,
Forms,
Windows,
TestFrameWork,
GUITestRunner,
TextTestRunner,
SysUtils,
Math,
dwsXPlatform,
dwsMathComplexFunctions in '..\Source\dwsMathComplexFunctions.pas',
dwsMath3DFunctions in '..\Source\dwsMath3DFunctions.pas',
dwsDebugFunctions in '..\Source\dwsDebugFunctions.pas',
dwsLinq,
dwsLinqSql in '..\Libraries\LinqLib\dwsLinqSql.pas',
dwsLinqJson in '..\Libraries\LinqLib\dwsLinqJson.pas',
dwsDocBuilder in '..\Libraries\DocBuilder\dwsDocBuilder.pas',
UScriptTests in 'UScriptTests.pas',
UAlgorithmsTests in 'UAlgorithmsTests.pas',
UdwsUnitTests in 'UdwsUnitTests.pas',
UdwsUnitTestsStatic in 'UdwsUnitTestsStatic.pas',
UHTMLFilterTests in 'UHTMLFilterTests.pas',
UCornerCasesTests in 'UCornerCasesTests.pas',
UdwsClassesTests in 'UdwsClassesTests.pas',
dwsClasses in '..\Libraries\ClassesLib\dwsClasses.pas',
UdwsDataBaseTests in 'UdwsDataBaseTests.pas',
UdwsFunctionsTests in 'UdwsFunctionsTests.pas',
UdwsXPlatformTests,
UCOMConnectorTests in 'UCOMConnectorTests.pas',
UTestDispatcher in 'UTestDispatcher.pas',
UDebuggerTests in 'UDebuggerTests.pas',
UdwsUtilsTests in 'UdwsUtilsTests.pas',
UMemoryTests in 'UMemoryTests.pas',
UBuildTests in 'UBuildTests.pas',
USourceUtilsTests in 'USourceUtilsTests.pas',
ULocalizerTests in 'ULocalizerTests.pas',
dwsRTTIFunctions,
dwsRTTIConnector,
dwsRTTIExposer,
dwsStringResult,
dwsMetrics,
UJSONTests in 'UJSONTests.pas',
UJSONConnectorTests in 'UJSONConnectorTests.pas',
UTokenizerTests in 'UTokenizerTests.pas',
ULanguageExtensionTests in 'ULanguageExtensionTests.pas',
UJITTests in 'UJITTests.pas',
UJITx86Tests in 'UJITx86Tests.pas',
UJITx86_64Tests in 'UJITx86_64Tests.pas',
UdwsCryptoTests in 'UdwsCryptoTests.pas',
UdwsGraphicsTests in 'UdwsGraphicsTests.pas',
dwsSymbolsLibModule in '..\Libraries\SymbolsLib\dwsSymbolsLibModule.pas',
UdwsEncodingTests in 'UdwsEncodingTests.pas',
UInstantiateTests in 'UInstantiateTests.pas',
UdwsWebUtilsTests in 'UdwsWebUtilsTests.pas',
UBigIntegerTests in 'UBigIntegerTests.pas',
dwsMPIR.Bundle in '..\Libraries\BigIntegersLib\dwsMPIR.Bundle.pas',
dwsTurboJPEG.Bundle,
USymbolDictionaryTests in 'USymbolDictionaryTests.pas',
UdwsSystemInfoTests in 'UdwsSystemInfoTests.pas',
UdwsWebLibModuleTest in 'UdwsWebLibModuleTest.pas',
BeaEngineDelphi in '..\Tools\BeaEngine\BeaEngineDelphi.pas',
BeaEngineDelphi64 in '..\Tools\BeaEngine\BeaEngineDelphi64.pas',
UdwsDateTimeTests in 'UdwsDateTimeTests.pas',
dwsTokenTypes in '..\Source\dwsTokenTypes.pas',
dwsSQLiteVTArraysLibModule,
dwsDynamicArrays in '..\Source\dwsDynamicArrays.pas',
dwsArrayExprs in '..\Source\dwsArrayExprs.pas',
UdwsTabularTests in 'UdwsTabularTests.pas',
UdwsCSSPackTests in 'UdwsCSSPackTests.pas',
UdwsIniFileTests in 'UdwsIniFileTests.pas',
UdwsCustomDataTests in 'UdwsCustomDataTests.pas',
UdwsTimeSeriesTests in 'UdwsTimeSeriesTests.pas',
UAutoFormatTests in 'UAutoFormatTests.pas',
dwsCodeDOM in '..\Source\SourceUtils\dwsCodeDOM.pas',
dwsCodeDOMNodes in '..\Source\SourceUtils\dwsCodeDOMNodes.pas',
dwsCodeDOMParser in '..\Source\SourceUtils\dwsCodeDOMParser.pas',
dwsCodeDOMPascalParser in '..\Source\SourceUtils\dwsCodeDOMPascalParser.pas',
UCodeDOMTests in 'UCodeDOMTests.pas',
UModel3DTests in 'UModel3DTests.pas',
UAutoFixTests in 'UAutoFixTests.pas';
{$R *.res}
var
{$IF RTLVersion >= 23}
procAffinity, systAffinity : NativeUInt;
{$ELSE}
procAffinity, systAffinity : DWORD;
{$IFEND}
begin
ReportMemoryLeaksOnShutdown:=True;
{$IF RTLVersion >= 23}
SetExceptionMask(GetExceptionMask + [TArithmeticException.exZeroDivide, TArithmeticException.exInvalidOp]);
{$else}
DirectSet8087CW($133F);
{$IFEND}
GetProcessAffinityMask(GetCurrentProcess, procAffinity, systAffinity);
SetProcessAffinityMask(GetCurrentProcess, systAffinity);
Application.Initialize;
Application.UpdateFormatSettings := False;
SetDecimalSeparator('.');
if ParamStr(1)='/text' then begin
AllocConsole;
TextTestRunner.RunRegisteredTests
end else GUITestRunner.RunRegisteredTests;
end.