]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: test isa encode/decode with various object sizes 2531/head
authorLoic Dachary <loic-201408@dachary.org>
Mon, 22 Sep 2014 12:16:32 +0000 (14:16 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Thu, 25 Sep 2014 16:05:01 +0000 (18:05 +0200)
commitba02a5e638ddae3d58e1f5d8bde741da9a6e342d
tree4a5a05e9d90efb0e776d1e32a20d9076503237e0
parenteb8fdfa4f5f7dcadc8bf2f1d4799cfe676bee800
erasure-code: test isa encode/decode with various object sizes

Create an encode_decode() helper method to be called from the
encode_decode test function with various object size arguments. The
helper method is a copy/paste of the previous test that was using a
single object of a fixed size. The test is slightly adapted to
accommodate for different object sizes but the logic is not modified.

The object sizes being tested are chosen to be under the size of the
required size alignment or on multiple pages, size aligned or not.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/test/erasure-code/TestErasureCodeIsa.cc