File: FpTest.lpr

package info (click to toggle)
lazarus 4.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276,332 kB
  • sloc: pascal: 2,343,449; xml: 508,730; makefile: 353,085; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (33 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (2)
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
program FpTest;

{$mode objfpc}{$H+}
{off $DEFINE TESTGUI}

uses
  {$ifdef TESTGUI} Interfaces, Forms, GuiTestRunner, {$ELSE}  consoletestrunner, {$ENDIF}
  TestHelperClasses,
  TestDwarfVarious, TestMemManager, TestPascalParser,
  TestErrorHandler, TestLineMap;

{$R *.res}

{$ifNdef TESTGUI}
var
  Application: TTestRunner;
{$ENDIF}

begin
  {$ifdef TESTGUI}
  Application.Initialize;
  Application.CreateForm(TGuiTestRunner, TestRunner);
  Application.Run;
  {$ELSE}
  DefaultRunAllTests:=True;
  DefaultFormat:=fXML;
  Application := TTestRunner.Create(nil);
  Application.Initialize;
  Application.Run;
  Application.Free;
  {$ENDIF}
end.