| 31 | static int failed; |
| 32 | |
| 33 | static int |
| 34 | testsuite_setup(int16_t dev_id) |
| 35 | { |
| 36 | test_dev_id = dev_id; |
| 37 | invalid_dev_id = -1; |
| 38 | |
| 39 | src = rte_malloc("dmadev_test_src", TEST_MEMCPY_SIZE, 0); |
| 40 | if (src == NULL) |
| 41 | return -ENOMEM; |
| 42 | dst = rte_malloc("dmadev_test_dst", TEST_MEMCPY_SIZE, 0); |
| 43 | if (dst == NULL) { |
| 44 | rte_free(src); |
| 45 | src = NULL; |
| 46 | return -ENOMEM; |
| 47 | } |
| 48 | |
| 49 | total = 0; |
| 50 | passed = 0; |
| 51 | failed = 0; |
| 52 | |
| 53 | /* Set dmadev log level to critical to suppress unnecessary output |
| 54 | * during API tests. |
| 55 | */ |
| 56 | rte_log_set_level_pattern("lib.dmadev", RTE_LOG_CRIT); |
| 57 | |
| 58 | return 0; |
| 59 | } |
| 60 | |
| 61 | static void |
| 62 | testsuite_teardown(void) |
no test coverage detected