]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: test jerasure SSE optimized plugins selection
authorLoic Dachary <loic@dachary.org>
Thu, 27 Mar 2014 10:06:24 +0000 (11:06 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 27 Mar 2014 13:27:23 +0000 (14:27 +0100)
commitb76ad972d159371c7ddbff64d27bdfabf854572d
treed089d47580dd0fa91759f30cc5068aef7f93bc0c
parent30e714057cf3cd7ae49545499ceaf348347bb5a6
erasure-code: test jerasure SSE optimized plugins selection

Test the selection of the plugin depending on the CPU features. The
prefix of the plugin is "jerasure" by default (jerasure_generic,
jerasure_sse3, jerasure_sse4) and can be modified with the
"jerasure-name" parameter. A test plugin is created for each
variant (test_jerasure_generic, test_jerasure_sse3, test_jerasure_sse4).
The flags set by ceph_probe are modified by the test to check if the
expected plugin suffix is appended.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/erasure-code/jerasure/ErasureCodePluginSelectJerasure.cc
src/test/erasure-code/Makefile.am
src/test/erasure-code/TestErasureCodePluginJerasure.cc
src/test/erasure-code/TestJerasurePluginGeneric.cc [new file with mode: 0644]
src/test/erasure-code/TestJerasurePluginSSE3.cc [new file with mode: 0644]
src/test/erasure-code/TestJerasurePluginSSE4.cc [new file with mode: 0644]