Verified Commit 9b0b66f6 authored by ANA MANZANO RODRIGUEZ's avatar ANA MANZANO RODRIGUEZ Committed by Alberto Miranda
Browse files

Check SCORD_BUILD_TESTS to execute test

parent 4bf93376
Loading
Loading
Loading
Loading
+29 −28
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ foreach(example IN LISTS examples_c)
  set_target_properties(${example}_c PROPERTIES OUTPUT_NAME ${example})
endforeach()

enable_testing()
if (SCORD_BUILD_TESTS)

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

@@ -90,3 +90,4 @@ add_test(ADM_update_job_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.
endif ()
 No newline at end of file
+25 −24
Original line number Diff line number Diff line
@@ -44,13 +44,12 @@ foreach (example IN LISTS examples_cxx)
    set_target_properties(${example}_cxx PROPERTIES OUTPUT_NAME ${example})
endforeach()

enable_testing()
if (SCORD_BUILD_TESTS)

    add_test(ADM_ping_test ADM_ping ofi+tcp://127.0.0.1:52000)

    add_test(ADM_cancel_transfer_test ADM_cancel_transfer ofi+tcp://127.0.0.1:52000)


    add_test(ADM_connect_data_operation_test ADM_connect_data_operation ofi+tcp://127.0.0.1:52000)

    add_test(ADM_define_data_operation_test ADM_define_data_operation ofi+tcp://127.0.0.1:52000)
@@ -92,3 +91,5 @@ add_test(ADM_update_adhoc_storage_test ADM_update_adhoc_storage ofi+tcp://127.0.
    add_test(ADM_update_job_test ADM_update_job ofi+tcp://127.0.0.1:52000)

    # TODO: add_test(ADM_update_pfs_storage_test ADM_update_pfs_storage ofi+tcp://127.0.0.1:52000 42) 
endif ()