]> begriffs open source - cmsis-driver-validation/blob - Include/DV_Framework.h
Minor comment correction in SockServer.c module
[cmsis-driver-validation] / Include / DV_Framework.h
1 /*-----------------------------------------------------------------------------
2  *      Name:         DV_Framework.h 
3  *      Purpose:      Framework header
4  *----------------------------------------------------------------------------
5  *      Copyright(c) KEIL - An ARM Company
6  *----------------------------------------------------------------------------*/
7
8 #ifndef __CMSIS_DV_FRAMEWORK_H__
9 #define __CMSIS_DV_FRAMEWORK_H__
10
11 #include "DV_Typedefs.h"
12 #include "DV_Report.h"
13
14 /*-----------------------------------------------------------------------------
15  * Test framework global definitions
16  *----------------------------------------------------------------------------*/
17
18 /* Test case definition macro                                                 */
19 #define TCD(x, y) { (((y) != 0) ? (x) : (NULL)), #x }
20
21 /* Test case description structure                                            */
22 typedef struct {
23   void (*TestFunc)(void);             /* Test function                        */
24   const char *TFName;                 /* Test function name string            */
25 } const TEST_CASE;
26
27 /* Test group description structure                                           */
28 typedef struct {
29   const char *FileName;               /* Test module file name                */
30   const char *Date;                   /* Compilation date                     */
31   const char *Time;                   /* Compilation time                     */
32   const char *ReportTitle;            /* Title or name of module under test   */
33   void (*Init)(void);                 /* Init function callback               */
34   void (*Uninit)(void);               /* Uninit function callback             */
35   
36   uint32_t TCBaseNum;                 /* Base number for test case numbering  */
37   TEST_CASE *TC;                      /* Array of test cases                  */
38   uint32_t NumOfTC;                   /* Number of test cases (sz of TC array)*/
39
40 } const TEST_GROUP;
41
42 /* Defined in user test module                                                */
43 extern TEST_GROUP ts[];
44 extern uint32_t   tg_cnt;
45
46 #endif /* __CMSIS_DV_FRAMEWORK_H__ */