[dpdk-dev] [PATCH 0/5] Initial compressdev unit tests
Pablo de Lara
pablo.de.lara.guarch at intel.com
Wed Feb 28 15:00:05 CET 2018
Added initial tests for Compressdev library.
The tests are performed compressing a test buffer
(or multiple test buffers) with compressdev or Zlib,
and decompressing it/them with the other library
(if compression is done with compressdev, decompression
is done with Zlib, and viceversa).
Tests added so far are based on the deflate algorithm,
including:
- Fixed huffman on single buffer
- Dynamic huffman on single buffer
- Multi compression level test on single buffer
- Multi buffer
- Multi session using a the same buffer
Due to a dependency on Zlib, the test is not enabled
by default. Once the library is installed, the configuration
option CONFIG_RTE_COMPRESSDEV_TEST must be set to Y.
The test requires a compressdev PMD to be initialized,
when running the test app. For example:
./build/app/test --vdev="compress_X"
RTE>>compressdev_autotest
This patch depends on the Compressdev API patch:
http://dpdk.org/dev/patchwork/patch/34900/
("compressdev: implement API")
Pablo de Lara (5):
compressdev: add const for xform in session init
test/compress: add initial unit tests
test/compress: add multi op test
test/compress: add multi level test
test/compress: add multi session test
config/common_base | 5 +
lib/librte_compressdev/rte_compressdev.c | 2 +-
lib/librte_compressdev/rte_compressdev.h | 2 +-
lib/librte_compressdev/rte_compressdev_pmd.h | 2 +-
test/test/Makefile | 9 +
test/test/test_compressdev.c | 972 +++++++++++++++++++++++++++
test/test/test_compressdev_test_buffer.h | 295 ++++++++
7 files changed, 1284 insertions(+), 3 deletions(-)
create mode 100644 test/test/test_compressdev.c
create mode 100644 test/test/test_compressdev_test_buffer.h
--
2.14.3
More information about the dev
mailing list