Skip to content

Commit 7dc9731

Browse files
authored
Merge pull request #3 from CodeIntelligenceTesting/devcontainer-update
Devcontainer update
2 parents f0b56b5 + ac25733 commit 7dc9731

5 files changed

Lines changed: 73 additions & 12 deletions

File tree

.devcontainer

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,4 @@ install(
162162
DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT Development
163163
)
164164

165-
166-
add_subdirectory(fuzz-tests)
165+
add_subdirectory(cifuzz-spark)

cifuzz-spark/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#cifuzz:build-template:begin
2+
#add_fuzz_test({{ .FuzzTestName }} {{ .FileName }})
3+
#target_link_libraries({{ .FuzzTestName }} PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,yaml>")
4+
#cifuzz:build-template:end

cifuzz.yaml

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,74 @@
1+
## Configuration for a CI Fuzz project
2+
## Generated on 2025-06-17
3+
4+
## The build system used to build this project. If not set, cifuzz tries to
5+
## detect the build system automatically.
6+
## Valid values: "bazel", "cmake", "other"
17
build-system: cmake
8+
## Engine used for fuzzing, default is "libfuzzer-clang".
9+
## Valid values: "libfuzzer-clang", "honggfuzz-clang", "honggfuzz-gcc"
10+
engine: libfuzzer-clang
11+
## If the build system type is "other", this command is used to build the fuzz
12+
## tests.
13+
#build-command: make my_fuzz_test
14+
15+
## If the build system type is "other", this command is used to list the names
16+
## of already existing fuzz tests in your project. This allows running all fuzz
17+
## tests in the project without listing them explicitly, supports fuzz test
18+
## generation and enables fuzz test completion for commands.
19+
## The listed names should be separated by whitespace and can't include
20+
## whitespaces themselves, i.e. 'fuzz_test1 fuzz_test_2 ...'
21+
#list-fuzz-tests-command: echo my_fuzz_test
22+
23+
## Command-line arguments to pass directly to the build system to use when
24+
## building fuzz tests.
25+
#build-system-args:
26+
# - -DBUILD_TESTS=ON
27+
28+
## Directories containing sample inputs used as seeds for running fuzz tests.
29+
## For general information on seed corpora, see:
30+
## https://docs.code-intelligence.com/glossary#seed-corpus
31+
#seed-corpus-dirs:
32+
# - path/to/seed-corpus
233

3-
engine-args:
4-
- -detect_leaks=0
34+
## Directories containing inputs for calculating coverage. These are used in
35+
## addition to inputs found in the directory of the fuzz test.
36+
#corpus-dirs:
37+
# - path/to/corpus
538

6-
build-file: fuzz-tests/CMakeLists.txt
39+
## File containing input language keywords or other interesting byte sequences
40+
## used for running fuzz tests.
41+
## For libFuzzer see: https://llvm.org/docs/LibFuzzer.html#dictionaries
42+
#dict: path/to/dictionary.dct
743

44+
## Command-line arguments to pass to libFuzzer when running fuzz tests.
45+
## See https://llvm.org/docs/LibFuzzer.html#options for possible options.
46+
libfuzzer-args:
47+
- -detect_leaks=0
48+
# - -rss_limit_mb=4096
49+
50+
## Command-line arguments to pass to Honggfuzz when running fuzz tests.
51+
## See https://github.com/google/honggfuzz/blob/master/docs/USAGE.md for possible options.
52+
#honggfuzz-args:
53+
# - --rlimit_rss=4096
54+
55+
## Maximum time to run all fuzz tests. Default is 10 minutes. The time will be
56+
## split up evenly between multiple fuzz tests. To keep running indefinitely,
57+
## set value to 0.
858
max-fuzzing-duration: 10s
59+
## Set to true to print output of the `cifuzz run` command as JSON.
60+
#print-json: true
61+
62+
## Set to true to disable desktop notifications.
63+
#no-notifications: true
64+
65+
## Set style for command output.
66+
## Valid values: "pretty", "plain"
67+
#style: plain
68+
build-file: cifuzz-spark/CMakeLists.txt
69+
#llm-hint-files:
70+
# - cifuzz-spark/hints.txt
971

1072
candidate-excludes:
11-
- "**/*_test.*"
12-
- "test*/**"
73+
- "**/*_test.*"
74+
- "test*/**"

fuzz-tests/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)