forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add remaining fuzz tests to cflite.
So we can run them daily and get coverage info from them.
- Loading branch information
Showing
10 changed files
with
117 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
# TODO(iphydf): Reactivate when we have quota again in February 2025. | ||
# --- | ||
# freebsd_task: | ||
# timeout_in: 5m | ||
# freebsd_instance: | ||
# image_family: freebsd-14-1 | ||
# configure_script: | ||
# - PAGER=cat ASSUME_ALWAYS_YES=YES pkg install | ||
# cmake | ||
# git | ||
# gmake | ||
# googletest | ||
# libconfig | ||
# libsodium | ||
# libvpx | ||
# ninja | ||
# opus | ||
# pkgconf | ||
# - git submodule update --init --recursive | ||
# test_all_script: | ||
# - | | ||
# # TODO(iphydf): Investigate FreeBSD failures on these tests. | ||
# sed -Ei -e '/\(dht_nodes_request_api\)/s/^/#/' auto_tests/CMakeLists.txt | ||
# cmake . \ | ||
# -DMIN_LOGGER_LEVEL=TRACE \ | ||
# -DMUST_BUILD_TOXAV=ON \ | ||
# -DNON_HERMETIC_TESTS=OFF \ | ||
# -DTEST_TIMEOUT_SECONDS=50 \ | ||
# -DUSE_IPV6=OFF \ | ||
# -DAUTOTEST=ON \ | ||
# -GNinja | ||
# cmake --build . --target install | ||
# ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:3 || ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:3 | ||
--- | ||
freebsd_task: | ||
timeout_in: 5m | ||
freebsd_instance: | ||
image_family: freebsd-14-1 | ||
configure_script: | ||
- PAGER=cat ASSUME_ALWAYS_YES=YES pkg install | ||
cmake | ||
git | ||
gmake | ||
googletest | ||
libconfig | ||
libsodium | ||
libvpx | ||
ninja | ||
opus | ||
pkgconf | ||
- git submodule update --init --recursive | ||
test_all_script: | ||
- | | ||
# TODO(iphydf): Investigate FreeBSD failures on these tests. | ||
sed -Ei -e '/\(dht_nodes_request_api\)/s/^/#/' auto_tests/CMakeLists.txt | ||
cmake . \ | ||
-DMIN_LOGGER_LEVEL=TRACE \ | ||
-DMUST_BUILD_TOXAV=ON \ | ||
-DNON_HERMETIC_TESTS=OFF \ | ||
-DTEST_TIMEOUT_SECONDS=50 \ | ||
-DUSE_IPV6=OFF \ | ||
-DAUTOTEST=ON \ | ||
-GNinja | ||
cmake --build . --target install | ||
ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:3 || ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Derived from: https://google.github.io/clusterfuzzlite/running-clusterfuzzlite/github-actions/ | ||
|
||
name: ClusterFuzzLite pull request fuzzing | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
Fuzzing: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sanitizer: | ||
- address | ||
- undefined | ||
- memory | ||
steps: | ||
- name: Build Fuzzers (${{ matrix.sanitizer }}) | ||
id: build | ||
uses: google/clusterfuzzlite/actions/build_fuzzers@v1 | ||
with: | ||
sanitizer: ${{ matrix.sanitizer }} | ||
- name: Run Fuzzers (${{ matrix.sanitizer }}) | ||
id: run | ||
uses: google/clusterfuzzlite/actions/run_fuzzers@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
fuzz-seconds: 300 # 5 mins (total time, not per test) | ||
mode: 'code-change' | ||
sanitizer: ${{ matrix.sanitizer }} | ||
# Optional but recommended: For storing certain artifacts from fuzzing. | ||
# See later section on "Git repo for storage". | ||
storage-repo: https://github.com/TokTok/toktok-fuzzer.git | ||
storage-repo-branch: master # Optional. Defaults to "main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters