diff --git a/CMakeLists.txt b/CMakeLists.txt index 387f3d0c..5a436c6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,9 +32,11 @@ set(GENERATE_IGNORE_WARNINGS "-Wno-deprecated-declarations -Wno-cast-align") set_source_files_properties(src/syscall/generate.c PROPERTIES COMPILE_FLAGS ${GENERATE_IGNORE_WARNINGS}) set_source_files_properties(src/syscall/generate-macos.c PROPERTIES COMPILE_FLAGS ${GENERATE_IGNORE_WARNINGS}) +SET(SET_TEST_IGNORE_FLAGS "-Wno-deprecated-declarations -Wno-unused-function") + set_source_files_properties(src/io/io.c PROPERTIES COMPILE_FLAGS -Wno-format-nonliteral) set_source_files_properties(src/plugins/plugin.c PROPERTIES COMPILE_FLAGS -Wno-cast-qual) -set_source_files_properties(src/syscall/set_test.c PROPERTIES COMPILE_FLAGS -Wno-unused-function) +set_source_files_properties(src/syscall/set_test.c PROPERTIES COMPILE_FLAGS ${SET_TEST_IGNORE_FLAGS}) set_source_files_properties(src/file/file.c PROPERTIES COMPILE_FLAGS -Wno-cast-qual) set_source_files_properties(src/probe/probe-freebsd.c PROPERTIES COMPILE_FLAGS -Wno-incompatible-pointer-types-discards-qualifiers) set_source_files_properties(src/runtime/runtime.c PROPERTIES COMPILE_FLAGS -Wno-incompatible-pointer-types-discards-qualifiers) @@ -133,8 +135,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # We need this to conditionally compile macOS only sources. add_definitions(-DMAC_OS) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default") - SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default -Wno-switch-enum") + SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default -Wno-switch-enum") SET(UTILS_IGNORE_FLAGS "-Wno-reserved-id-macro -Wno-unused-macros") set_source_files_properties(src/utils/utils.c PROPERTIES COMPILE_FLAGS ${UTILS_IGNORE_FLAGS}) @@ -366,6 +368,7 @@ add_sanitizers(crypto-unit-test) add_sanitizers(concurrent-unit-test) add_sanitizers(resource-integration-test) +add_test(resource-integration-test resource-integration-test) add_test(runtime-integration-test runtime-integration-test) add_test(utils-unit-test utils-unit-test) add_test(memory-unit-test memory-unit-test) @@ -373,6 +376,7 @@ add_test(memory-intergration-test memory-intergration-test) add_test(crypto-unit-test crypto-unit-test) add_test(concurrent-unit-test concurrent-unit-test) +add_dependencies(check resource-integration-test) add_dependencies(check runtime-integration-test) add_dependencies(check utils-unit-test) add_dependencies(check memory-intergration-test)