testrunner.rtlobjpas.pp 841 B

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