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

Function testsuite_setup

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

Source from the content-addressed store, hash-verified

41static uint16_t test_dev_id;
42
43static int
44testsuite_setup(void)
45{
46 uint8_t count;
47
48 total = 0;
49 passed = 0;
50 failed = 0;
51 unsupported = 0;
52
53 count = rte_rawdev_count();
54 if (!count) {
55 SKELDEV_TEST_INFO("\tNo existing rawdev; "
56 "Creating 'skeldev_rawdev'");
57 return rte_vdev_init(TEST_DEV_NAME, NULL);
58 }
59
60 return TEST_SUCCESS;
61}
62
63static void local_teardown(void);
64

Callers 1

test_rawdev_skeldevFunction · 0.70

Calls 2

rte_rawdev_countFunction · 0.85
rte_vdev_initFunction · 0.85

Tested by

no test coverage detected