1 /*-----------------------------------------------------------------------------
3 * Purpose: Framework header
4 *----------------------------------------------------------------------------
5 * Copyright (c) 2017 ARM Limited. All rights reserved.
6 *----------------------------------------------------------------------------*/
7 #ifndef __FRAMEWORK_H__
8 #define __FRAMEWORK_H__
10 #include "CV_Typedefs.h"
11 #include "CV_Report.h"
13 /*-----------------------------------------------------------------------------
14 * Test framework global definitions
15 *----------------------------------------------------------------------------*/
17 /* Test case definition macro */
18 #define TCD(x, y) {x, #x, y}
20 /* Test case description structure */
21 typedef struct __TestCase {
22 void (*TestFunc)(void); /* Test function */
23 const char *TFName; /* Test function name string */
24 BOOL en; /* Test function enabled */
27 /* Test suite description structure */
28 typedef struct __TestSuite {
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 */
35 uint32_t TCBaseNum; /* Base number for test case numbering */
36 TEST_CASE *TC; /* Array of test cases */
37 uint32_t NumOfTC; /* Number of test cases (sz of TC array)*/
41 /* Defined in user test module */
44 #endif /* __FRAMEWORK_H__ */