testpassrc.pp 705 B

1234567891011121314151617181920212223242526272829303132
  1. { %OPT=-Sc }
  2. program testpassrc;
  3. {$mode objfpc}{$H+}
  4. uses
  5. //MemCheck,
  6. Classes, consoletestrunner, tcscanner, tctypeparser, tcstatements,
  7. tcbaseparser, tcmoduleparser, tconstparser, tcvarparser, tcclasstype,
  8. tcexprparser, tcprocfunc, tcpassrcutil, tcresolver, tcgenerics,
  9. tcuseanalyzer, pasresolveeval, tcresolvegenerics;
  10. type
  11. { TLazTestRunner }
  12. TMyTestRunner = class(TTestRunner)
  13. protected
  14. // override the protected methods of TTestRunner to customize its behavior
  15. end;
  16. var
  17. Application: TMyTestRunner;
  18. begin
  19. Application := TMyTestRunner.Create(nil);
  20. DefaultFormat:=fplain;
  21. DefaultRunAllTests:=True;
  22. Application.Initialize;
  23. Application.Run;
  24. Application.Free;
  25. end.