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

Function skeldev_test_run

dpdk/drivers/raw/skeleton/skeleton_rawdev_test.c:403–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static void skeldev_test_run(int (*setup)(void),
404 void (*teardown)(void),
405 int (*test)(void),
406 const char *name)
407{
408 int ret = 0;
409
410 if (setup) {
411 ret = setup();
412 if (ret < 0) {
413 SKELDEV_TEST_INFO("Error setting up test %s", name);
414 unsupported++;
415 }
416 }
417
418 if (test) {
419 ret = test();
420 if (ret < 0) {
421 failed++;
422 SKELDEV_TEST_INFO("%s Failed", name);
423 } else {
424 passed++;
425 SKELDEV_TEST_DEBUG("%s Passed", name);
426 }
427 }
428
429 if (teardown)
430 teardown();
431
432 total++;
433}
434
435int
436test_rawdev_skeldev(uint16_t dev_id)

Callers

nothing calls this directly

Calls 2

setupFunction · 0.85
testClass · 0.50

Tested by

no test coverage detected