fppkg_tests.pp 924 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. program fppkg_tests;
  2. {$mode objfpc}{$H+}
  3. uses
  4. {$ifdef unix}
  5. cthreads,
  6. {$endif unix}
  7. Classes,
  8. CustApp,
  9. consoletestrunner,
  10. FullFPCInstallationTests;
  11. type
  12. { TFppkgTestRunner }
  13. TFppkgTestRunner = class(TTestRunner)
  14. protected
  15. procedure AppendLongOpts; override;
  16. function GetShortOpts: string; override;
  17. end;
  18. procedure TFppkgTestRunner.AppendLongOpts;
  19. begin
  20. inherited AppendLongOpts;
  21. LongOpts.Add('fpcsrcpath::');
  22. LongOpts.Add('testpath:');
  23. LongOpts.Add('startcompiler:');
  24. LongOpts.Add('skipbuildtemplate');
  25. LongOpts.Add('packagespath:');
  26. end;
  27. function TFppkgTestRunner.GetShortOpts: string;
  28. begin
  29. Result := inherited GetShortOpts;
  30. Result := Result + 'f:t:s:Tp:';
  31. end;
  32. begin
  33. CustomApplication := TFppkgTestRunner.Create(nil);
  34. CustomApplication.Initialize;
  35. CustomApplication.Title := 'FPCUnit Console test runner';
  36. CustomApplication.Run;
  37. CustomApplication.Free;
  38. end.