2013-12-07 13:42:22 +00:00
|
|
|
program spreadtestgui;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
2014-08-05 21:42:34 +00:00
|
|
|
{.$DEFINE HEAPTRC} // Instead of using -gh activate this to write the heap trace to file
|
|
|
|
|
2013-12-07 13:42:22 +00:00
|
|
|
uses
|
2014-08-05 21:42:34 +00:00
|
|
|
{$IFDEF HEAPTRC}
|
2018-05-09 17:07:59 +00:00
|
|
|
SysUtils,
|
2014-08-05 21:42:34 +00:00
|
|
|
{$ENDIF}
|
2022-04-22 21:44:01 +00:00
|
|
|
Interfaces, Forms, GuiTestRunner, testsutility, datetests, stringtests,
|
|
|
|
numberstests, manualtests, internaltests, mathtests, fileformattests,
|
|
|
|
formattests, colortests, fonttests, optiontests, conditionalformattests,
|
2018-07-10 08:32:50 +00:00
|
|
|
numformatparsertests, formulatests, rpnFormulaUnit, singleformulatests,
|
2022-04-22 21:44:01 +00:00
|
|
|
exceltests, emptycelltests, errortests, virtualmodetests, colrowtests,
|
|
|
|
ssttests, celltypetests, sortingtests, copytests, movetests, enumeratortests,
|
|
|
|
commenttests, hyperlinktests, pagelayouttests, protectiontests;
|
2013-12-07 13:42:22 +00:00
|
|
|
|
|
|
|
begin
|
2014-08-05 21:42:34 +00:00
|
|
|
{$IFDEF HEAPTRC}
|
|
|
|
// Assuming your build mode sets -dDEBUG in Project Options/Other when defining -gh
|
|
|
|
// This avoids interference when running a production/default build without -gh
|
|
|
|
|
|
|
|
if FileExists('heap.trc') then
|
|
|
|
DeleteFile('heap.trc');
|
|
|
|
SetHeapTraceOutput('heap.trc');
|
|
|
|
{$ENDIF HEAPTRC}
|
|
|
|
|
2013-12-07 13:42:22 +00:00
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TGuiTestRunner, TestRunner);
|
|
|
|
Application.Run;
|
|
|
|
end.
|
|
|
|
|