| 27 | #define TEST_DEV_ID 0 |
| 28 | |
| 29 | static int |
| 30 | testsuite_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 | |
| 49 | static void |
| 50 | testsuite_teardown(void) |
nothing calls this directly
no test coverage detected