Skip to content

Commit ab2f1e2

Browse files
committed
add fuzz testing
1 parent c30e78b commit ab2f1e2

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/temp_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,33 @@ jobs:
1414
permissions:
1515
contents: read
1616
packages: write
17+
18+
fuzz-testing:
19+
needs: call-dev-workflow
20+
runs-on: ubuntu-22.04-arm
21+
container:
22+
image: datadog/docker-library:dd-trace-cpp-ci-23768e9-arm64
23+
env:
24+
DURATION_SEC: 300 # 5min
25+
steps:
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
- name: Configure
28+
run: bin/with-toolchain llvm cmake . -B .build -DCMAKE_BUILD_TYPE=Debug -DDD_TRACE_BUILD_FUZZERS=1 -DDD_TRACE_ENABLE_SANITIZE=1 -DDD_TRACE_TRANSPORT=none
29+
- name: Build
30+
run: cmake --build .build -j --target dd_trace_cpp-fuzzers
31+
- name: Run W3C propagation fuzzer
32+
uses: ./.github/actions/fuzzer
33+
with:
34+
binary: ./.build/fuzz/w3c-propagation/w3c-propagation-fuzz
35+
duration_seconds: ${DURATION_SEC}
36+
- name: Run Base64 fuzzer
37+
uses: ./.github/actions/fuzzer
38+
with:
39+
binary: ./.build/fuzz/base64/base64-fuzz
40+
duration_seconds: ${DURATION_SEC}
41+
- name: Run Remote Configuration fuzzer
42+
uses: ./.github/actions/fuzzer
43+
with:
44+
binary: ./.build/fuzz/remote-configuration/remote-config-fuzz
45+
duration_seconds: ${DURATION_SEC}
46+

0 commit comments

Comments
 (0)