Verified Commit 6ba826d0 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Update and enable CXX tests for ADM_*_pfs_storage RPCs

parent e762ae7c
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -27,7 +27,8 @@ list(APPEND examples_c ADM_register_job ADM_cancel_transfer ADM_connect_data_ope
  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_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
foreach(example IN LISTS examples_c)
@@ -62,8 +63,8 @@ if(SCORD_BUILD_TESTS)

  add_test(ADM_register_adhoc_storage_c_test ADM_register_adhoc_storage ofi+tcp://127.0.0.1:52000)

  # TODO: ADM_register_pfs_storage test is missing because is not working in cpp.
  # Will be created when it works in cpp.
  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)
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ int
main(int argc, char* argv[]) {

    if(argc != 2) {
        fmt::print(stderr, "ERROR: no location provided\n");
        fmt::print(stderr, "ERROR: no server address provided\n");
        fmt::print(stderr,
                   "Usage: ADM_register_pfs_storage <SERVER_ADDRESS>\n");
        exit(EXIT_FAILURE);
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ int
main(int argc, char* argv[]) {

    if(argc != 2) {
        fmt::print(stderr, "ERROR: no location provided\n");
        fmt::print(stderr, "ERROR: no server address provided\n");
        fmt::print(stderr, "Usage: ADM_remove_pfs_storage <SERVER_ADDRESS>\n");
        exit(EXIT_FAILURE);
    }
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ int
main(int argc, char* argv[]) {

    if(argc != 2) {
        fmt::print(stderr, "ERROR: no location provided\n");
        fmt::print(stderr, "ERROR: no server address provided\n");
        fmt::print(stderr, "Usage: ADM_update_pfs_storage <SERVER_ADDRESS>\n");
        exit(EXIT_FAILURE);
    }
+4 −2
Original line number Diff line number Diff line
@@ -69,12 +69,14 @@ if(SCORD_BUILD_TESTS)

  add_test(ADM_register_job_cxx_test ADM_register_job ofi+tcp://127.0.0.1:52000)

  # TODO: add_test(ADM_register_pfs_storage_test ADM_register_pfs_storage 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)

  # TODO: add_test(ADM_remove_pfs_storage_test ADM_remove_pfs_storage ofi+tcp://127.0.0.1:52000 42)
  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)