From: Bruce Richardson Date: Wed, 13 Oct 2021 15:17:31 +0000 (+0100) Subject: test/dma: run test suite on skeleton driver X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7f699229857e194ec07d0aabd3fb746728366fef;p=dpdk.git test/dma: run test suite on skeleton driver When running the dmadev_autotest, run the suite of copy tests on the skeleton driver created for API testing too, rather than just destroying the driver instances once the API tests are complete. This helps to sanity check the tests themselves are reasonable. Signed-off-by: Bruce Richardson Reviewed-by: Kevin Laatz --- diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index f4537a87c1..b0fba1d84e 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -254,14 +254,13 @@ test_apis(void) int id; int ret; - if (rte_vdev_init(pmd, NULL) < 0) - return TEST_SKIPPED; + /* attempt to create skeleton instance - ignore errors due to one being already present */ + rte_vdev_init(pmd, NULL); id = rte_dma_get_dev_id_by_name(pmd); if (id < 0) return TEST_SKIPPED; printf("\n### Test dmadev infrastructure using skeleton driver\n"); ret = test_dma_api(id); - rte_vdev_uninit(pmd); return ret; }