Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 538 Bytes

HACKING.md

File metadata and controls

37 lines (27 loc) · 538 Bytes

Setup

opam switch create . ocaml-variants.5.0.0+options --deps-only -t

Build

tests

dune runtest -w

test cli

dune build util/cli.exe -w

Fuzz

Add -afl-instrument to util/dune ocamlopt_flags

docker build . -t szxx:latest

docker run -it --rm -v "$(pwd)/test/files:/app/files" szxx:latest

Then in the container:

mkdir -p fuzz/input
mkdir -p fuzz/output
cp files/formatting.xlsx fuzz/input/
cd fuzz
/usr/bin/afl-fuzz -i input -o output -- ../cli.exe count @@