From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 886704C7A for ; Wed, 28 Feb 2018 15:00:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2018 06:00:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,405,1515484800"; d="scan'208";a="20981035" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga008.fm.intel.com with ESMTP; 28 Feb 2018 06:00:05 -0800 From: Pablo de Lara To: fiona.trahe@intel.com, Shally.Verma@cavium.com, ahmed.mansour@nxp.com, lee.daly@intel.com, tomaszx.jozwiak@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Wed, 28 Feb 2018 14:00:05 +0000 Message-Id: <20180228140010.27251-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH 0/5] Initial compressdev unit tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 14:00:13 -0000 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