[dpdk-dev] [PATCH 0/4] simplify unit-testing of rawdevs
Bruce Richardson
bruce.richardson at intel.com
Fri Aug 21 17:59:41 CEST 2020
At present the "rawdev_autotest" command creates a skeleton rawdev and runs
a series of tests on the rawdev API and on that rawdev. While the rawdev
API set includes a "selftest" function, it is not hooked up to this test so
to test an individual rawdev driver, e.g. ioat, requires that a new test
command be added.
This patchset improves the situation by changing the UT to first run the
existing API tests, but then call selftest on all rawdevs on the system.
This removes the need for any new test commands for new drivers. If there
are multiple rawdevs on a system, the sub-set to be tested can be limited
via existing means such as using the device block/allow EAL parameters or
similarly via vdev args, etc.
As part of this change, the ioat rawdev autotest is fixed to allow calling
on multiple instances inside the one test run, and thereafter the custom
test command for it is removed as it is no longer necessary.
Bruce Richardson (4):
raw/ioat: support multiple devices being tested
raw/ioat: include extra info in error messages
app/test: change rawdev autotest to run selftest on all devs
app/test: remove ioat-specific autotest
app/test/test_rawdev.c | 38 +++++++++-------
drivers/raw/ioat/ioat_rawdev_test.c | 69 ++++++++++++++++++++---------
2 files changed, 68 insertions(+), 39 deletions(-)
--
2.25.1
More information about the dev
mailing list