Skip to content

Commit

Permalink
new(test/libsinsp_e2e): add container cri tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo committed Oct 7, 2024
1 parent 2b1e402 commit 43aaeb4
Show file tree
Hide file tree
Showing 16 changed files with 1,749 additions and 34 deletions.
53 changes: 28 additions & 25 deletions test/libsinsp_e2e/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@ configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/libsinsp_test_var.h"
)

add_executable(
libsinsp_e2e_tests
capture_to_file_test.cpp
container/container.cpp
container/container_cgroup.cpp
container/docker_utils.cpp
event_capture.cpp
forking.cpp
fs.cpp
ipv6.cpp
main.cpp
paths.cpp
process.cpp
subprocess.cpp
suppress_events.cpp
sys_call_test.cpp
tcp_client_server.cpp
tcp_client_server_ipv4_mapped.cpp
threadinfo.cpp
thread_state.cpp
udp_client_server.cpp
unix_client_server.cpp
add_executable(libsinsp_e2e_tests
capture_to_file_test.cpp
container/container.cpp
container/container_cgroup.cpp
container/container_cri.cpp
container/docker_utils.cpp
event_capture.cpp
forking.cpp
fs.cpp
ipv6.cpp
main.cpp
paths.cpp
process.cpp
subprocess.cpp
suppress_events.cpp
sys_call_test.cpp
tcp_client_server.cpp
tcp_client_server_ipv4_mapped.cpp
threadinfo.cpp
thread_state.cpp
udp_client_server.cpp
unix_client_server.cpp
)

if(BUILD_BPF)
Expand Down Expand Up @@ -95,6 +95,9 @@ configure_file(
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/resources/)

execute_process(
COMMAND tar xzf ${CMAKE_CURRENT_BINARY_DIR}/resources/fake-proc.tar.gz
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/resources/
)
COMMAND tar xzf ${CMAKE_CURRENT_BINARY_DIR}/resources/fake-proc.tar.gz
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/resources/
)

add_subdirectory(fake_cri)
add_dependencies(libsinsp_e2e_tests fake_cri)
Loading

0 comments on commit 43aaeb4

Please sign in to comment.