CCUnit  2.1
A C Unit Testing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CCUnitMakeSuite.h
Go to the documentation of this file.
1 /* -*- C; coding:utf-8 -*- */
2 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3  This file is part of the CCUnit Library.
4 
5  The CCUnit Library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public License
7  as published by the Free Software Foundation; either version 2.1 of
8  the License, or (at your option) any later version.
9 
10  The CCUnit Library is distributed in the hope that it will be
11  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with the CCUnit Library; see the file COPYING.LESSER.
17  If not, write to the Free Software Foundation, Inc., 59 Temple
18  Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20 /*
21  * $Id$
22  */
23 
27 #ifndef CCUNITMAKESUITE_H
28 #define CCUNITMAKESUITE_H
29 
30 #include <ccunit/CCUnitConfig.h>
31 #include <ccunit/CCUnitList.h>
32 #include <ccunit/CCUnitTest.h>
33 
34 #include <stdio.h>
35 
99 typedef struct _CCUnitTestDef
100 {
102  char* name;
103  char* idname;
104  void (*dtor) (struct _CCUnitTestDef*);
106 
118 typedef struct _CCUnitTestSuiteDef
119 {
123 
130 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name);
131 
137 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite);
138 
150 typedef struct _CCUnitFuncDef
151 {
152  char* scope;
153  char* type;
154  char* name;
155  char* desc;
157 
169 typedef struct _CCUnitTestCaseDef
170 {
176 
192 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent);
193 
209 extern void ccunit_writeSuite (FILE* ofp,
210  const char* name,
211  _CCUnitTestSuiteDef* suite);
212 
220 extern void ccunit_printSuite (FILE* ofp,
221  const char* name,
222  _CCUnitTestSuiteDef* suite);
223 
266 extern int ccunit_makeSuite (int ac, char** av);
267 
277 extern int ccunit_va_makeSuite (const char* prg, ...);
278 
281 #endif
SourceForge.jp hosts this site. Send comments to: CCUnit Developer