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 BD70A7CD1 for ; Fri, 27 Apr 2018 16:14:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 07:14:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,335,1520924400"; d="scan'208";a="51330826" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by orsmga001.jf.intel.com with ESMTP; 27 Apr 2018 07:14:47 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: fiona.trahe@intel.com, shally.verma@cavium.com, ahmed.mansour@nxp.com, Ashish.Gupta@cavium.com, Pablo de Lara Date: Fri, 27 Apr 2018 15:14:57 +0100 Message-Id: <20180427141502.4288-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228140010.27251-1-pablo.de.lara.guarch@intel.com> References: <20180228140010.27251-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v3 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: Fri, 27 Apr 2018 14:14:51 -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 xform using 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. However, if building with Meson, the test will be built automatically, if Zlib is installed. 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 patchset depends on the Compressdev API patchset: http://dpdk.org/ml/archives/dev/2018-April/099580.html ("[PATCH v6 00/14] Implement compression API") Changes in v3: - Remove next pointer in xform setting - Remove unneeded DIV_CEIL macro - Add rte_compressdev_close() call after finishing test cases Changes in v2: - Add meson build - Add invalid configuration tests - Use new Compressdev API: * Substitute session with priv xform * Check if priv xform is shareable and create one per operation if not Pablo de Lara (5): test/compress: add initial unit tests test/compress: add multi op test test/compress: add multi level test test/compress: add multi xform test test/compress: add invalid configuration tests config/common_base | 5 + test/test/Makefile | 9 + test/test/meson.build | 8 + test/test/test_compressdev.c | 1092 ++++++++++++++++++++++++++++++ test/test/test_compressdev_test_buffer.h | 295 ++++++++ 5 files changed, 1409 insertions(+) create mode 100644 test/test/test_compressdev.c create mode 100644 test/test/test_compressdev_test_buffer.h -- 2.14.3