DUnitTestLib.dpr
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:2k
- { $Id: DUnitTestLib.dpr,v 1.6 2006/07/19 02:52:55 judc Exp $ }
- {: DUnit: An XTreme testing framework for Delphi programs.
- @author The DUnit Group.
- @version $Revision: 1.6 $
- }
- (*
- * The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is DUnit.
- *
- * The Initial Developers of the Original Code are Kent Beck, Erich Gamma,
- * and Juancarlo A馿z.
- * Portions created The Initial Developers are Copyright (C) 1999-2000.
- * Portions created by The DUnit Group are Copyright (C) 2000-2003.
- * All rights reserved.
- *
- * Contributor(s):
- * Kent Beck <kentbeck@csi.com>
- * Erich Gamma <Erich_Gamma@oti.com>
- * Juanco A馿z <juanco@users.sourceforge.net>
- * Chris Morris <chrismo@users.sourceforge.net>
- * Jeff Moore <JeffMoore@users.sourceforge.net>
- * Uberto Barbini <uberto@usa.net>
- * The DUnit group at SourceForge <http://dunit.sourceforge.net>
- *
- *)
- {$IFDEF LINUX}
- {$DEFINE DUNIT_CLX}
- {$ENDIF}
- library DUnitTestLib;
- uses
- {$IFDEF FASTMM}
- {$IFNDEF VER180}
- {$IFNDEF CLR}
- FastMM4,
- {$ENDIF}
- {$ENDIF}
- {$ELSE}
- ShareMem,
- {$ENDIF}
- SysUtils,
- TestFramework,
- TestExtensions,
- UnitTestFramework in 'UnitTestFramework.pas',
- UnitTestExtensions in 'UnitTestExtensions.pas',
- {$IFNDEF NO_GUI_TESTING}
- GUITesting,
- UnitTestGUITesting in 'UnitTestGUITesting.pas',
- {$ENDIF}
- UnitTestGUITestRunner in 'UnitTestGUITestRunner.pas';
- {$E .dtl}
- {$R *.res}
- exports
- RegisteredTests name 'Test';
- begin
- {$IFDEF VER140}
- {$IFDEF FASTMM}
- // It is Delphi 6 and FASTMM so register its known memory leaks
- RegisterExpectedMemoryLeak(36, 1); // TWinHelpViewer x 1
- RegisterExpectedMemoryLeak(20, 3); // TObjectList x 3
- RegisterExpectedMemoryLeak(20, 3); // Unknown x 3
- RegisterExpectedMemoryLeak(52, 1); // THelpManager x 1
- {$ENDIF}
- {$ENDIF}
- end.