Skip to content

Commit

Permalink
add test cases for reproducability
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Mar 20, 2024
1 parent 922504b commit 3e092bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/data_plane/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(ppns 1 2 4 8 16 32 64)
function(add_dp_remote_test node ppn files ts ops)
# Remote Streaming RPC over RDMA
set(test_name unit_remote_data_${node}_${ppn})
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --process_per_node ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact RemoteDataBandwidth)
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --ppn ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact RemoteDataBandwidth)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_KVS_NAMESPACE=${DYAD_KEYSPACE})
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_MODULE_SO=${CMAKE_BINARY_DIR}/${DYAD_LIBDIR}/dyad.so)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_LOG_DIR=${DYAD_LOG_DIR})
Expand All @@ -16,7 +16,7 @@ function(add_dp_remote_test node ppn files ts ops)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_PATH_PRODUCER=$ENV{DYAD_DMD_DIR})
# Remote Agg
set(test_name unit_remote_agg_data_${node}_${ppn})
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --process_per_node ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact RemoteDataAggBandwidth)
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --ppn ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact RemoteDataAggBandwidth)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_KVS_NAMESPACE=${DYAD_KEYSPACE})
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_MODULE_SO=${CMAKE_BINARY_DIR}/${DYAD_LIBDIR}/dyad.so)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_LOG_DIR=${DYAD_LOG_DIR})
Expand All @@ -28,7 +28,7 @@ endfunction()
function(add_dp_local_test node ppn files ts ops)
# Process Local
set(test_name unit_process_local_data_${node}_${ppn})
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --process_per_node ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact LocalProcessDataBandwidth)
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --ppn ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact LocalProcessDataBandwidth)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_KVS_NAMESPACE=${DYAD_KEYSPACE})
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_MODULE_SO=${CMAKE_BINARY_DIR}/${DYAD_LIBDIR}/dyad.so)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_LOG_DIR=${DYAD_LOG_DIR})
Expand All @@ -37,7 +37,7 @@ function(add_dp_local_test node ppn files ts ops)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_PATH_PRODUCER=$ENV{DYAD_DMD_DIR})
# Node Local
set(test_name unit_node_local_data_${node}_${ppn})
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --process_per_node ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact LocalNodeDataBandwidth)
add_test(${test_name} flux run -N ${node} --tasks-per-node ${ppn} ${CMAKE_BINARY_DIR}/bin/unit_test --filename dp_${node}_${ppn} --ppn ${ppn} --pfs $ENV{DYAD_PFS_DIR} --dmd $ENV{DYAD_DMD_DIR} --iteration ${ops} --number_of_files ${files} --request_size ${ts} --reporter compact LocalNodeDataBandwidth)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_KVS_NAMESPACE=${DYAD_KEYSPACE})
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_MODULE_SO=${CMAKE_BINARY_DIR}/${DYAD_LIBDIR}/dyad.so)
set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT DYAD_LOG_DIR=${DYAD_LOG_DIR})
Expand Down

0 comments on commit 3e092bd

Please sign in to comment.