Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/fuzzing
diff options
context:
space:
mode:
authorLeitwolf2026-10-25 10:31:36 +0300
committerGitHub2026-10-25 10:31:36 +0300
commitd2e3e074bb2e1b8ffd9fc990d0b87667ea602f58 (patch)
tree0bce4462b2e190c39b3e1c5f697e3e4abd1a5e2a /fuzzing
parent13f81a480a93807c14dddb5abdb97355ced4d4c5 (diff)
parent126dc333564cb72b5115d9a9242d66694694b6d0 (diff)
downloadcatch3-d2e3e074bb2e1b8ffd9fc990d0b87667ea602f58.tar.gz
Merge pull request #18 from Progmasoft/build/catch3-identity
Give Catch3 its own build names and headers
Diffstat (limited to 'fuzzing')
-rw-r--r--fuzzing/CMakeLists.txt2
-rwxr-xr-xfuzzing/build_fuzzers.sh12
-rw-r--r--fuzzing/fuzz_TestSpecParser.cpp4
3 files changed, 9 insertions, 9 deletions
diff --git a/fuzzing/CMakeLists.txt b/fuzzing/CMakeLists.txt
index d300a19d..05591520 100644
--- a/fuzzing/CMakeLists.txt
+++ b/fuzzing/CMakeLists.txt
@@ -5,7 +5,7 @@
# and has all the dependencies, so the individual fuzzers can be
# added one line each.
add_library(fuzzhelper NullOStream.h NullOStream.cpp)
-target_link_libraries(fuzzhelper PUBLIC Catch2::Catch2)
+target_link_libraries(fuzzhelper PUBLIC Catch3::Catch3)
# The runner fuzzers include its C++20 headers.
target_compile_features(fuzzhelper PUBLIC cxx_std_20)
diff --git a/fuzzing/build_fuzzers.sh b/fuzzing/build_fuzzers.sh
index 9788c68c..6a5ea52c 100755
--- a/fuzzing/build_fuzzers.sh
+++ b/fuzzing/build_fuzzers.sh
@@ -21,13 +21,13 @@ fi
cmake $CATCHROOT \
-DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_CXX_FLAGS="-fsanitize=fuzzer-no-link,address,undefined -O3 -g" \
- -DCATCH_DEVELOPMENT_BUILD=On \
- -DCATCH_BUILD_EXAMPLES=Off \
- -DCATCH_BUILD_EXTRA_TESTS=Off \
- -DCATCH_BUILD_TESTING=Off \
+ -DCATCH3_DEVELOPMENT_BUILD=On \
+ -DCATCH3_BUILD_EXAMPLES=Off \
+ -DCATCH3_BUILD_EXTRA_TESTS=Off \
+ -DCATCH3_BUILD_TESTING=Off \
-DBUILD_TESTING=Off \
- -DCATCH_ENABLE_WERROR=Off \
- -DCATCH_BUILD_FUZZERS=On
+ -DCATCH3_ENABLE_WERROR=Off \
+ -DCATCH3_BUILD_FUZZERS=On
cmake --build . -j $(nproc)
diff --git a/fuzzing/fuzz_TestSpecParser.cpp b/fuzzing/fuzz_TestSpecParser.cpp
index 6c20dbbf..66234d30 100644
--- a/fuzzing/fuzz_TestSpecParser.cpp
+++ b/fuzzing/fuzz_TestSpecParser.cpp
@@ -7,8 +7,8 @@
// SPDX-License-Identifier: BSL-1.0
//By Paul Dreik 2020
-#include <catch2/internal/catch_test_spec_parser.hpp>
-#include <catch2/internal/catch_tag_alias_registry.hpp>
+#include <Progmasoft/Catch3/Internal/TestSpecParser.hpp>
+#include <Progmasoft/Catch3/Internal/TagAliasRegistry.hpp>
#include <cstdint>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {