testrunner.rtlobjpas.pp 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. {$define testimpl}
  10. {$elseif defined(CPUI386)}
  11. {$define testinvoke}
  12. {$else}
  13. {$ifdef useffi}
  14. {$define testinvoke}
  15. {$define testimpl}
  16. {$endif}
  17. {$endif}
  18. uses
  19. {$ifdef useffi}
  20. ffi.manager,
  21. {$endif}
  22. consoletestrunner,
  23. {$ifdef testinvoke}
  24. tests.rtti.invoke,
  25. {$endif}
  26. {$ifdef testimpl}
  27. tests.rtti.impl,
  28. {$endif}
  29. tests.rtti;
  30. var
  31. Application: TTestRunner;
  32. begin
  33. Application := TTestRunner.Create(nil);
  34. Application.Initialize;
  35. Application.Title := 'RTL-ObjPas unit tests';
  36. Application.Run;
  37. Application.Free;
  38. end.