Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/fuzz-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ jobs:
setapikey "${{ secrets.GITHUB_TOKEN }}"
-source "${{ env.FEED_URL }}"

- name: Check out FuzzTest
uses: actions/checkout@v6
with:
repository: google/fuzztest
path: ${{ github.workspace }}/fuzztest
persist-credentials: false

# WORKAROUND: Add -fno-builtin-std-forward_like for GCC 14 until GCC 14.3
- name: Configure CMake
run: >-
Expand Down
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,15 @@ target_link_libraries(
forfun_common_target_compile_options(static_test_driver)

if(FORFUN_BUILD_FUZZING_DRIVER)
enable_testing()
include(FetchContent)

include(GoogleTest)
FetchContent_Declare(
google_fuzztest
GIT_REPOSITORY https://github.com/google/fuzztest.git
GIT_TAG b73724d4866c22d9b64c152a2d7ac22c7ca94168 # 2026-02-19
)

add_subdirectory(fuzztest)
FetchContent_MakeAvailable(google_fuzztest)

fuzztest_setup_fuzzing_flags()

Expand Down Expand Up @@ -933,6 +937,8 @@ if(FORFUN_BUILD_FUZZING_DRIVER)
PRIVATE GTest::gtest
)
link_fuzztest(fuzzing_driver)

include(GoogleTest)
gtest_discover_tests(fuzzing_driver)
endif()

Expand Down
Loading