[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- C; coding:euc-jp -*- */ 00002 /* Copyright (C) 2003, 2010 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.19 2010/08/27 13:30:45 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 00098 typedef struct _CCUnitTestDef 00099 { 00100 CCUnitTestType_t type; 00101 char* name; 00102 char* idname; 00103 void (*dtor) (struct _CCUnitTestDef*); 00104 } _CCUnitTestDef; 00105 00117 typedef struct _CCUnitTestSuiteDef 00118 { 00119 _CCUnitTestDef testdef; 00120 CCUnitList testdefs; 00121 } _CCUnitTestSuiteDef; 00122 00129 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name); 00130 00136 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite); 00137 00149 typedef struct _CCUnitFuncDef 00150 { 00151 char* scope; 00152 char* type; 00153 char* name; 00154 char* desc; 00155 } _CCUnitFuncDef; 00156 00168 typedef struct _CCUnitTestCaseDef 00169 { 00170 _CCUnitTestDef testdef; 00171 _CCUnitFuncDef* ctor; 00172 _CCUnitFuncDef* dtor; 00173 CCUnitList testFuncs; 00174 } _CCUnitTestCaseDef; 00175 00191 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent); 00192 00208 extern void ccunit_writeSuite (FILE* ofp, 00209 const char* name, 00210 _CCUnitTestSuiteDef* suite); 00211 00219 extern void ccunit_printSuite (FILE* ofp, 00220 const char* name, 00221 _CCUnitTestSuiteDef* suite); 00222 00265 extern int ccunit_makeSuite (int ac, char** av); 00266 00276 extern int ccunit_va_makeSuite (const char* prg, ...); 00277 00280 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:29 for CCUnit by ![]() |