github.com/decred/dcrlnd@v0.7.6/scripts/run_fuzzers.sh (about)

     1  #!/bin/bash
     2  
     3  # This script builds and runs the fuzzers.
     4  go get -u github.com/dvyukov/go-fuzz/...
     5  
     6  # Get the seeds from the repo.
     7  git clone https://github.com/Crypt-iQ/lnd_fuzz_seeds
     8  
     9  # Change to the fuzz/lnwire directory.
    10  cd fuzz/lnwire
    11  
    12  # Build the fuzzers.
    13  find * -maxdepth 1 -regex '[A-Za-z0-9\-_.]'* -not -name fuzz_utils.go | sed 's/\.go$//1' | xargs -I % sh -c '$GOPATH/bin/go-fuzz-build -func Fuzz_% -o lnwire-%-fuzz.zip github.com/lightningnetwork/lnd/fuzz/lnwire'
    14  
    15  # Run the fuzzers with the seeds.
    16