MCPcopy Create free account
hub / github.com/F-Stack/f-stack / run_test_foreach_known_vec

Function run_test_foreach_known_vec

dpdk/app/test/test_pdcp.c:130–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static int
131run_test_foreach_known_vec(test_with_conf_t test, bool stop_on_first_pass,
132 enum pdcp_test_suite_type suite_type)
133{
134 struct pdcp_test_conf test_conf;
135 bool all_tests_skipped = true;
136 uint32_t nb_tests = nb_tests_get(suite_type);
137 uint32_t i;
138 int ret;
139
140 for (i = 0; i < nb_tests; i++) {
141 create_test_conf_from_index(i, &test_conf, suite_type);
142 ret = test(&test_conf);
143
144 if (ret == TEST_FAILED) {
145 printf("[%03i] - %s - failed\n", i,
146 pdcp_test_name_get(suite_type, i));
147 return TEST_FAILED;
148 }
149
150 if ((ret == TEST_SKIPPED) || (ret == -ENOTSUP))
151 continue;
152
153 if (stop_on_first_pass)
154 return TEST_SUCCESS;
155
156 all_tests_skipped = false;
157 }
158
159 if (all_tests_skipped)
160 return TEST_SKIPPED;
161
162 return TEST_SUCCESS;
163}
164
165static int
166run_test_with_all_known_vec(const void *args)

Calls 5

nb_tests_getFunction · 0.85
pdcp_test_name_getFunction · 0.85
testClass · 0.70
printfFunction · 0.50

Tested by

no test coverage detected