testpas2js.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 unix}
  16. cwstring,
  17. {$endif}
  18. {$IFDEF EnableMemCheck}
  19. MemCheck,
  20. {$ENDIF}
  21. Classes, consoletestrunner, tcconverter, TCModules, TCSrcMap,
  22. TCFiler, TCUnitSearch, TCOptimizations, TCGenerics, TCPrecompile,
  23. TCPas2JSAnalyzer;
  24. type
  25. TMyTestRunner = class(TTestRunner)
  26. protected
  27. end;
  28. var
  29. Application: TMyTestRunner;
  30. begin
  31. DefaultFormat:=fPlain;
  32. DefaultRunAllTests:=True;
  33. Application := TMyTestRunner.Create(nil);
  34. Application.Initialize;
  35. Application.Run;
  36. Application.Free;
  37. end.