Spdk/test
Jim Harris ac3077c3ea test/reduce: add compression algorithm
This is a really dumb algorithm but is simple to understand
for unit testing purposes.  It counts the number of consecutive
bytes with the same value, and then stores the number of bytes
with that value, and the byte value itself.  For example:

0xA1 0xA1 0xA2 0xA3 0xA3 0xA3 0xA3 0xA3 0xA3

would be compressed to:

0x02 0xA1 0x01 0xA2 0x06 0xA3

This will make it easy to generate specific data sequences
that compress to specific sizes to validate the different
compression paths through the reduce library.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I0d48f98c080b9cdacb25433f53f44df7ada78c0a

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449072
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-03-27 14:20:26 +00:00
..
app event: spdk_app_start now takes spdk_msg_fn 2019-03-19 15:54:34 +00:00
bdev event: spdk_app_start now takes spdk_msg_fn 2019-03-19 15:54:34 +00:00
blobfs event: spdk_app_start now takes spdk_msg_fn 2019-03-19 15:54:34 +00:00
blobstore histograms: tests for bdev histograms 2019-01-24 21:50:18 +00:00
common Fix autotest_common.sh to find only core files. 2019-03-21 17:43:11 +00:00
config_converter bdev/nvme: Add configuration parameter to slow down polling 2019-03-19 07:27:44 +00:00
cpp_headers build: don't include spdk.app.mk in test/cpp_headers 2018-12-12 22:35:21 +00:00
env test: add mem_callbacks unit test 2019-03-12 13:58:57 +00:00
event event: spdk_app_start now takes spdk_msg_fn 2019-03-19 15:54:34 +00:00
ftl test/ftl: Change fio_plugin from basic test to bdevperf 2019-03-18 16:33:49 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test: remove duplicate fio.py script file 2019-03-26 22:47:45 +00:00
json_config jsonrpc: add Python with statement support 2019-03-15 05:01:27 +00:00
lvol test/lvol: Implement test case 653 2019-03-01 22:54:07 +00:00
nvme test/nvmf/nvme-cli: don't run nvme-cli as secondary process 2019-01-29 20:54:13 +00:00
nvmf test: remove duplicate fio.py script file 2019-03-26 22:47:45 +00:00
ocf ocf: rpc: extend get_ocf_bdevs for multicore cases 2019-03-26 23:30:31 +00:00
pmem bdev: remove delete_bdev RPC 2019-03-01 08:50:07 +00:00
rpc_client jsonrpc: add connection close callback 2019-01-10 14:31:37 +00:00
spdkcli test/spdkcli: update match file to cover larger volume NVMe SSD 2019-03-08 02:18:15 +00:00
unit test/reduce: add compression algorithm 2019-03-27 14:20:26 +00:00
vhost test/vhost: Reduce time needed to wait for vm boot in vhost tests. 2019-03-26 11:26:31 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00