This patchset adds a fairly comprehensive set of tests for basic dmadev functionality. It takes the existing tests that were in the skeleton dmadev and uses those to create a set of API-level tests to check the basics of the dmadev library itself. Once that is done, the "selftest" part of the dmadev API is removed as drivers should largely rely on the standard tests to ensure compatibility.
For those standard tests, tests are added to verify basic copy operation in each device, using both submit function and submit flag, and verifying completion gathering using both "completed()" and "completed_status()" functions. Beyond that, tests are then added for the error reporting and handling, as is a suite of tests for the fill() operation for devices that support those. NOTE: This patchset depends on series v16 of the dmadev set [1]. The first 2 patches should probably be merged into that set for completeness as they move and adjust basic dmadev code, and the dmadev skeleton driver. [1] http://patches.dpdk.org/project/dpdk/list/?series=18391 Bruce Richardson (6): app/test: take API tests from skeleton dmadev dmadev: remove selftest support app/test: add basic dmadev instance tests app/test: add basic dmadev copy tests app/test: add more comprehensive dmadev copy tests app/test: test dmadev instance failure handling Kevin Laatz (1): app/test: add dmadev fill tests app/test/meson.build | 1 + app/test/test_dmadev.c | 844 +++++++++++++++++- .../test/test_dmadev_api.c | 24 +- drivers/dma/skeleton/meson.build | 1 - drivers/dma/skeleton/skeleton_dmadev.c | 35 +- drivers/dma/skeleton/skeleton_dmadev.h | 3 - lib/dmadev/rte_dmadev.c | 10 - lib/dmadev/rte_dmadev.h | 18 - lib/dmadev/rte_dmadev_core.h | 4 - lib/dmadev/version.map | 1 - 10 files changed, 838 insertions(+), 103 deletions(-) rename drivers/dma/skeleton/skeleton_dmadev_test.c => app/test/test_dmadev_api.c (96%) -- 2.30.2