summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-11 15:21:32 +0700
committerhathach <[email protected]>2024-10-11 15:31:49 +0700
commitd997f0071ea5d2d07e340d183fffb97e09526773 (patch)
treed796bbf0db3b860f506554029f4fe019ed892936 /.pre-commit-config.yaml
parent92602b9de3675c2d3e240bcd0838082e1a07b13b (diff)
change dcd_init() to take rhport struct
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bba217cc9..21da285c1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,3 +42,18 @@ repos:
pass_filenames: false
types_or: [c, header]
language: system
+
+ - id: build-fuzzer
+ name: build-fuzzer
+ files: ^(src/|test/fuzz/)
+ language: system
+ types_or: [c, header]
+ entry: |
+ export CC=clang
+ export CXX=clang++
+ fuzz_harness=$(ls -d test/fuzz/device/*/)
+ for h in $fuzz_harness
+ do
+ make -C $h get-deps
+ make -C $h all
+ done