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

Function testsuite_setup

dpdk/app/test/test_eventdev.c:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#define TEST_DEV_ID 0
28
29static int
30testsuite_setup(void)
31{
32 RTE_BUILD_BUG_ON(sizeof(struct rte_event) != 16);
33 uint8_t count;
34 count = rte_event_dev_count();
35 if (!count) {
36 int ret;
37
38 printf("Failed to find a valid event device,"
39 " trying with event_skeleton device\n");
40 ret = rte_vdev_init("event_skeleton", NULL);
41 if (ret != 0) {
42 printf("No event device, skipping\n");
43 return TEST_SKIPPED;
44 }
45 }
46 return TEST_SUCCESS;
47}
48
49static void
50testsuite_teardown(void)

Callers

nothing calls this directly

Calls 3

rte_event_dev_countFunction · 0.85
rte_vdev_initFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected