testpas2js.pp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. TCPas2JSAnalyzer;
  21. type
  22. TMyTestRunner = class(TTestRunner)
  23. protected
  24. end;
  25. var
  26. Application: TMyTestRunner;
  27. begin
  28. DefaultFormat:=fPlain;
  29. DefaultRunAllTests:=True;
  30. Application := TMyTestRunner.Create(nil);
  31. Application.Initialize;
  32. Application.Run;
  33. Application.Free;
  34. end.