testrunner.rtlobjpas.pp 690 B

123456789101112131415161718192021222324252627282930313233343536
  1. { %CONFIGFILE=fpcunit-console-defaults.ini testdefaults.ini }
  2. { %SKIPTARGET=embedded,nativent,msdos,win16,macos,palmos }
  3. program testrunner.rtlobjpas;
  4. {$mode objfpc}{$H+}
  5. { Invoke needs a function call manager }
  6. {.$define useffi}
  7. {$if defined(CPUX64) and defined(WINDOWS)}
  8. {$define testinvoke}
  9. {$else}
  10. {$ifdef useffi}
  11. {$define testinvoke}
  12. {$endif}
  13. {$endif}
  14. uses
  15. {$ifdef useffi}
  16. ffi.manager,
  17. {$endif}
  18. consoletestrunner,
  19. {$ifdef testinvoke}
  20. tests.rtti.invoke,
  21. {$endif}
  22. tests.rtti;
  23. var
  24. Application: TTestRunner;
  25. begin
  26. Application := TTestRunner.Create(nil);
  27. Application.Initialize;
  28. Application.Title := 'RTL-ObjPas unit tests';
  29. Application.Run;
  30. Application.Free;
  31. end.