enhanced build script, added script that starts fuzz testing using afl and one to test coverage

This commit is contained in:
Francesco Cozzuto
2022-04-15 18:54:39 +02:00
parent ab3848c8cc
commit e60dfbd92a
4 changed files with 66 additions and 42 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
./build.sh --coverage
mkdir temp
export LLVM_PROFILE_FILE="temp/noja.profraw"
./build/noja run examples/json.noja
llvm-profdata merge -sparse temp/noja.profraw -o temp/noja.profdata
llvm-cov show ./build/noja -instr-profile=temp/noja.profdata >> build/coverage.txt
llvm-cov export ./build/noja -instr-profile=temp/noja.profdata >> build/coverage.json
rm -rf temp