12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- program fppkg_tests;
- {$mode objfpc}{$H+}
- uses
- {$ifdef unix}
- cthreads,
- {$endif unix}
- Classes,
- CustApp,
- consoletestrunner,
- FullFPCInstallationTests;
- type
- { TFppkgTestRunner }
- TFppkgTestRunner = class(TTestRunner)
- protected
- procedure AppendLongOpts; override;
- function GetShortOpts: string; override;
- end;
- procedure TFppkgTestRunner.AppendLongOpts;
- begin
- inherited AppendLongOpts;
- LongOpts.Add('fpcsrcpath::');
- LongOpts.Add('testpath:');
- LongOpts.Add('startcompiler:');
- LongOpts.Add('skipbuildtemplate');
- LongOpts.Add('packagespath:');
- end;
- function TFppkgTestRunner.GetShortOpts: string;
- begin
- Result := inherited GetShortOpts;
- Result := Result + 'f:t:s:Tp:';
- end;
- begin
- CustomApplication := TFppkgTestRunner.Create(nil);
- CustomApplication.Initialize;
- CustomApplication.Title := 'FPCUnit Console test runner';
- CustomApplication.Run;
- CustomApplication.Free;
- end.
|