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 <[email protected]>
  • Loading branch information
therealbobo committed Oct 7, 2024
1 parent 2b1e402 commit 562de0e
Show file tree
Hide file tree
Showing 17 changed files with 1,750 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
-DUSE_BUNDLED_LIBBPF=ON \
-DUSE_BUNDLED_GTEST=ON \
..
make -j6 libsinsp_e2e_tests
make -j6 libsinsp_e2e_tests fake_cri
sudo rm -vfr test/libsinsp_e2e/resources/_proc
cd ..
Expand Down
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 562de0e

Please sign in to comment.