| 1 |
# Copyright 2007 - 2021, Alan Antonuk and the rabbitmq-c contributors. |
| 2 |
# SPDX-License-Identifier: mit |
| 3 |
|
| 4 |
include_directories( |
| 5 |
${LIBRABBITMQ_INCLUDE_DIRS} |
| 6 |
${CMAKE_CURRENT_BINARY_DIR}/../librabbitmq/ |
| 7 |
${CMAKE_CURRENT_SOURCE_DIR}/../librabbitmq/) |
| 8 |
|
| 9 |
add_definitions(-DHAVE_CONFIG_H) |
| 10 |
add_definitions(-DAMQP_STATIC) |
| 11 |
|
| 12 |
add_executable(test_parse_url test_parse_url.c) |
| 13 |
target_link_libraries(test_parse_url rabbitmq-static) |
| 14 |
add_test(parse_url test_parse_url) |
| 15 |
|
| 16 |
add_executable(test_tables test_tables.c) |
| 17 |
target_link_libraries(test_tables rabbitmq-static) |
| 18 |
add_test(tables test_tables) |
| 19 |
configure_file(test_tables.expected ${CMAKE_CURRENT_BINARY_DIR}/tests/test_tables.expected COPYONLY) |
| 20 |
|
| 21 |
add_executable(test_status_enum |
| 22 |
test_status_enum.c) |
| 23 |
target_link_libraries(test_status_enum rabbitmq-static) |
| 24 |
add_test(status_enum test_status_enum) |
| 25 |
|
| 26 |
add_executable(test_tune_connection test_tune_connection.c) |
| 27 |
target_link_libraries(test_tune_connection rabbitmq-static) |
| 28 |
add_test(tune_connection test_tune_connection) |
| 29 |
|
| 30 |
add_executable(test_basic |
| 31 |
test_basic.c) |
| 32 |
target_link_libraries(test_basic rabbitmq-static) |
| 33 |
|
| 34 |
if (RUN_SYSTEM_TESTS) |
| 35 |
if (NOT APPLE) |
| 36 |
add_test(basic test_basic) |
| 37 |
endif() |
| 38 |
endif(RUN_SYSTEM_TESTS) |
| 39 |
|
| 40 |
add_executable(test_sasl_mechanism test_sasl_mechanism.c) |
| 41 |
target_link_libraries(test_sasl_mechanism rabbitmq-static) |
| 42 |
add_test(sasl_mechanism test_sasl_mechanism) |
| 43 |
|
| 44 |
add_executable(test_merge_capabilities test_merge_capabilities.c) |
| 45 |
target_link_libraries(test_merge_capabilities rabbitmq-static) |
| 46 |
add_test(merge_capabilities test_merge_capabilities) |
| 47 |
|
| 48 |
add_executable(test_send_frame test_send_frame.c) |
| 49 |
target_link_libraries(test_send_frame rabbitmq-static) |
| 50 |
add_test(send_frame test_send_frame) |
| 51 |
|
| 52 |
add_executable(test_decode_bytes test_decode_bytes.c) |
| 53 |
target_link_libraries(test_decode_bytes rabbitmq-static) |
| 54 |
add_test(decode_bytes test_decode_bytes) |