blob: 79c96de5fc932857e3b7a5070f7e443774998af8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/runtime_shell.env.in"
"${CMAKE_CURRENT_SOURCE_DIR}/runtime_shell.env"
)
set(UNIT_TESTS_SH
in_dummy_expect.sh
in_tail_expect.sh
in_http_tls_expect.sh
in_syslog_tcp_tls_expect.sh
in_syslog_tcp_plaintext_expect.sh
in_syslog_udp_plaintext_expect.sh
in_syslog_uds_dgram_plaintext_expect.sh
in_syslog_uds_stream_plaintext_expect.sh
)
# Prepare list of unit tests
foreach(script ${UNIT_TESTS_SH})
add_test(NAME ${script}
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${script}
)
set_tests_properties(${script} PROPERTIES ENVIRONMENT
"FLB_ROOT=${PROJECT_SOURCE_DIR};\
FLB_RUNTIME_SHELL_PATH=${CMAKE_CURRENT_SOURCE_DIR};\
FLB_RUNTIME_SHELL_CONF=${CMAKE_CURRENT_SOURCE_DIR}/conf;\
FLB_BIN=${CMAKE_BINARY_DIR}/bin/fluent-bit"
)
endforeach()
|