[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- C -*- */ 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.15 2010/08/19 23:43:42 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 00115 typedef struct _CCUnitTestDef 00116 { 00117 CCUnitTestType_t type; 00118 char* name; 00119 char* idname; 00120 void (*dtor) (struct _CCUnitTestDef*); 00121 } _CCUnitTestDef; 00122 00134 typedef struct _CCUnitTestSuiteDef 00135 { 00136 _CCUnitTestDef testdef; 00137 CCUnitList testdefs; 00138 } _CCUnitTestSuiteDef; 00139 00146 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name); 00147 00153 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite); 00154 00166 typedef struct _CCUnitFuncDef 00167 { 00168 char* scope; 00169 char* type; 00170 char* name; 00171 char* desc; 00172 } _CCUnitFuncDef; 00173 00185 typedef struct _CCUnitTestFixtureDef 00186 { 00187 _CCUnitTestDef testdef; 00188 _CCUnitFuncDef* ctor; 00189 _CCUnitFuncDef* dtor; 00190 _CCUnitFuncDef* setup_setUp; 00191 _CCUnitFuncDef* setup_tearDown; 00192 _CCUnitFuncDef* setUp; 00193 _CCUnitFuncDef* tearDown; 00194 CCUnitList testCases; 00195 } _CCUnitTestFixtureDef; 00196 00212 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent); 00213 00229 extern void ccunit_writeSuite (FILE* ofp, 00230 const char* name, 00231 _CCUnitTestSuiteDef* suite); 00232 00240 extern void ccunit_printSuite (FILE* ofp, 00241 const char* name, 00242 _CCUnitTestSuiteDef* suite); 00243 00286 extern int ccunit_makeSuite (int ac, char** av); 00287 00297 extern int ccunit_va_makeSuite (const char* prg, ...); 00298 00301 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Fri Aug 20 2010 09:46:30 for CCUnit by ![]() |