eb3f96d1f6
* Fix aggregation functions on `null` and group-by inputs (#448) * Upgrade Antrl to 4.10.1 and remove antlr_lock (#441) * Update clang-tidy job (#476) * Add parser stress test (#463) NOTE: Doing this to have buildable comments on the project-pineapples branch Co-authored-by: gvolfing <107616712+gvolfing@users.noreply.github.com> Co-authored-by: Jure Bajic <jure.bajic@memgraph.com>
23 lines
917 B
CMake
23 lines
917 B
CMake
set(test_prefix memgraph__stress__)
|
|
|
|
add_custom_target(memgraph__stress)
|
|
|
|
function(add_stress_test test_cpp)
|
|
# get exec name (remove extension from the abs path)
|
|
get_filename_component(exec_name ${test_cpp} NAME_WE)
|
|
set(target_name ${test_prefix}${exec_name})
|
|
add_executable(${target_name} ${test_cpp})
|
|
# OUTPUT_NAME sets the real name of a target when it is built and can be
|
|
# used to help create two targets of the same name even though CMake
|
|
# requires unique logical target names
|
|
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${exec_name})
|
|
# add target to dependencies
|
|
add_dependencies(memgraph__stress ${target_name})
|
|
endfunction(add_stress_test)
|
|
|
|
add_stress_test(long_running.cpp)
|
|
target_link_libraries(${test_prefix}long_running mg-communication mg-io mg-utils)
|
|
|
|
add_stress_test(parser.cpp)
|
|
target_link_libraries(${test_prefix}parser mg-communication mg-io mg-utils mgclient)
|