88 * <code>__func__</code>. |
88 * <code>__func__</code>. |
89 */ |
89 */ |
90 #define __FUNCTION__ __func__ |
90 #define __FUNCTION__ __func__ |
91 #endif |
91 #endif |
92 |
92 |
93 /** Type for the internal list of test cases. */ |
|
94 typedef struct UcxTestList UcxTestList; |
|
95 /** Type for the UcxTestSuite. */ |
93 /** Type for the UcxTestSuite. */ |
96 typedef struct UcxTestSuite UcxTestSuite; |
94 typedef struct UcxTestSuite UcxTestSuite; |
97 /** Pointer to a test function. */ |
95 /** Pointer to a test function. */ |
98 typedef void(*UcxTest)(UcxTestSuite*,FILE*); |
96 typedef void(*UcxTest)(UcxTestSuite*,FILE*); |
|
97 /** Type for the internal list of test cases. */ |
|
98 typedef struct UcxTestList UcxTestList; |
|
99 |
|
100 /** Structure for the internal list of test cases. */ |
|
101 struct UcxTestList { |
|
102 /** Test case. */ |
|
103 UcxTest test; |
|
104 /** Pointer to the next list element. */ |
|
105 UcxTestList *next; |
|
106 }; |
99 |
107 |
100 /** |
108 /** |
101 * A test suite containing multiple test cases. |
109 * A test suite containing multiple test cases. |
102 */ |
110 */ |
103 struct UcxTestSuite { |
111 struct UcxTestSuite { |
117 * @return a new test suite |
125 * @return a new test suite |
118 */ |
126 */ |
119 UcxTestSuite* ucx_test_suite_new(); |
127 UcxTestSuite* ucx_test_suite_new(); |
120 /** |
128 /** |
121 * Destroys a test suite. |
129 * Destroys a test suite. |
122 * @param the test suite to destroy |
130 * @param suite the test suite to destroy |
123 */ |
131 */ |
124 void ucx_test_suite_free(UcxTestSuite* suite); |
132 void ucx_test_suite_free(UcxTestSuite* suite); |
125 |
133 |
126 /** |
134 /** |
127 * Registers a test function with the specified test suite. |
135 * Registers a test function with the specified test suite. |