1 : /*
2 : * This file is part of MIN Test Framework. Copyright © 2008 Nokia Corporation
3 : * and/or its subsidiary(-ies).
4 : * Contact: Sampo Saaristo
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_minunit.c
22 : * @version 0.1
23 : * @brief This file contains implementation of ...
24 : */
25 :
26 : /* ------------------------------------------------------------------------- */
27 : /* INCLUDE FILES */
28 : #include <stdlib.h>
29 : #include <stdio.h>
30 : #include <dllist.h>
31 : #include <test_module_api.h>
32 :
33 : #include <check.h>
34 : #include "check_minunit.tests"
35 : /* ------------------------------------------------------------------------- */
36 : /* EXTERNAL DATA STRUCTURES */
37 : /* None */
38 :
39 : /* ------------------------------------------------------------------------- */
40 : /* EXTERNAL FUNCTION PROTOTYPES */
41 : extern int tm_get_test_cases (const char *cfg_file, DLList ** cases);
42 : extern int tm_run_test_case (unsigned int id, const char *cfg_file,
43 : TestCaseResult * result);
44 :
45 : /* ------------------------------------------------------------------------- */
46 : /* CONSTANTS */
47 : /* None */
48 :
49 : /* ------------------------------------------------------------------------- */
50 : /* MACROS */
51 : /* None */
52 :
53 : /* ------------------------------------------------------------------------- */
54 : /* LOCAL CONSTANTS AND MACROS */
55 : /* None */
56 :
57 : /* ------------------------------------------------------------------------- */
58 : /* MODULE DATA STRUCTURES */
59 : /* None */
60 :
61 : /* ------------------------------------------------------------------------- */
62 : /* LOCAL FUNCTION PROTOTYPES */
63 : /* None */
64 :
65 : /* ------------------------------------------------------------------------- */
66 : /* FORWARD DECLARATIONS */
67 : /* None */
68 :
69 : /* ==================== LOCAL FUNCTIONS ==================================== */
70 : int main (int argc, char *argv[])
71 18 : {
72 : int number_failed;
73 18 : Suite *s = minunit_suite ();
74 18 : SRunner *sr = srunner_create (s);
75 18 : srunner_run_all (sr, CK_NORMAL);
76 1 : number_failed = srunner_ntests_failed (sr);
77 1 : srunner_free (sr);
78 1 : return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
79 : }
80 :
81 :
82 : /* ======================== FUNCTIONS ====================================== */
83 : /* None */
84 :
85 : /* ------------------------------------------------------------------------- */
86 :
87 : /* ------------------------------------------------------------------------- */
88 :
89 : /* ------------------------------------------------------------------------- */
90 :
91 :
92 : /* ================= OTHER EXPORTED FUNCTIONS ============================== */
93 : /* None */
94 :
95 :
96 : /* End of file */
|