1 /*-----------------------------------------------------------------------------
3 * Purpose: Framework header
4 *----------------------------------------------------------------------------
5 * Copyright(c) KEIL - An ARM Company
6 *----------------------------------------------------------------------------*/
8 #ifndef __CMSIS_DV_FRAMEWORK_H__
9 #define __CMSIS_DV_FRAMEWORK_H__
11 #include "DV_Typedefs.h"
12 #include "DV_Report.h"
14 /*-----------------------------------------------------------------------------
15 * Test framework global definitions
16 *----------------------------------------------------------------------------*/
18 /* Test case definition macro */
19 #define TCD(x, y) { (((y) != 0) ? (x) : (NULL)), #x }
21 /* Test case description structure */
23 void (*TestFunc)(void); /* Test function */
24 const char *TFName; /* Test function name string */
27 /* Test group description structure */
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 */
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)*/
42 /* Defined in user test module */
43 extern TEST_GROUP ts[];
44 extern uint32_t tg_cnt;
46 #endif /* __CMSIS_DV_FRAMEWORK_H__ */