1 : /*
2 : * This file is part of MIN Test Framework. Copyright © 2008 Nokia Corporation
3 : * and/or its subsidiary(-ies).
4 : * Contact: Konrad Marek Zapalowicz
5 : * Contact e-mail: DG.MIN-Support@nokia.com
6 : *
7 : * This program is free software: you can redistribute it and/or modify it
8 : * under the terms of the GNU General Public License as published by the Free
9 : * Software Foundation, version 2 of the License.
10 : *
11 : * This program is distributed in the hope that it will be useful, but WITHOUT
12 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 : * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 : * more details. You should have received a copy of the GNU General Public
15 : * License along with this program. If not, see
16 : * <http://www.gnu.org/licenses/>.
17 : */
18 :
19 :
20 : /**
21 : * @file check_parser.c
22 : * @version 0.1
23 : * @brief This file contains implementation of test for Min Parser
24 : */
25 :
26 : /* ------------------------------------------------------------------------- */
27 : /* INCLUDE FILES */
28 : #include <stdlib.h>
29 : #include <check.h>
30 :
31 : /* ------------------------------------------------------------------------- */
32 : /* EXTERNAL DATA STRUCTURES */
33 : /* None */
34 :
35 : /* ------------------------------------------------------------------------- */
36 : /* EXTERNAL GLOBAL VARIABLES */
37 : /* None */
38 :
39 : /* ------------------------------------------------------------------------- */
40 : /* EXTERNAL FUNCTION PROTOTYPES */
41 : extern int min_parser_tests ();
42 : extern int min_file_parser_tests ();
43 : extern int min_section_parser_tests ();
44 :
45 : /* ------------------------------------------------------------------------- */
46 : /* GLOBAL VARIABLES */
47 : /* None */
48 :
49 : /* ------------------------------------------------------------------------- */
50 : /* CONSTANTS */
51 : /* None */
52 :
53 : /* ------------------------------------------------------------------------- */
54 : /* MACROS */
55 : /* None */
56 :
57 : /* ------------------------------------------------------------------------- */
58 : /* LOCAL GLOBAL VARIABLES */
59 : /* None */
60 :
61 : /* ------------------------------------------------------------------------- */
62 : /* LOCAL CONSTANTS AND MACROS */
63 : /* None */
64 :
65 : /* ------------------------------------------------------------------------- */
66 : /* MODULE DATA STRUCTURES */
67 : /* None */
68 :
69 : /* ------------------------------------------------------------------------- */
70 : /* LOCAL FUNCTION PROTOTYPES */
71 : int main (int argc, char *argv[])
72 342 : {
73 : int number_failed;
74 :
75 342 : number_failed = min_file_parser_tests ();
76 277 : number_failed += min_parser_tests ();
77 181 : number_failed += min_section_parser_tests ();
78 36 : number_failed += min_item_parser_tests ();
79 :
80 1 : return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
81 : }
82 :
83 : /* ------------------------------------------------------------------------- */
84 : /* FORWARD DECLARATIONS */
85 : /* None */
86 :
87 : /* ==================== LOCAL FUNCTIONS ==================================== */
88 : /* None */
89 :
90 : /* ======================== FUNCTIONS ====================================== */
91 : /* None */
92 :
93 : /* ------------------------------------------------------------------------- */
94 : /* ================= OTHER EXPORTED FUNCTIONS ============================== */
95 : /* None */
96 :
97 : /* End of file */
|