]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-erasure-code-corpus must test SIMD variants 5794/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 3 Sep 2015 15:27:18 +0000 (17:27 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 3 Sep 2015 18:55:35 +0000 (20:55 +0200)
ceph_erasure_code.cc and ceph_erasure_code_benchmark.cc failed to load
the plugins. It went unnoticed when
660ae5bcbb250b06cf88ec7f9a3f37b05c6c8118 was reviewed because

  * ceph_erasure_code_benchmark is not used in make check
  * qa/workunits/erasure-code/encode-decode-non-regression.sh silently
    interpreted the failure as the absence of SIMD variants

http://tracker.ceph.com/issues/12933 Fixes: #12933

Signed-off-by: Loic Dachary <ldachary@redhat.com>
ceph-erasure-code-corpus
src/test/erasure-code/ceph_erasure_code.cc
src/test/erasure-code/ceph_erasure_code_benchmark.cc

index dc409e0b2095eeb960518ab9c8ee47a34264f4c1..b0d1137d31e4b36b72ccae9c0a9a13de2ec82faa 160000 (submodule)
@@ -1 +1 @@
-Subproject commit dc409e0b2095eeb960518ab9c8ee47a34264f4c1
+Subproject commit b0d1137d31e4b36b72ccae9c0a9a13de2ec82faa
index fd688d542e080c073027e02a730caf7c127cae86..00d44964760a4ffcca7686e72f5cead27d83aa4d 100644 (file)
@@ -88,6 +88,7 @@ int ErasureCodeCommand::setup(int argc, char** argv) {
     CINIT_FLAG_NO_DEFAULT_CONFIG_FILE);
   common_init_finish(g_ceph_context);
   g_ceph_context->_conf->apply_changes(NULL);
+  g_conf->set_val("erasure_code_dir", ".libs", false, false);
 
   if (vm.count("help")) {
     cout << desc << std::endl;
index 31a73d45a9fd3916b0466fb382124f1e64ae2f18..052d8fef22146fe4e1b8792edf91652de51960b1 100644 (file)
@@ -87,6 +87,7 @@ int ErasureCodeBench::setup(int argc, char** argv) {
     CINIT_FLAG_NO_DEFAULT_CONFIG_FILE);
   common_init_finish(g_ceph_context);
   g_ceph_context->_conf->apply_changes(NULL);
+  g_conf->set_val("erasure_code_dir", ".libs", false, false);
 
   if (vm.count("help")) {
     cout << desc << std::endl;