Skip to content

Commit

Permalink
feat: add fuzzing core-data dockerfile and script
Browse files Browse the repository at this point in the history
Closes: issue #4568
Signed-off-by: Valina Li <[email protected]>
  • Loading branch information
vli11 committed May 16, 2023
1 parent 76d4941 commit 832011d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ snap/.snapcraft/*
squashfs-root/

# result files
fuzz_result/*
fuzz_results/*
3 changes: 2 additions & 1 deletion Dockerfile.fuzz
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine as builder

RUN apk add --no-cache python3 py3-pip bash

RUN git clone https://github.com/microsoft/restler-fuzzer.git
RUN wget https://github.com/microsoft/restler-fuzzer/archive/refs/tags/v9.2.0.tar.gz
RUN tar -xvf v9.2.0.tar.gz && mv restler-fuzzer-9.2.0 restler-fuzzer

RUN cd restler-fuzzer; mkdir -p restler_bin
WORKDIR /restler-fuzzer
Expand Down
2 changes: 1 addition & 1 deletion fuzzing_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ echo "--run fuzz-lean"

echo "--copy result logs into $EDGEX_PROJECT_NAME"
mkdir -p /fuzz_result/$EDGEX_PROJECT_NAME
cp -r ./Test/RestlerResults/ /fuzz_result/$EDGEX_PROJECT_NAME/
cp -r ./Test/RestlerResults/ /fuzz_results/$EDGEX_PROJECT_NAME/

0 comments on commit 832011d

Please sign in to comment.