testpas2js.pp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. { %OPT=-Sc }
  2. {
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 2014 by Michael Van Canneyt
  5. Unit tests runner for Pascal-to-Javascript converter class.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. program testpas2js;
  13. {$mode objfpc}{$H+}
  14. uses
  15. {$IFDEF EnableMemCheck}
  16. MemCheck,
  17. {$ENDIF}
  18. Classes, consoletestrunner, tcconverter, TCModules, TCSrcMap,
  19. TCFiler, TCUnitSearch, TCOptimizations, TCGenerics, TCPrecompile;
  20. type
  21. TMyTestRunner = class(TTestRunner)
  22. protected
  23. end;
  24. var
  25. Application: TMyTestRunner;
  26. begin
  27. DefaultFormat:=fPlain;
  28. DefaultRunAllTests:=True;
  29. Application := TMyTestRunner.Create(nil);
  30. Application.Initialize;
  31. Application.Run;
  32. Application.Free;
  33. end.