testrunner.rtlobjpas.pp 803 B

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