diff --git a/userspace/libsinsp/test/CMakeLists.txt b/userspace/libsinsp/test/CMakeLists.txt index 09d4531c5c..53fef27594 100644 --- a/userspace/libsinsp/test/CMakeLists.txt +++ b/userspace/libsinsp/test/CMakeLists.txt @@ -120,7 +120,6 @@ set(LIBSINSP_UNIT_TESTS_SOURCES thread_table.ut.cpp public_sinsp_API/event_related.cpp public_sinsp_API/sinsp_logger.cpp - cri_settings.ut.cpp "${TEST_PLUGINS}" "${SINSP_PARSERS_SUITE}" "${SINSP_CLASSES_SUITE}" diff --git a/userspace/libsinsp/test/cri_settings.ut.cpp b/userspace/libsinsp/test/container_engine/cri_settings.ut.cpp similarity index 88% rename from userspace/libsinsp/test/cri_settings.ut.cpp rename to userspace/libsinsp/test/container_engine/cri_settings.ut.cpp index 8d93c1d34c..3865c46e02 100644 --- a/userspace/libsinsp/test/cri_settings.ut.cpp +++ b/userspace/libsinsp/test/container_engine/cri_settings.ut.cpp @@ -16,10 +16,11 @@ limitations under the License. */ +#if !defined(MINIMAL_BUILD) and !defined(__EMSCRIPTEN__) // MINIMAL_BUILD and emscripten don't support containers at all #include #include #include -#include "./sinsp_with_test_input.h" +#include "../sinsp_with_test_input.h" TEST_F(sinsp_with_test_input, default_cri_socket_paths) @@ -41,3 +42,4 @@ TEST_F(sinsp_with_test_input, default_cri_socket_paths) ASSERT_TRUE("/run/crio/crio.sock"==socket_paths[1]); ASSERT_TRUE("/run/k3s/containerd/containerd.sock"==socket_paths[2]); } +#endif