Skip to content

Commit

Permalink
Merge pull request #436 from pjbgf/improv-fuzz
Browse files Browse the repository at this point in the history
fuzz: Use build script from upstream
  • Loading branch information
stefanprodan authored Dec 15, 2022
2 parents 171df06 + 68ea010 commit f9340b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 89 deletions.
7 changes: 5 additions & 2 deletions tests/fuzz/Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM gcr.io/oss-fuzz-base/base-builder-go

COPY ./ $GOPATH/src/github.com/fluxcd/pkg/
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh
ENV SRC=$GOPATH/src/github.com/fluxcd/pkg
ENV FLUX_CI=true

COPY ./ $SRC
RUN wget https://raw.githubusercontent.com/google/oss-fuzz/master/projects/fluxcd/build.sh -O $SRC/build.sh

WORKDIR $SRC
86 changes: 0 additions & 86 deletions tests/fuzz/oss_fuzz_build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/fuzz/oss_fuzz_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
set -euxo pipefail

# run each fuzzer once to ensure they are working properly
find /out -type f -name "fuzz*" -exec echo {} -runs=1 \; | bash -e
find /out -type f -iname "fuzz*" -exec echo {} -runs=1 \; | bash -e

0 comments on commit f9340b5

Please sign in to comment.