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

Function test_device_driver

dpdk/app/test-mldev/test_device_ops.c:176–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static int
177test_device_driver(struct ml_test *test, struct ml_options *opt)
178{
179 struct test_device *t;
180 int ret = 0;
181
182 t = ml_test_priv(test);
183
184 /* sub-test: device reconfigure */
185 ret = test_device_reconfigure(test, opt);
186 if (ret != 0) {
187 printf("\n");
188 printf("Model Device Reconfigure Test: " CLRED "%s" CLNRM "\n", "Failed");
189 goto error;
190 } else {
191 printf("\n");
192 printf("Model Device Reconfigure Test: " CLYEL "%s" CLNRM "\n", "Passed");
193 }
194
195 printf("\n");
196
197 t->cmn.result = ML_TEST_SUCCESS;
198
199 return 0;
200
201error:
202 t->cmn.result = ML_TEST_FAILED;
203 return -1;
204}
205
206static int
207test_device_result(struct ml_test *test, struct ml_options *opt)

Callers

nothing calls this directly

Calls 3

ml_test_privFunction · 0.85
test_device_reconfigureFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected