mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-12 08:26:46 +00:00
29 lines
602 B
Bash
Executable File
29 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
root=$(cd $(dirname "$0")/.. && pwd)
|
|
|
|
if command -v echidna; then
|
|
fuzz () {
|
|
echidna ${root} \
|
|
--config ${root}/fuzzing/echidna.yaml \
|
|
--corpus-dir ${root}/fuzzing/corpus \
|
|
--crytic-args --ignore-compile \
|
|
--contract $1
|
|
}
|
|
else
|
|
fuzz () {
|
|
docker run \
|
|
--rm \
|
|
-v ${root}:/src ghcr.io/crytic/echidna/echidna \
|
|
bash -c \
|
|
"cd /src && echidna . \
|
|
--config fuzzing/echidna.yaml \
|
|
--corpus-dir fuzzing/corpus \
|
|
--crytic-args --ignore-compile \
|
|
--contract $1"
|
|
}
|
|
fi
|
|
|
|
fuzz FuzzMarketplace
|