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
Wip cmake make check #7912
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
a7bd5e4
cmake: Reorganized test dir, added cmake functions
alimaredia e0f400f
cmake: test-ceph-helpers working
alimaredia 59568e5
cmake: encode-decode-non-regression.sh passing in cmake
alimaredia 3186c00
cmake: moved tests into test/osd dir
alimaredia 5d4d3ff
cmake: shell scripts in test/mon passing in cmake
alimaredia 9be9060
cmake: shell scripts in test/encoding passing in cmake
alimaredia f65c87a
cmake: moved tests into test/common dir
alimaredia 3a10843
cmake: moved tests into test/crush dir
alimaredia 84c999a
cmake: moved tests into test/fs dir
alimaredia 83ff750
cmake: moved tests into test/librados dir
alimaredia 3fffaa6
cmake: moved tests into test/libradosstriper dir
alimaredia 852276d
cmake: moved tests into test/mds dir
alimaredia 74ea1f9
cmake: moved tests into test/objectstore dir
alimaredia ef8b113
cmake: moved tests into test/pybind dir
alimaredia 025f552
cmake: moved tests into test/os dir
alimaredia c1f94df
cmake: moved tests into test/bench dir
alimaredia 6a791fa
cmake: moved tests into test/cls_hello dir
alimaredia 0e851de
cmake: moved tests into test/cls_lock dir
alimaredia de64f82
cmake: moved tests into test/cls_log dir
alimaredia 7271c96
cmake: moved tests into test/cls_numops dir
alimaredia fe673ea
cmake: moved tests into test/cls_rbd dir
alimaredia 2636c16
cmake: moved tests into test/cls_refcount dir
alimaredia 521b07b
cmake: moved tests into test/cls_replica_log dir
alimaredia 8da608d
cmake: moved tests into test/cls_rgw dir
alimaredia e2b0f6f
cmake: moved tests into test/cls_statelog dir
alimaredia d50478f
cmake: moved tests into test/cls_version dir
alimaredia 02d508c
cmake: moved tests into test/compressor dir
alimaredia 997291e
cmake: moved tests into test/filestore dir
alimaredia 99d66ca
cmake: moved tests into test/journal dir
alimaredia eb8e49c
cmake: moved tests into test/libcephfs dir
alimaredia 99d3436
cmake: moved tests into test/librados_test_stub dir
alimaredia cfffdf6
cmake: moved tests into test/messenger dir
alimaredia e7c1459
cmake: moved tests into test/msgr dir
alimaredia 4492439
cmake: moved tests into test/ObjectMap dir
alimaredia 798b821
cmake: moved tests into test/osdc dir
alimaredia 803def3
cmake: moved tests into test/rgw dir
alimaredia 54eb382
cmake: moved tests into test/system dir
alimaredia 8e3e3f4
cmake: librbd fixes
alimaredia d189270
cmake: working on rados-striper.sh test
alimaredia 005e4b4
cmake: working on cephtool-test-rados.sh test
alimaredia cf24535
cmake: cephtool-test-rados/mds/osd passing in cmake
alimaredia f43dd0f
cmake: unittest_bufferlist passing in cmake
alimaredia 6596373
cmake: ceph_objectstore_tool.py test passing
alimaredia 1c8cd00
cmake: erasure-code tests passing
alimaredia 49da534
cmake: test_objectstore_memstore.sh test passing
alimaredia dd0ac99
unittest_blkdev: absolute path for cmake make check
alimaredia fd978ce
unittest_journal: got rid of relative paths
alimaredia cfcbe21
cmake: erasure-decode-non-regression.sh passing
alimaredia de97f67
cmake: Protect againist getenv returning nullptr
alimaredia 9288e98
cmake: test_pidfile.sh test passing
alimaredia 21ec89f
cmake: Added an absolute path for libs
alimaredia 60e5fa9
cmake: Added rbd_mirror targets
alimaredia a7b6c01
cmake: Add librgw_file tests
alimaredia 4fc06be
cmake: Building ceph-disk from source code
alimaredia b4de745
cmake: Building ceph-detect-init from source code
alimaredia 56c37ea
cmake: CMake environment variables added to automake
alimaredia e0bda0b
cmake: remove repeat OSD.cc
alimaredia 8ddfcb1
cmake: Add cython_modules to `make check`
alimaredia 28b91f2
cmake: link ceph_test_rados_api_list against libglobal
tchaikov File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#AddCephTest is a module for adding tests to the "make check" target which runs CTest | ||
|
||
#adds makes target/script into a test, test to check target, sets necessary environment variables | ||
function(add_ceph_test test_name test_path) | ||
add_test(NAME ${test_name} COMMAND ${test_path}) | ||
add_dependencies(check ${test_name}) | ||
set_property(TEST | ||
${test_name} | ||
PROPERTY ENVIRONMENT | ||
CEPH_ROOT=${CMAKE_SOURCE_DIR} | ||
CEPH_BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY} | ||
CEPH_LIB=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} | ||
CEPH_BUILD_DIR=${CMAKE_BINARY_DIR} | ||
LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib | ||
PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:${CMAKE_SOURCE_DIR}/src:$ENV{PATH} | ||
PYTHONPATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cython_modules/lib.linux-x86_64-2.7:${CMAKE_SOURCE_DIR}/src/pybind) | ||
endfunction() | ||
|
||
#sets uniform compiler flags and link libraries | ||
function(add_ceph_unittest unittest_name unittest_path) | ||
add_ceph_test(${unittest_name} ${unittest_path}) | ||
target_link_libraries(${unittest_name} ${UNITTEST_LIBS}) | ||
set_target_properties(${unittest_name} PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) | ||
endfunction() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_custom_target(ceph-detect-init | ||
COMMAND | ||
${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CMAKE_BINARY_DIR}/ceph-detect-init-virtualenv && | ||
virtualenv/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-detect-init/wheelhouse -e . | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-detect-init | ||
COMMENT "ceph-detect-init is being created") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_custom_target(ceph-disk | ||
COMMAND | ||
${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CMAKE_BINARY_DIR}/ceph-disk-virtualenv && | ||
virtualenv/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-disk/wheelhouse -e . | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-disk | ||
COMMENT "ceph-disk is being created") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ add_library(ec_jerasure_generic SHARED | |
$<TARGET_OBJECTS:erasure_code_objs> | ||
) | ||
add_dependencies(ec_jerasure_generic ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | ||
target_link_libraries(ec_jerasure_generic ${EXTRALIBS}) | ||
target_link_libraries(ec_jerasure_generic crush ${EXTRALIBS}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't understand why the erasure code libs would depend on crush. if you're getting linker errors without this, we should figure out what's pulling crush stuff in |
||
set_target_properties(ec_jerasure_generic PROPERTIES VERSION 2.0.0 SOVERSION 2) | ||
install(TARGETS ec_jerasure_generic DESTINATION lib/erasure-code) | ||
|
||
|
@@ -68,7 +68,7 @@ if(INTEL_SSE) | |
$<TARGET_OBJECTS:erasure_code_objs> | ||
) | ||
add_dependencies(ec_jerasure_sse3 ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | ||
target_link_libraries(ec_jerasure_sse3 ${EXTRALIBS}) | ||
target_link_libraries(ec_jerasure_sse3 crush ${EXTRALIBS}) | ||
set_target_properties(ec_jerasure_sse3 PROPERTIES VERSION 2.0.0 SOVERSION 2 | ||
COMPILE_FLAGS ${SSE3_FLAGS}) | ||
install(TARGETS ec_jerasure_sse3 DESTINATION lib/erasure-code) | ||
|
@@ -82,7 +82,7 @@ if(INTEL_SSE4_1) | |
$<TARGET_OBJECTS:erasure_code_objs> | ||
) | ||
add_dependencies(ec_jerasure_sse4 ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | ||
target_link_libraries(ec_jerasure_sse4 ${EXTRALIBS}) | ||
target_link_libraries(ec_jerasure_sse4 crush ${EXTRALIBS}) | ||
set_target_properties(ec_jerasure_sse4 PROPERTIES VERSION 2.0.0 SOVERSION 2 | ||
COMPILE_FLAGS ${SSE4_FLAGS}) | ||
install(TARGETS ec_jerasure_sse4 DESTINATION lib/erasure-code) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get around the absolute path thing by making this an object library?