/[ascend]/trunk/test/CUnit/Automated.h
ViewVC logotype

Annotation of /trunk/test/CUnit/Automated.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (hide annotations) (download) (as text)
Sun Oct 30 01:38:20 2005 UTC (18 years, 8 months ago) by jds
File MIME type: text/x-chdr
File size: 2325 byte(s)
- prototype unit test suite based on CUnit added.
- unit tests for base/generic/general and base/generic/utilites added.
- 2nd manual rework of doxygen documentation in general and utilities.
- bug fixes (mostly general & utilities) found during test development.
- added asc_assert prototype to redirect failures to Asc_Panic() and enable decoupling assertions from NDEBUG.
- some modifications of interface & implementation to facilitate testing.
- utilities/ascPrint & utilities/ascMalloc functions now always included in base libs to minimize recompilation when an interface chooses different options.
1 jds 59 /*
2     * CUnit - A Unit testing framework library for C.
3     * Copyright (C) 2001 Anil Kumar
4     * Copyright (C) 2004, 2005 Anil Kumar, Jerry St.Clair
5     *
6     * This library is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU Library General Public
8     * License as published by the Free Software Foundation; either
9     * version 2 of the License, or (at your option) any later version.
10     *
11     * This library is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14     * Library General Public License for more details.
15     *
16     * You should have received a copy of the GNU Library General Public
17     * License along with this library; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21     /*
22     * Contains Interface for Automated Run tests which generates HTML Report Files.
23     *
24     * Created By : Anil Kumar on ...(in month of Feb 2002)
25     * Last Modified : 13/Feb/2002
26     * Comment : Single interface to automated_run_tests
27     * EMail : aksaharan@yahoo.com
28     *
29     * Modified : 20-Jul-2004 (JDS)
30     * Comment : New interface, doxygen comments.
31     * EMail : jds2@users.sourceforge.net
32     */
33    
34     /** @file
35     * Automated testing interface with xml output (user interface).
36     */
37     /** @addtogroup Automated
38     * @{
39     */
40    
41     #ifndef CUNIT_AUTOMATED_H_SEEN
42     #define CUNIT_AUTOMATED_H_SEEN
43    
44     #include "CUnit.h"
45     #include "TestDB.h"
46    
47     #ifdef __cplusplus
48     extern "C" {
49     #endif
50    
51     CU_EXPORT void CU_automated_run_tests(void);
52     CU_EXPORT CU_ErrorCode CU_list_tests_to_file(void);
53     CU_EXPORT void CU_set_output_filename(/*@null@*//*@unique@*/ const char* szFilenameRoot);
54    
55     #ifdef USE_DEPRECATED_CUNIT_NAMES
56     /** Deprecated (version 1). @deprecated Use CU_automated_run_tests(). */
57     #define automated_run_tests() CU_automated_run_tests()
58     /** Deprecated (version 1). @deprecated Use CU_set_output_filename(). */
59     #define set_output_filename(x) CU_set_output_filename((x))
60     #endif /* USE_DEPRECATED_CUNIT_NAMES */
61    
62     #ifdef __cplusplus
63     }
64     #endif
65     #endif /* CUNIT_AUTOMATED_H_SEEN */
66     /** @} */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22