mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 09:27:48 +01:00
Compare commits
2 Commits
d424adc389
...
5ea76e566e
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ea76e566e | |||
| 275f1208c5 |
@@ -5,9 +5,8 @@ project(backup)
|
||||
if (SANITIZE STREQUAL "YES")
|
||||
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)
|
||||
# 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=leak -fno-sanitize-recover)
|
||||
add_link_options(-fsanitize=address -fsanitize=undefined -fno-sanitize=leak -fno-sanitize-recover)
|
||||
add_compile_options(-fsanitize=address -fsanitize=undefined -fno-sanitize-recover)
|
||||
add_link_options(-fsanitize=address -fsanitize=undefined -fno-sanitize-recover)
|
||||
endif ()
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
|
||||
@@ -8,5 +8,5 @@ target_link_libraries(
|
||||
BuzhashTest PRIVATE
|
||||
GTest::gtest_main chunkers
|
||||
)
|
||||
gtest_discover_tests(BuzhashTest)
|
||||
gtest_discover_tests(BuzhashTest DISCOVERY_TIMEOUT 600)
|
||||
|
||||
|
||||
@@ -11,5 +11,5 @@ target_link_libraries(
|
||||
CLITests PRIVATE
|
||||
GTest::gtest_main testUtils
|
||||
)
|
||||
gtest_discover_tests(CLITests)
|
||||
gtest_discover_tests(CLITests DISCOVERY_TIMEOUT 600)
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ target_link_libraries(
|
||||
GTest::gtest_main crypto
|
||||
)
|
||||
|
||||
gtest_discover_tests(CryptoTests)
|
||||
gtest_discover_tests(CryptoTests DISCOVERY_TIMEOUT 600)
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ target_link_libraries(
|
||||
GTest::gtest_main commands utils testUtils repo
|
||||
)
|
||||
|
||||
gtest_discover_tests(FullTest)
|
||||
gtest_discover_tests(FullTest DISCOVERY_TIMEOUT 600)
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@ target_link_libraries(
|
||||
GTest::gtest_main commands utils testUtils repo
|
||||
)
|
||||
|
||||
gtest_discover_tests(ChunkTest)
|
||||
gtest_discover_tests(FileRepositoryTest)
|
||||
gtest_discover_tests(ChunkTest DISCOVERY_TIMEOUT 600)
|
||||
gtest_discover_tests(FileRepositoryTest DISCOVERY_TIMEOUT 600)
|
||||
|
||||
Reference in New Issue
Block a user