1 /*-----------------------------------------------------------------------------
3 * Purpose: Test framework entry point
4 *----------------------------------------------------------------------------
5 * Copyright (c) 2017 ARM Limited. All rights reserved.
6 *----------------------------------------------------------------------------*/
7 #include "CV_Framework.h"
11 void ts_cmsis_cv(void);
12 void closeDebug(void);
14 /*=======0=========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1====*/
16 \defgroup framework_funcs Framework Functions
17 \brief Functions in the Framework software component
23 /*=======0=========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1====*/
25 \brief Close the debug session.
27 Debug session dead end - debug script should close session here.
29 void closeDebug(void) {
35 /*=======0=========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1====*/
38 \brief This is CORE Validation test suite.
41 -# Test report statistics is initialized
42 -# Test report headers are written to the standard output
43 -# All defined test cases are executed:
44 - Test case statistics is initialized
45 - Test case report header is written to the standard output
46 - Test case is executed
47 - Test case results are written to the standard output
48 - Test case report footer is written to the standard output
50 -# Test report footer is written to the standard output
51 -# Debug session ends in dead loop
56 (void)ritf.Init (); /* Init test report */
57 (void)ritf.Open (ts.ReportTitle, /* Write test report title */
58 ts.Date, /* Write compilation date */
59 ts.Time, /* Write compilation time */
60 ts.FileName); /* Write module file name */
62 /* Execute all test cases */
63 for (tc = 0; tc < ts.NumOfTC; tc++) {
64 no = ts.TCBaseNum+tc; /* Test case number */
65 fn = ts.TC[tc].TFName; /* Test function name string */
66 (void)ritf.Open_TC (no, fn); /* Open test case #(Base + TC) */
67 if (ts.TC[tc].en != 0U) {
68 ts.TC[tc].TestFunc(); /* Execute test case if enabled */
70 (void)ritf.Close_TC (); /* Close test case */
72 (void)ritf.Close (); /* Close test report */
74 closeDebug(); /* Close debug session */
78 \brief This is the entry point of the test framework.
81 -# Hardware is first initialized if Init callback function is provided
82 -# Main thread is initialized
84 void cmsis_cv (void) {
87 if (ts.Init != NULL) {
88 ts.Init(); /* Init hardware */
97 // end of group framework_funcs