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>
target_link_libraries(unittest_lfnindex os global)
add_subdirectory(osd)
-
-#pybind
-add_ceph_test(test_ceph_daemon.py ${CMAKE_SOURCE_DIR}/src/test/pybind/test_ceph_daemon.py)
-add_ceph_test(test_ceph_argparse.py ${CMAKE_SOURCE_DIR}/src/test/pybind/test_ceph_argparse.py)
+add_subdirectory(pybind)
# unittest_admin_socket
add_executable(unittest_admin_socket EXCLUDE_FROM_ALL
--- /dev/null
+add_ceph_test(test_ceph_daemon.py ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_daemon.py)
+add_ceph_test(test_ceph_argparse.py ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_argparse.py)
import json
def get_command_descriptions(what):
- return os.popen("./get_command_descriptions " + "--" + what).read()
+ CEPH_BIN = os.environ['CEPH_BIN']
+ return os.popen(CEPH_BIN + "/get_command_descriptions " + "--" + what).read()
def test_parse_json_funcsigs():
commands = get_command_descriptions("all")