Compare commits

...

2 Commits

Author SHA1 Message Date
5ea76e566e add discovery timeout to gtests
All checks were successful
CMake / build (push) Successful in 24m18s
2024-01-05 22:53:18 +01:00
275f1208c5 it was actually because sys ptrace wasn't allowed for gitea runner 2024-01-05 22:32:33 +01:00
6 changed files with 8 additions and 9 deletions

View File

@@ -5,9 +5,8 @@ project(backup)
if (SANITIZE STREQUAL "YES") if (SANITIZE STREQUAL "YES")
message(WARNING "Enabling sanitizers!") message(WARNING "Enabling sanitizers!")
add_compile_options(-Wall -Wextra -pedantic -Wshadow -Wformat=2 -Wfloat-equal -D_GLIBCXX_DEBUG -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2) add_compile_options(-Wall -Wextra -pedantic -Wshadow -Wformat=2 -Wfloat-equal -D_GLIBCXX_DEBUG -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2)
# Disable leak sanitizer because it's somehow enabled in Gitea Actions and it crashes with gtest? add_compile_options(-fsanitize=address -fsanitize=undefined -fno-sanitize-recover)
add_compile_options(-fsanitize=address -fsanitize=undefined -fno-sanitize=leak -fno-sanitize-recover) add_link_options(-fsanitize=address -fsanitize=undefined -fno-sanitize-recover)
add_link_options(-fsanitize=address -fsanitize=undefined -fno-sanitize=leak -fno-sanitize-recover)
endif () endif ()
if (CMAKE_BUILD_TYPE STREQUAL "Release") if (CMAKE_BUILD_TYPE STREQUAL "Release")

View File

@@ -8,5 +8,5 @@ target_link_libraries(
BuzhashTest PRIVATE BuzhashTest PRIVATE
GTest::gtest_main chunkers GTest::gtest_main chunkers
) )
gtest_discover_tests(BuzhashTest) gtest_discover_tests(BuzhashTest DISCOVERY_TIMEOUT 600)

View File

@@ -11,5 +11,5 @@ target_link_libraries(
CLITests PRIVATE CLITests PRIVATE
GTest::gtest_main testUtils GTest::gtest_main testUtils
) )
gtest_discover_tests(CLITests) gtest_discover_tests(CLITests DISCOVERY_TIMEOUT 600)

View File

@@ -10,5 +10,5 @@ target_link_libraries(
GTest::gtest_main crypto GTest::gtest_main crypto
) )
gtest_discover_tests(CryptoTests) gtest_discover_tests(CryptoTests DISCOVERY_TIMEOUT 600)

View File

@@ -10,5 +10,5 @@ target_link_libraries(
GTest::gtest_main commands utils testUtils repo GTest::gtest_main commands utils testUtils repo
) )
gtest_discover_tests(FullTest) gtest_discover_tests(FullTest DISCOVERY_TIMEOUT 600)

View File

@@ -20,5 +20,5 @@ target_link_libraries(
GTest::gtest_main commands utils testUtils repo GTest::gtest_main commands utils testUtils repo
) )
gtest_discover_tests(ChunkTest) gtest_discover_tests(ChunkTest DISCOVERY_TIMEOUT 600)
gtest_discover_tests(FileRepositoryTest) gtest_discover_tests(FileRepositoryTest DISCOVERY_TIMEOUT 600)