Loading examples/CMakeLists.txt +17 −0 Original line number Diff line number Diff line Loading @@ -22,5 +22,22 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ if(SCORD_BUILD_TESTS) add_test(start_scord_daemon ${CMAKE_SOURCE_DIR}/scripts/runner.sh start scord.pid ${CMAKE_BINARY_DIR}/src/scord/scord -C -f ) set_tests_properties(start_scord_daemon PROPERTIES FIXTURES_SETUP scord_daemon) add_test(stop_scord_daemon ${CMAKE_SOURCE_DIR}/scripts/runner.sh stop TERM scord.pid ) set_tests_properties(stop_scord_daemon PROPERTIES FIXTURES_CLEANUP scord_daemon) endif() add_subdirectory(c) add_subdirectory(cxx) examples/c/CMakeLists.txt +27 −58 Original line number Diff line number Diff line Loading @@ -22,21 +22,33 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ list(APPEND examples_c ADM_ping ADM_register_job ADM_cancel_transfer ADM_connect_data_operation ADM_define_data_operation ADM_deploy_adhoc_storage ADM_finalize_data_operation ADM_get_pending_transfers ADM_get_qos_constraints ADM_get_statistics ADM_get_transfer_priority ADM_link_transfer_to_data_operation ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job ADM_set_dataset_information ADM_set_io_resources ADM_set_qos_constraints ADM_set_transfer_priority ADM_transfer_dataset ADM_update_adhoc_storage ADM_update_job ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage) # ADM_in_situ_ops ADM_in_transit_ops not implemented list(APPEND examples_c # ping ADM_ping # job ADM_register_job ADM_update_job ADM_remove_job # adhoc storage ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage # pfs storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # transfers ADM_transfer_dataset ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers # qos ADM_set_qos_constraints ADM_get_qos_constraints # data operations ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation # ADM_in_situ_ops ADM_in_transit_ops # misc ADM_get_statistics ADM_set_dataset_information ADM_set_io_resources ) add_library(c_examples_common STATIC) target_sources(c_examples_common PUBLIC common.h PRIVATE common.c) target_link_libraries(c_examples_common common::api::types) foreach(example IN LISTS examples_c) add_executable(${example}_c) target_sources(${example}_c PRIVATE ${example}.c) Loading @@ -45,52 +57,9 @@ foreach(example IN LISTS examples_c) endforeach() if(SCORD_BUILD_TESTS) add_test(ADM_register_job_c_test ADM_register_job ofi+tcp://127.0.0.1:52000) add_test(ADM_cancel_transfer_c_test ADM_cancel_transfer ofi+tcp://127.0.0.1:52000) add_test(ADM_connect_data_operation_c_test ADM_connect_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_define_data_operation_c_test ADM_define_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_deploy_adhoc_storage_c_test ADM_deploy_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_finalize_data_operation_c_test ADM_finalize_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_get_pending_transfers_c_test ADM_get_pending_transfers ofi+tcp://127.0.0.1:52000) add_test(ADM_get_qos_constraints_c_test ADM_get_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_get_statistics_c_test ADM_get_statistics ofi+tcp://127.0.0.1:52000) add_test(ADM_get_transfer_priority_c_test ADM_get_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_link_transfer_to_data_operation_c_test ADM_link_transfer_to_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_register_adhoc_storage_c_test ADM_register_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_register_pfs_storage_c_test ADM_register_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_adhoc_storage_c_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_job_c_test ADM_remove_job ofi+tcp://127.0.0.1:52000) # TODO: ADM_remove_pfs_storage test is missing because is not working in cpp. # Will be created when it works in cpp. add_test(ADM_set_dataset_information_c_test ADM_set_dataset_information ofi+tcp://127.0.0.1:52000) add_test(ADM_set_io_resources_c_test ADM_set_io_resources ofi+tcp://127.0.0.1:52000) add_test(ADM_set_qos_constraints_c_test ADM_set_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_set_transfer_priority_c_test ADM_set_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_transfer_dataset_c_test ADM_transfer_dataset ofi+tcp://127.0.0.1:52000) add_test(ADM_update_adhoc_storage_c_test ADM_update_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_update_job_c_test ADM_update_job ofi+tcp://127.0.0.1:52000) # TODO: ADM_update_pfs_storage test is missing because is not working in cpp. # Will be created when it works in cpp. foreach(example IN LISTS examples_c) add_test(${example}_c_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT}) set_tests_properties(${example}_c_test PROPERTIES FIXTURES_REQUIRED scord_daemon) endforeach() endif() examples/cxx/CMakeLists.txt +23 −56 Original line number Diff line number Diff line Loading @@ -23,19 +23,27 @@ ################################################################################ list(APPEND examples_cxx # ping ADM_ping # job ADM_register_job ADM_update_job ADM_remove_job ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # adhoc storage ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage # pfs storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # transfers ADM_transfer_dataset ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers # qos ADM_set_qos_constraints ADM_get_qos_constraints # data operations ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation # ADM_in_situ_ops ADM_in_transit_ops ADM_transfer_dataset ADM_set_dataset_information ADM_set_io_resources ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers ADM_set_qos_constraints ADM_get_qos_constraints ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation ADM_get_statistics) #misc ADM_get_statistics ADM_set_dataset_information ADM_set_io_resources ) add_library(cxx_examples_common STATIC) target_sources(cxx_examples_common PUBLIC common.hpp PRIVATE common.cpp) Loading @@ -50,50 +58,9 @@ foreach(example IN LISTS examples_cxx) endforeach() if(SCORD_BUILD_TESTS) add_test(ADM_ping_test ADM_ping ofi+tcp://127.0.0.1:52000) add_test(ADM_cancel_transfer_cxx_test ADM_cancel_transfer ofi+tcp://127.0.0.1:52000) set_tests_properties(ADM_cancel_transfer_cxx_test PROPERTIES LABELS "ADM_cancel_transfer;cxx") add_test(ADM_connect_data_operation_cxx_test ADM_connect_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_define_data_operation_cxx_test ADM_define_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_deploy_adhoc_storage_cxx_test ADM_deploy_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_finalize_data_operation_cxx_test ADM_finalize_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_get_pending_transfers_cxx_test ADM_get_pending_transfers ofi+tcp://127.0.0.1:52000) add_test(ADM_get_qos_constraints_cxx_test ADM_get_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_get_transfer_priority_cxx_test ADM_get_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_link_transfer_to_data_operation_cxx_test ADM_link_transfer_to_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_register_job_cxx_test ADM_register_job ofi+tcp://127.0.0.1:52000) add_test(ADM_register_pfs_storage_cxx_test ADM_register_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_adhoc_storage_cxx_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_job_cxx_test ADM_remove_job ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_pfs_storage_cxx_test ADM_remove_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_set_dataset_information_cxx_test ADM_set_dataset_information ofi+tcp://127.0.0.1:52000) add_test(ADM_set_io_resources_cxx_test ADM_set_io_resources ofi+tcp://127.0.0.1:52000) add_test(ADM_set_qos_constraints_cxx_test ADM_set_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_set_transfer_priority_cxx_test ADM_set_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_transfer_dataset_cxx_test ADM_transfer_dataset ofi+tcp://127.0.0.1:52000) add_test(ADM_update_adhoc_storage_cxx_test ADM_update_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_update_job_cxx_test ADM_update_job ofi+tcp://127.0.0.1:52000) # TODO: add_test(ADM_update_pfs_storage_cxx_test ADM_update_pfs_storage ofi+tcp://127.0.0.1:52000 42) foreach(example IN LISTS examples_cxx) add_test(${example}_cxx_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT}) set_tests_properties(${example}_cxx_test PROPERTIES FIXTURES_REQUIRED scord_daemon) endforeach() endif() Loading
examples/CMakeLists.txt +17 −0 Original line number Diff line number Diff line Loading @@ -22,5 +22,22 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ if(SCORD_BUILD_TESTS) add_test(start_scord_daemon ${CMAKE_SOURCE_DIR}/scripts/runner.sh start scord.pid ${CMAKE_BINARY_DIR}/src/scord/scord -C -f ) set_tests_properties(start_scord_daemon PROPERTIES FIXTURES_SETUP scord_daemon) add_test(stop_scord_daemon ${CMAKE_SOURCE_DIR}/scripts/runner.sh stop TERM scord.pid ) set_tests_properties(stop_scord_daemon PROPERTIES FIXTURES_CLEANUP scord_daemon) endif() add_subdirectory(c) add_subdirectory(cxx)
examples/c/CMakeLists.txt +27 −58 Original line number Diff line number Diff line Loading @@ -22,21 +22,33 @@ # SPDX-License-Identifier: GPL-3.0-or-later # ################################################################################ list(APPEND examples_c ADM_ping ADM_register_job ADM_cancel_transfer ADM_connect_data_operation ADM_define_data_operation ADM_deploy_adhoc_storage ADM_finalize_data_operation ADM_get_pending_transfers ADM_get_qos_constraints ADM_get_statistics ADM_get_transfer_priority ADM_link_transfer_to_data_operation ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job ADM_set_dataset_information ADM_set_io_resources ADM_set_qos_constraints ADM_set_transfer_priority ADM_transfer_dataset ADM_update_adhoc_storage ADM_update_job ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage) # ADM_in_situ_ops ADM_in_transit_ops not implemented list(APPEND examples_c # ping ADM_ping # job ADM_register_job ADM_update_job ADM_remove_job # adhoc storage ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage # pfs storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # transfers ADM_transfer_dataset ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers # qos ADM_set_qos_constraints ADM_get_qos_constraints # data operations ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation # ADM_in_situ_ops ADM_in_transit_ops # misc ADM_get_statistics ADM_set_dataset_information ADM_set_io_resources ) add_library(c_examples_common STATIC) target_sources(c_examples_common PUBLIC common.h PRIVATE common.c) target_link_libraries(c_examples_common common::api::types) foreach(example IN LISTS examples_c) add_executable(${example}_c) target_sources(${example}_c PRIVATE ${example}.c) Loading @@ -45,52 +57,9 @@ foreach(example IN LISTS examples_c) endforeach() if(SCORD_BUILD_TESTS) add_test(ADM_register_job_c_test ADM_register_job ofi+tcp://127.0.0.1:52000) add_test(ADM_cancel_transfer_c_test ADM_cancel_transfer ofi+tcp://127.0.0.1:52000) add_test(ADM_connect_data_operation_c_test ADM_connect_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_define_data_operation_c_test ADM_define_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_deploy_adhoc_storage_c_test ADM_deploy_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_finalize_data_operation_c_test ADM_finalize_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_get_pending_transfers_c_test ADM_get_pending_transfers ofi+tcp://127.0.0.1:52000) add_test(ADM_get_qos_constraints_c_test ADM_get_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_get_statistics_c_test ADM_get_statistics ofi+tcp://127.0.0.1:52000) add_test(ADM_get_transfer_priority_c_test ADM_get_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_link_transfer_to_data_operation_c_test ADM_link_transfer_to_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_register_adhoc_storage_c_test ADM_register_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_register_pfs_storage_c_test ADM_register_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_adhoc_storage_c_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_job_c_test ADM_remove_job ofi+tcp://127.0.0.1:52000) # TODO: ADM_remove_pfs_storage test is missing because is not working in cpp. # Will be created when it works in cpp. add_test(ADM_set_dataset_information_c_test ADM_set_dataset_information ofi+tcp://127.0.0.1:52000) add_test(ADM_set_io_resources_c_test ADM_set_io_resources ofi+tcp://127.0.0.1:52000) add_test(ADM_set_qos_constraints_c_test ADM_set_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_set_transfer_priority_c_test ADM_set_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_transfer_dataset_c_test ADM_transfer_dataset ofi+tcp://127.0.0.1:52000) add_test(ADM_update_adhoc_storage_c_test ADM_update_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_update_job_c_test ADM_update_job ofi+tcp://127.0.0.1:52000) # TODO: ADM_update_pfs_storage test is missing because is not working in cpp. # Will be created when it works in cpp. foreach(example IN LISTS examples_c) add_test(${example}_c_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT}) set_tests_properties(${example}_c_test PROPERTIES FIXTURES_REQUIRED scord_daemon) endforeach() endif()
examples/cxx/CMakeLists.txt +23 −56 Original line number Diff line number Diff line Loading @@ -23,19 +23,27 @@ ################################################################################ list(APPEND examples_cxx # ping ADM_ping # job ADM_register_job ADM_update_job ADM_remove_job ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # adhoc storage ADM_register_adhoc_storage ADM_update_adhoc_storage ADM_remove_adhoc_storage ADM_deploy_adhoc_storage # pfs storage ADM_register_pfs_storage ADM_update_pfs_storage ADM_remove_pfs_storage # transfers ADM_transfer_dataset ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers # qos ADM_set_qos_constraints ADM_get_qos_constraints # data operations ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation # ADM_in_situ_ops ADM_in_transit_ops ADM_transfer_dataset ADM_set_dataset_information ADM_set_io_resources ADM_get_transfer_priority ADM_set_transfer_priority ADM_cancel_transfer ADM_get_pending_transfers ADM_set_qos_constraints ADM_get_qos_constraints ADM_define_data_operation ADM_connect_data_operation ADM_finalize_data_operation ADM_link_transfer_to_data_operation ADM_get_statistics) #misc ADM_get_statistics ADM_set_dataset_information ADM_set_io_resources ) add_library(cxx_examples_common STATIC) target_sources(cxx_examples_common PUBLIC common.hpp PRIVATE common.cpp) Loading @@ -50,50 +58,9 @@ foreach(example IN LISTS examples_cxx) endforeach() if(SCORD_BUILD_TESTS) add_test(ADM_ping_test ADM_ping ofi+tcp://127.0.0.1:52000) add_test(ADM_cancel_transfer_cxx_test ADM_cancel_transfer ofi+tcp://127.0.0.1:52000) set_tests_properties(ADM_cancel_transfer_cxx_test PROPERTIES LABELS "ADM_cancel_transfer;cxx") add_test(ADM_connect_data_operation_cxx_test ADM_connect_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_define_data_operation_cxx_test ADM_define_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_deploy_adhoc_storage_cxx_test ADM_deploy_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_finalize_data_operation_cxx_test ADM_finalize_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_get_pending_transfers_cxx_test ADM_get_pending_transfers ofi+tcp://127.0.0.1:52000) add_test(ADM_get_qos_constraints_cxx_test ADM_get_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_get_transfer_priority_cxx_test ADM_get_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_link_transfer_to_data_operation_cxx_test ADM_link_transfer_to_data_operation ofi+tcp://127.0.0.1:52000) add_test(ADM_register_job_cxx_test ADM_register_job ofi+tcp://127.0.0.1:52000) add_test(ADM_register_pfs_storage_cxx_test ADM_register_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_adhoc_storage_cxx_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_job_cxx_test ADM_remove_job ofi+tcp://127.0.0.1:52000) add_test(ADM_remove_pfs_storage_cxx_test ADM_remove_pfs_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_set_dataset_information_cxx_test ADM_set_dataset_information ofi+tcp://127.0.0.1:52000) add_test(ADM_set_io_resources_cxx_test ADM_set_io_resources ofi+tcp://127.0.0.1:52000) add_test(ADM_set_qos_constraints_cxx_test ADM_set_qos_constraints ofi+tcp://127.0.0.1:52000) add_test(ADM_set_transfer_priority_cxx_test ADM_set_transfer_priority ofi+tcp://127.0.0.1:52000) add_test(ADM_transfer_dataset_cxx_test ADM_transfer_dataset ofi+tcp://127.0.0.1:52000) add_test(ADM_update_adhoc_storage_cxx_test ADM_update_adhoc_storage ofi+tcp://127.0.0.1:52000) add_test(ADM_update_job_cxx_test ADM_update_job ofi+tcp://127.0.0.1:52000) # TODO: add_test(ADM_update_pfs_storage_cxx_test ADM_update_pfs_storage ofi+tcp://127.0.0.1:52000 42) foreach(example IN LISTS examples_cxx) add_test(${example}_cxx_test ${example} ofi+tcp://${SCORD_BIND_ADDRESS}:${SCORD_BIND_PORT}) set_tests_properties(${example}_cxx_test PROPERTIES FIXTURES_REQUIRED scord_daemon) endforeach() endif()