testrunner.rtlobjpas.pp 736 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. {$ifdef testimpl}
  23. tests.rtti.impl,
  24. {$endif}
  25. tests.rtti;
  26. var
  27. Application: TTestRunner;
  28. begin
  29. Application := TTestRunner.Create(nil);
  30. Application.Initialize;
  31. Application.Title := 'RTL-ObjPas unit tests';
  32. Application.Run;
  33. Application.Free;
  34. end.