comparison riviera/tests/rv/rv_test_regr.h @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /**
2 * @file rv_test_regr.h
3 *
4 * Definitions used for non-regression tests.
5 *
6 * @author Cedric Baudelet
7 * @author Vincent Oberle
8 */
9
10 /*
11 * History:
12 *
13 * Date Author Modification
14 * -------------------------------------------------------------------
15 * 09/29/00 Cedric Baudelet Create.
16 * 03/15/02 Vincent Oberle Passed all remaining macros into function.
17 * Comment and formating cleaning.
18 *
19 * (C) Copyright 2002 by Texas Instruments Incorporated, All Rights Reserved
20 */
21
22 #ifndef _RV_TEST_REGR_H_
23 #define _RV_TEST_REGR_H_
24
25 #include "tests/rv/rv_test.h"
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
32
33 /*
34 * DO NOT MODIFY THIS FILE!
35 * Add your test in the corresponding .c file only.
36 */
37
38
39 /**
40 * Define the MAX number of tests which it will be possible to execute during
41 * the regression.
42 */
43 #define MAX_NB_OF_TEST_TO_PASS (200)
44
45 /** Non-Regression test error type */
46 typedef T_RV_TEST_ERR_TYPE T_RV_REGR_ERR_TYPE;
47
48 /** Non-Regression test return value type */
49 typedef T_RV_TEST_RET T_RV_REGR_RET;
50
51
52 /** Non-Regression test configuration parameter */
53 typedef enum {
54 TEST_LIST = 0, /* Allows to execute chosen tests */
55 TEST_LIST_RAND = -2, /* Allows to execute rand chosen tests */
56 TEST_ALL = -3, /* Allows to execute all tests available */
57 TEST_ALL_RAND = -4 /* Allows to execute rand all tests available */
58 } T_RV_REGR_TEST_CFG;
59
60
61 /** Non-Regression test list contents */
62 typedef UINT8 T_RV_REGR_TEST_LIST_NBR;
63 typedef UINT8 T_RV_REGR_TEST_LIST_CFG;
64
65 #define CONFIG_A (0) /* DEVICE_A = SOURCE & DEVICE_B = TARGET */
66 #define CONFIG_B (1) /* DEVICE_A = TARGET & DEVICE_B = SOURCE */
67
68 typedef struct {
69 T_RV_REGR_TEST_LIST_NBR list_nbr; /* Number of the executed test */
70 T_RV_REGR_TEST_LIST_CFG list_cfg; /* Configuration of the executed test */
71 } T_RV_REGR_TEST_LIST;
72
73
74 /** Non-Regression test total number of tests */
75 typedef UINT16 T_RV_REGR_TEST_TOT;
76
77 /** Non-Regression test nb of occurence of each test */
78 typedef UINT8 T_RV_REGR_TEST_OCC;
79
80 /** Non-Regression test initialization parameter */
81 #define RV_REGR_RAND_INIT (1)
82
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif /* _RV_TEST_REGR_ */