Skip to content

Commit

Permalink
Merge pull request #330 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 856e75d + fe3cee7 commit 78b51f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 83 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/image-reflector-controller/
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh
ENV SRC=$GOPATH/src/github.com/fluxcd/image-reflector-controller
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
80 changes: 0 additions & 80 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 78b51f7

Please sign in to comment.