testrunner.rtlobjpas.pp 784 B

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