Skip to content

Commit

Permalink
Pruning fuzz, fmt, and constexpr_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Aug 6, 2024
1 parent 262bf6f commit 02ca070
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 159 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ add_library(adobe_contract_checking::adobe_contract_checking_warnings ALIAS adob
add_subdirectory(configured_files)

# Adding the src:
add_subdirectory(src)
# add_subdirectory(src)

# STUFF WE WANT TO KEEP
#
Expand Down Expand Up @@ -98,7 +98,6 @@ endif()
include(CTest)

if(BUILD_TESTING)
message(AUTHOR_WARNING "Building Tests. Be sure to check out test/constexpr_tests.cpp for constexpr testing")
add_subdirectory(test)
endif()

Expand Down
15 changes: 0 additions & 15 deletions Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ function(adobe_contract_checking_setup_dependencies)
# For each dependency, see if it's
# already been provided to us by a parent project

if(NOT TARGET fmtlib::fmtlib)
cpmaddpackage("gh:fmtlib/fmt#9.1.0")
endif()

if(NOT TARGET spdlog::spdlog)
cpmaddpackage(
NAME
spdlog
VERSION
1.11.0
GITHUB_REPOSITORY
"gabime/spdlog"
OPTIONS
"SPDLOG_FMT_EXTERNAL ON")
endif()

if(NOT TARGET Catch2::Catch2WithMain)
cpmaddpackage("gh:catchorg/[email protected]")
Expand Down
14 changes: 2 additions & 12 deletions ProjectOptions.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include(cmake/SystemLink.cmake)
include(cmake/LibFuzzer.cmake)
include(CMakeDependentOption)
include(CheckCXXCompilerFlag)

Expand Down Expand Up @@ -78,15 +77,6 @@ macro(adobe_contract_checking_setup_options)
adobe_contract_checking_ENABLE_CACHE)
endif()

adobe_contract_checking_check_libfuzzer_support(LIBFUZZER_SUPPORTED)
if(LIBFUZZER_SUPPORTED AND (adobe_contract_checking_ENABLE_SANITIZER_ADDRESS OR adobe_contract_checking_ENABLE_SANITIZER_THREAD OR adobe_contract_checking_ENABLE_SANITIZER_UNDEFINED))
set(DEFAULT_FUZZER ON)
else()
set(DEFAULT_FUZZER OFF)
endif()

option(adobe_contract_checking_BUILD_FUZZ_TESTS "Enable fuzz testing executable" ${DEFAULT_FUZZER})

endmacro()

macro(adobe_contract_checking_global_options)
Expand All @@ -99,7 +89,7 @@ macro(adobe_contract_checking_global_options)

if(adobe_contract_checking_ENABLE_HARDENING AND adobe_contract_checking_ENABLE_GLOBAL_HARDENING)
include(cmake/Hardening.cmake)
if(NOT SUPPORTS_UBSAN
if(NOT SUPPORTS_UBSAN
OR adobe_contract_checking_ENABLE_SANITIZER_UNDEFINED
OR adobe_contract_checking_ENABLE_SANITIZER_ADDRESS
OR adobe_contract_checking_ENABLE_SANITIZER_THREAD
Expand Down Expand Up @@ -185,7 +175,7 @@ macro(adobe_contract_checking_local_options)

if(adobe_contract_checking_ENABLE_HARDENING AND NOT adobe_contract_checking_ENABLE_GLOBAL_HARDENING)
include(cmake/Hardening.cmake)
if(NOT SUPPORTS_UBSAN
if(NOT SUPPORTS_UBSAN
OR adobe_contract_checking_ENABLE_SANITIZER_UNDEFINED
OR adobe_contract_checking_ENABLE_SANITIZER_ADDRESS
OR adobe_contract_checking_ENABLE_SANITIZER_THREAD
Expand Down
17 changes: 0 additions & 17 deletions cmake/LibFuzzer.cmake

This file was deleted.

21 changes: 0 additions & 21 deletions fuzz_test/CMakeLists.txt

This file was deleted.

22 changes: 0 additions & 22 deletions fuzz_test/fuzz_tester.cpp

This file was deleted.

1 change: 0 additions & 1 deletion gcovr.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ filter = include/*
exclude-directories = install
exclude-directories = out/*/*/_deps
exclude-directories = test
exclude-directories = fuzz_test

gcov-ignore-parse-errors = yes
print-summary = yes
Expand Down
15 changes: 0 additions & 15 deletions include/myproject/sample_library.hpp

This file was deleted.

1 change: 0 additions & 1 deletion src/CMakeLists.txt

This file was deleted.

27 changes: 0 additions & 27 deletions src/sample_library/CMakeLists.txt

This file was deleted.

13 changes: 0 additions & 13 deletions src/sample_library/sample_library.cpp

This file was deleted.

1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ adobe_contract_checking_apply_standard_options(throwing_tests)
target_link_libraries(
throwing_tests
PRIVATE
# adobe_contract_checking::sample_library
adobe-contract-checking
Catch2::Catch2WithMain)

Expand Down
12 changes: 0 additions & 12 deletions test/constexpr_tests.cpp

This file was deleted.

0 comments on commit 02ca070

Please sign in to comment.