CCUnit project page | CCUnit home page |
00001 /* -*- C -*- */ 00002 /* Copyright (C) 2003 TSUTSUMI Kikuo. 00003 This file is part of the CCUnit Library. 00004 00005 The CCUnit Library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public License 00007 as published by the Free Software Foundation; either version 2.1 of 00008 the License, or (at your option) any later version. 00009 00010 The CCUnit Library is distributed in the hope that it will be 00011 useful, but WITHOUT ANY WARRANTY; without even the implied warranty 00012 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with the CCUnit Library; see the file COPYING.LESSER. 00017 If not, write to the Free Software Foundation, Inc., 59 Temple 00018 Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 /* 00021 * $Id: CCUnitMakeSuite.h,v 1.11 2003/09/28 18:29:26 tsutsumi Exp $ 00022 */ 00023 00027 #ifndef CCUNITMAKESUITE_H 00028 #define CCUNITMAKESUITE_H 00029 00030 #include <ccunit/CCUnitConfig.h> 00031 #include <ccunit/CCUnitList.h> 00032 #include <ccunit/CCUnitTest.h> 00033 00034 #include <stdio.h> 00035 00074 typedef struct _CCUnitTestDef 00075 { 00076 CCUnitTestType_t type; 00077 char* name; 00078 char* idname; 00079 void (*dtor) (struct _CCUnitTestDef*); 00080 } _CCUnitTestDef; 00081 00093 typedef struct _CCUnitTestSuiteDef 00094 { 00095 _CCUnitTestDef testdef; 00096 CCUnitList testdefs; 00097 } _CCUnitTestSuiteDef; 00098 00105 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name); 00106 00112 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite); 00113 00125 typedef struct _CCUnitFuncDef 00126 { 00127 char* scope; 00128 char* type; 00129 char* name; 00130 char* desc; 00131 } _CCUnitFuncDef; 00132 00144 typedef struct _CCUnitTestFixtureDef 00145 { 00146 _CCUnitTestDef testdef; 00147 _CCUnitFuncDef* ctor; 00148 _CCUnitFuncDef* dtor; 00149 _CCUnitFuncDef* setUp; 00150 _CCUnitFuncDef* tearDown; 00151 CCUnitList testCases; 00152 } _CCUnitTestFixtureDef; 00153 00168 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent); 00169 00185 extern void ccunit_writeSuite (FILE* ofp, 00186 const char* name, 00187 _CCUnitTestSuiteDef* suite); 00188 00196 extern void ccunit_printSuite (FILE* ofp, 00197 const char* name, 00198 _CCUnitTestSuiteDef* suite); 00199 00236 extern int ccunit_makeSuite (int ac, char** av); 00237 00247 extern int ccunit_va_makeSuite (const char* prg, ...); 00248 00251 #endif
|
hosts this site. |
Send comments to: CCUnit Developer |