Skip to content

Commit

Permalink
build: setup for cifuzz spark
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusZoppelt committed Aug 19, 2024
1 parent 840b65c commit 354b3ab
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

cmake_minimum_required(VERSION 3.0)
project (yaml C)
cmake_minimum_required(VERSION 3.16)
project (yaml C CXX)

find_package(cifuzz NO_SYSTEM_ENVIRONMENT_PATH)
enable_fuzz_testing()


set (YAML_VERSION_MAJOR 0)
set (YAML_VERSION_MINOR 2)
Expand Down Expand Up @@ -158,3 +162,8 @@ install(
FILES ${config_version_file}
DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT Development
)

# add_fuzz_test(my_fuzz_test my_fuzz_test.cpp)

# target_link_libraries(my_fuzz_test yaml)
add_subdirectory(cifuzz-spark)
43 changes: 43 additions & 0 deletions cifuzz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Configuration for a CI Fuzz project
## Generated on 2024-07-10

## The build system used to build this project. If not set, cifuzz tries
## to detect the build system automatically.
## Valid values: "bazel", "cmake", "other".
build-system: cmake

## If the build system type is "other", this command is used by
## `cifuzz run` to build the fuzz test.
#build-command: "make my_fuzz_test"

## Directories containing sample inputs used as seeds for the
## code under test. This is used only for fuzzing runs.
## See https://llvm.org/docs/LibFuzzer.html#corpus
#seed-corpus-dirs:
# - path/to/seed-corpus

## Directories containing inputs used for calculating coverage.
#corpus-dirs:
# - path/to/corpus

## A file containing input language keywords or other interesting byte
## sequences.
## See https://llvm.org/docs/LibFuzzer.html#dictionaries
#dict: path/to/dictionary.dct

## Command-line arguments to pass to libFuzzer.
## See https://llvm.org/docs/LibFuzzer.html#options
#engine-args:
# - -rss_limit_mb=4096

## Maximum time to run all fuzz tests. The default is to run for 10 minutes.
#max-fuzzing-duration: 30m

## Set to true to print output of the `cifuzz run` command as JSON.
#print-json: true

## Set to true to disable desktop notifications.
#no-notifications: true

## Style for CI Fuzz.
#style: plain

0 comments on commit 354b3ab

Please sign in to comment.