libxlsxwriter/dev/fuzzing/build.sh
Arthur Chan 9fa72e24cd oss-fuzz: Add unit test build
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
2025-12-22 20:15:36 +00:00

11 lines
334 B
Bash
Executable file

cd $SRC/libxlsxwriter
printenv
mkdir -p build
cmake -S . -B build -DBUILD_FUZZERS=ON -DBUILD_TESTS=ON && cmake --build build --target install
# Build the corpus using the existing xlsx files in the source
mkdir -p corpus
find $SRC/libxlsxwriter -name "*.xlsx" -exec cp {} corpus \;
zip -q $OUT/xlsx_fuzzer_seed_corpus.zip corpus/*