| 1081 | } |
| 1082 | |
| 1083 | static int |
| 1084 | test_dma(void) |
| 1085 | { |
| 1086 | int i; |
| 1087 | |
| 1088 | parse_dma_env_var(); |
| 1089 | |
| 1090 | /* basic sanity on dmadev infrastructure */ |
| 1091 | if (test_apis() < 0) |
| 1092 | ERR_RETURN("Error performing API tests\n"); |
| 1093 | |
| 1094 | if (rte_dma_count_avail() == 0) |
| 1095 | return TEST_SKIPPED; |
| 1096 | |
| 1097 | RTE_DMA_FOREACH_DEV(i) |
| 1098 | if (test_dmadev_instance(i) < 0) |
| 1099 | ERR_RETURN("Error, test failure for device %d\n", i); |
| 1100 | |
| 1101 | return 0; |
| 1102 | } |
| 1103 | |
| 1104 | REGISTER_DRIVER_TEST(dmadev_autotest, test_dma); |
nothing calls this directly
no test coverage detected