Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip cmake make check #7912

Merged
merged 59 commits into from Apr 15, 2016
Merged

Wip cmake make check #7912

merged 59 commits into from Apr 15, 2016

Commits on Apr 15, 2016

  1. cmake: Reorganized test dir, added cmake functions

    make check targets now use add_ceph_test, or
    add_ceph_unittest to be added to CTest. Renamed and
    reordered targets in tests/CMakeLists.txt
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    a7bd5e4 View commit details
    Browse the repository at this point in the history
  2. cmake: test-ceph-helpers working

    Moved all the libraries in CMAKE_BINARY_DIR/lib
    and all the binaries in CMAKE_BINARY_DIR/bin. Set
    various environment variables for test-ceph-helpers.
    Put those variables throughout
    qa/workunits/ceph-helpers.sh.
    
    NOTE: This is a very rough draft of these fixes.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    e0f400f View commit details
    Browse the repository at this point in the history
  3. cmake: encode-decode-non-regression.sh passing in cmake

    Replaced relative paths in encode-decode-non-regression.sh
    to work with CEPH_FOO environment variables set in
    cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    59568e5 View commit details
    Browse the repository at this point in the history
  4. cmake: moved tests into test/osd dir

    Replaced relative paths in shell scripts in test/osd
    directory with CEPH_VAR environment variables set in cmake,
    added a CMakeLists.txt in test/osd.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    3186c00 View commit details
    Browse the repository at this point in the history
  5. cmake: shell scripts in test/mon passing in cmake

    Replaced relative paths in shell scripts in test/mon
    to work with CEPH_FOO environment variables set in
    cmake, added CMakelists.txt to test/mon
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    5d4d3ff View commit details
    Browse the repository at this point in the history
  6. cmake: shell scripts in test/encoding passing in cmake

    Replaced relative paths in scripts in test/encoding
    to work with CEPH_FOO environment variables set in
    cmake, CMakeLists.txt added.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    9be9060 View commit details
    Browse the repository at this point in the history
  7. cmake: moved tests into test/common dir

    Added a CMakeLists.txt into test/common.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    f65c87a View commit details
    Browse the repository at this point in the history
  8. cmake: moved tests into test/crush dir

    Added a CMakeLists.txt into test/crush.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    3a10843 View commit details
    Browse the repository at this point in the history
  9. cmake: moved tests into test/fs dir

    Added a CMakeLists.txt into test/fs.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    84c999a View commit details
    Browse the repository at this point in the history
  10. cmake: moved tests into test/librados dir

    Added a CMakeLists.txt into test/librados.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    83ff750 View commit details
    Browse the repository at this point in the history
  11. cmake: moved tests into test/libradosstriper dir

    Added a CMakeLists.txt into test/libradosstriper.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    3fffaa6 View commit details
    Browse the repository at this point in the history
  12. cmake: moved tests into test/mds dir

    Added a CMakeLists.txt into test/mds.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    852276d View commit details
    Browse the repository at this point in the history
  13. cmake: moved tests into test/objectstore dir

    Added a CMakeLists.txt into test/objectstore.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    74ea1f9 View commit details
    Browse the repository at this point in the history
  14. cmake: moved tests into test/pybind dir

    Added a CMakeLists.txt into test/pybind. Added
    CEPH_BIN in front of relative path in
    test_ceph_argparse.py.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    ef8b113 View commit details
    Browse the repository at this point in the history
  15. cmake: moved tests into test/os dir

    Added a CMakeLists.txt into test/os.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    025f552 View commit details
    Browse the repository at this point in the history
  16. cmake: moved tests into test/bench dir

    Added a CMakeLists.txt into test/bench.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    c1f94df View commit details
    Browse the repository at this point in the history
  17. cmake: moved tests into test/cls_hello dir

    Added a CMakeLists.txt into test/cls_hello.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    6a791fa View commit details
    Browse the repository at this point in the history
  18. cmake: moved tests into test/cls_lock dir

    Added a CMakeLists.txt into test/cls_lock.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    0e851de View commit details
    Browse the repository at this point in the history
  19. cmake: moved tests into test/cls_log dir

    Added a CMakeLists.txt into test/cls_log.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    de64f82 View commit details
    Browse the repository at this point in the history
  20. cmake: moved tests into test/cls_numops dir

    Added a CMakeLists.txt into test/cls_numops.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    7271c96 View commit details
    Browse the repository at this point in the history
  21. cmake: moved tests into test/cls_rbd dir

    Added a CMakeLists.txt into test/cls_rbd.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    fe673ea View commit details
    Browse the repository at this point in the history
  22. cmake: moved tests into test/cls_refcount dir

    Added a CMakeLists.txt into test/cls_refcount.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    2636c16 View commit details
    Browse the repository at this point in the history
  23. cmake: moved tests into test/cls_replica_log dir

    Added a CMakeLists.txt into test/cls_replica_log.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    521b07b View commit details
    Browse the repository at this point in the history
  24. cmake: moved tests into test/cls_rgw dir

    Added a CMakeLists.txt into test/cls_rgw.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    8da608d View commit details
    Browse the repository at this point in the history
  25. cmake: moved tests into test/cls_statelog dir

    Added a CMakeLists.txt into test/cls_statelog.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    e2b0f6f View commit details
    Browse the repository at this point in the history
  26. cmake: moved tests into test/cls_version dir

    Added a CMakeLists.txt into test/cls_version.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    d50478f View commit details
    Browse the repository at this point in the history
  27. cmake: moved tests into test/compressor dir

    Added a CMakeLists.txt into test/compressor,
    libcompressor to src/compressor/CMakeLists.txt,
    added absolute path into $snappy_sources, removed
    .libs from compressor unit test source files
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    02d508c View commit details
    Browse the repository at this point in the history
  28. cmake: moved tests into test/filestore dir

    Added a CMakeLists.txt into test/filestore.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    997291e View commit details
    Browse the repository at this point in the history
  29. cmake: moved tests into test/journal dir

    Added a CMakeLists.txt into test/journal.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    99d66ca View commit details
    Browse the repository at this point in the history
  30. cmake: moved tests into test/libcephfs dir

    Added a CMakeLists.txt into test/libcephfs.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    eb8e49c View commit details
    Browse the repository at this point in the history
  31. cmake: moved tests into test/librados_test_stub dir

    Added a CMakeLists.txt into test/librados_test_stub.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    99d3436 View commit details
    Browse the repository at this point in the history
  32. cmake: moved tests into test/messenger dir

    Added a CMakeLists.txt into test/messenger.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    cfffdf6 View commit details
    Browse the repository at this point in the history
  33. cmake: moved tests into test/msgr dir

    Added a CMakeLists.txt into test/msgr.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    e7c1459 View commit details
    Browse the repository at this point in the history
  34. cmake: moved tests into test/ObjectMap dir

    Added a CMakeLists.txt into test/ObjectMap.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    4492439 View commit details
    Browse the repository at this point in the history
  35. cmake: moved tests into test/osdc dir

    Added a CMakeLists.txt into test/osdc.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    798b821 View commit details
    Browse the repository at this point in the history
  36. cmake: moved tests into test/rgw dir

    Added a CMakeLists.txt into test/rgw.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    803def3 View commit details
    Browse the repository at this point in the history
  37. cmake: moved tests into test/system dir

    Added a CMakeLists.txt into test/system.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    54eb382 View commit details
    Browse the repository at this point in the history
  38. cmake: librbd fixes

    Added src/librbd and test/librbd CMakeLists.txt's,
    various previously missing libraries and targets,
    revised unittest_librbd.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    8e3e3f4 View commit details
    Browse the repository at this point in the history
  39. cmake: working on rados-striper.sh test

    Replaced relative paths in test/mon/osd-crush.sh
    with CEPH_VAR environment variables set in cmake.
    
    NOTE: test is not passing yet, possibly due to the
    filesystem. this commit is a work in progress
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    d189270 View commit details
    Browse the repository at this point in the history
  40. cmake: working on cephtool-test-rados.sh test

    Replaced relative paths in test/cephtool-test-rados.sh,
    qa/workunits/rados/test_rados_tool.sh,
    src/test/vstart_wrapper.sh, with CEPH_FOO environment
    variables set in cmake. Also edited the CMake path
    finding logic in vstart.sh with the CEPH_FOO variables.
    
    NOTE: test is not passing yet, possibly due to the
    filesystem. this commit is a work in progress
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    005e4b4 View commit details
    Browse the repository at this point in the history
  41. cmake: cephtool-test-rados/mds/osd passing in cmake

    Replaced relative paths in test/cephtool-test-mon.sh,
    qa/workunits/cephtool/test.sh, and test/cephtool-test-mon.sh
    to work with CEPH_FOO environment variables set in cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    cf24535 View commit details
    Browse the repository at this point in the history
  42. cmake: unittest_bufferlist passing in cmake

    Replaced relative paths in unittest_bufferlist.sh
    to work with CEPH_FOO environment variables set in
    cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    f43dd0f View commit details
    Browse the repository at this point in the history
  43. cmake: ceph_objectstore_tool.py test passing

    Replaced relative paths in shell scripts in
    test/ceph_objectstore_tool.py and init-ceph.in to
    work with CEPH_FOO environment variables set in cmake.
    Also added CEPH_BUILD_DIR environment variable set
    to CMAKE_BINARY_DIR. It is used in init-ceph and
    ceph_objectstore_tool.py.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    6596373 View commit details
    Browse the repository at this point in the history
  44. cmake: erasure-code tests passing

    Replaced relative paths in test-erausure-eio.sh
    test-erasure-code.sh, and replaced .libs in
    erasure_code unittests with CEPH_VAR environment
    variables set in cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    1c8cd00 View commit details
    Browse the repository at this point in the history
  45. cmake: test_objectstore_memstore.sh test passing

    Replaced relative paths in test_objectstore_memstore.sh
    with CEPH_VAR environment variables set in cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    49da534 View commit details
    Browse the repository at this point in the history
  46. unittest_blkdev: absolute path for cmake make check

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    dd0ac99 View commit details
    Browse the repository at this point in the history
  47. unittest_journal: got rid of relative paths

    Replaced .libs in TestClassHandler.cc with CEPH_LIB
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    fd978ce View commit details
    Browse the repository at this point in the history
  48. cmake: erasure-decode-non-regression.sh passing

    Added missing dependencies and link libraries for
    erasure-decode-non-regression.sh and added absolute
    paths to ceph_erasure_code_non_regression.cc.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    cfcbe21 View commit details
    Browse the repository at this point in the history
  49. cmake: Protect againist getenv returning nullptr

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    de97f67 View commit details
    Browse the repository at this point in the history
  50. cmake: test_pidfile.sh test passing

    Replaced relative paths in test_pidfile.sh
    with CEPH_VAR environment variables set in cmake.
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    9288e98 View commit details
    Browse the repository at this point in the history
  51. cmake: Added an absolute path for libs

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    21ec89f View commit details
    Browse the repository at this point in the history
  52. cmake: Added rbd_mirror targets

    Added rbd_mirror libraries, unit tests, executables
    
    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    60e5fa9 View commit details
    Browse the repository at this point in the history
  53. cmake: Add librgw_file tests

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    a7b6c01 View commit details
    Browse the repository at this point in the history
  54. cmake: Building ceph-disk from source code

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    4fc06be View commit details
    Browse the repository at this point in the history
  55. cmake: Building ceph-detect-init from source code

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    b4de745 View commit details
    Browse the repository at this point in the history
  56. cmake: CMake environment variables added to automake

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    56c37ea View commit details
    Browse the repository at this point in the history
  57. cmake: remove repeat OSD.cc

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    e0bda0b View commit details
    Browse the repository at this point in the history
  58. cmake: Add cython_modules to make check

    Signed-off-by: Ali Maredia <amaredia@redhat.com>
    alimaredia committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    8ddfcb1 View commit details
    Browse the repository at this point in the history
  59. cmake: link ceph_test_rados_api_list against libglobal

    see 769c0af
    
    Signed-off-by: Kefu Chai <kchai@redhat.com>
    tchaikov committed Apr 15, 2016
    Configuration menu
    Copy the full SHA
    28b91f2 View commit details
    Browse the repository at this point in the history