LTP GCOV extension - code coverage report
Current view: directory - src/tmc - main.c
Test: min.info
Date: 2009-06-18 Instrumented lines: 7
Code covered: 100.0 % Executed lines: 7

       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       main.c
      22                 :  *  @version    0.1
      23                 :  *  @brief      This file is the main file of the Test Module Controller
      24                 :  */
      25                 : 
      26                 : /* ------------------------------------------------------------------------- */
      27                 : /* INCLUDE FILES */
      28                 : #include <tmc.h>
      29                 : 
      30                 : /* ------------------------------------------------------------------------- */
      31                 : /* EXTERNAL DATA STRUCTURES */
      32                 : /* None */
      33                 : 
      34                 : /* ------------------------------------------------------------------------- */
      35                 : /* EXTERNAL GLOBAL VARIABLES */
      36                 : /* None */
      37                 : 
      38                 : /* ------------------------------------------------------------------------- */
      39                 : /* EXTERNAL FUNCTION PROTOTYPES */
      40                 : /* None */
      41                 : 
      42                 : /* ------------------------------------------------------------------------- */
      43                 : /* GLOBAL VARIABLES */
      44                 : /** Adress of the TMC structure.
      45                 :  *  Introduced to give access to the TMC structure in signal handlers.
      46                 :  */
      47                 : TMC_t          *ptmc;
      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                 : 
      64                 : 
      65                 : /* ------------------------------------------------------------------------- */
      66                 : /* MODULE DATA STRUCTURES */
      67                 : /* None */
      68                 : 
      69                 : /* ------------------------------------------------------------------------- */
      70                 : /* LOCAL FUNCTION PROTOTYPES */
      71                 : /* None */
      72                 : 
      73                 : /* ------------------------------------------------------------------------- */
      74                 : /* FORWARD DECLARATIONS */
      75                 : /* None */
      76                 : 
      77                 : /* ==================== LOCAL FUNCTIONS ==================================== */
      78                 : /* ------------------------------------------------------------------------- */
      79                 : /** Entry point of TMC
      80                 :  *  @param argc [in] number of the program arguments.
      81                 :  *  @param argv [in] address of the array that contains program arguments.
      82                 :  *  @param envp [in] environmental variables.
      83                 :  *  @return exit code.
      84                 :  *
      85                 :  *  Format of programm arguments:
      86                 :  *  - name of the application
      87                 :  *  - path to the test library
      88                 :  *  - list of config files for that module
      89                 :  */
      90                 : int main (int argc, char *argv[], char *envp[])
      91             100 : {
      92                 :         TMC_t           tmc;
      93             100 :         ptmc = &tmc;
      94             100 :         tmc.config_list_ = INITPTR;
      95             100 :         gu_init_tmc (&tmc, argc, argv);
      96             100 :         gu_run_tmc (&tmc);
      97              90 :         gu_done_tmc (&tmc);
      98              90 :         return 0;
      99                 : }
     100                 : 
     101                 : /* ------------------------------------------------------------------------- */
     102                 : /* ======================== FUNCTIONS ====================================== */
     103                 : /* None */
     104                 : 
     105                 : /* ------------------------------------------------------------------------- */
     106                 : /* ================= OTHER EXPORTED FUNCTIONS ============================== */
     107                 : /* None */
     108                 : 
     109                 : /* ================= TESTS FOR LOCAL FUNCTIONS ============================= */
     110                 : /* None */
     111                 : 
     112                 : /* ------------------------------------------------------------------------- */
     113                 : /* End of file */

Generated by: LTP GCOV extension version 1.6