[ 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.12 2003/10/24 20:05:22 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 00101 typedef struct _CCUnitTestDef 00102 { 00103 CCUnitTestType_t type; 00104 char* name; 00105 char* idname; 00106 void (*dtor) (struct _CCUnitTestDef*); 00107 } _CCUnitTestDef; 00108 00120 typedef struct _CCUnitTestSuiteDef 00121 { 00122 _CCUnitTestDef testdef; 00123 CCUnitList testdefs; 00124 } _CCUnitTestSuiteDef; 00125 00132 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name); 00133 00139 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite); 00140 00152 typedef struct _CCUnitFuncDef 00153 { 00154 char* scope; 00155 char* type; 00156 char* name; 00157 char* desc; 00158 } _CCUnitFuncDef; 00159 00171 typedef struct _CCUnitTestFixtureDef 00172 { 00173 _CCUnitTestDef testdef; 00174 _CCUnitFuncDef* ctor; 00175 _CCUnitFuncDef* dtor; 00176 _CCUnitFuncDef* setUp; 00177 _CCUnitFuncDef* tearDown; 00178 CCUnitList testCases; 00179 } _CCUnitTestFixtureDef; 00180 00195 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent); 00196 00212 extern void ccunit_writeSuite (FILE* ofp, 00213 const char* name, 00214 _CCUnitTestSuiteDef* suite); 00215 00223 extern void ccunit_printSuite (FILE* ofp, 00224 const char* name, 00225 _CCUnitTestSuiteDef* suite); 00226 00278 extern int ccunit_makeSuite (int ac, char** av); 00279 00289 extern int ccunit_va_makeSuite (const char* prg, ...); 00290 00293 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:38 for CCUnit by ![]() |