From 42d037bdbaae6b664dc50f4bd77f3fe48808adb1 Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Thu, 15 Oct 2020 10:32:49 -0400 Subject: [PATCH] Add libregression build target, also fix make clean and .gitignore --- tests/fuzz/.gitignore | 4 ++++ tests/fuzz/Makefile | 10 ++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/fuzz/.gitignore b/tests/fuzz/.gitignore index b6fc6e506..aab4760f5 100644 --- a/tests/fuzz/.gitignore +++ b/tests/fuzz/.gitignore @@ -13,7 +13,11 @@ simple_round_trip stream_decompress stream_round_trip zstd_frame_info +decompress_dstSize_tooSmall +fse_read_ncount fuzz-*.log +rt_lib_* +d_lib_* # misc trace diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile index d88fae9c3..c88a60a33 100644 --- a/tests/fuzz/Makefile +++ b/tests/fuzz/Makefile @@ -99,7 +99,7 @@ FUZZ_TARGETS := \ decompress_dstSize_tooSmall \ fse_read_ncount -all: $(FUZZ_TARGETS) +all: libregression.a $(FUZZ_TARGETS) rt_lib_common_%.o: $(ZSTDDIR)/common/%.c $(CC) $(FUZZ_CPPFLAGS) $(FUZZ_CFLAGS) $(FUZZ_ROUND_TRIP_FLAGS) $< -c -o $@ @@ -209,12 +209,10 @@ regressiontest: corpora $(PYTHON) ./fuzz.py regression all clean: - @$(RM) *.a *.o - @$(RM) simple_round_trip stream_round_trip simple_decompress \ - stream_decompress block_decompress block_round_trip \ - simple_compress dictionary_round_trip dictionary_decompress \ - zstd_frame_info + @$(RM) *.a *.o $(FUZZ_TARGETS) + @echo Cleaning completed cleanall: @$(RM) -r Fuzzer @$(RM) -r corpora + @echo Cleaning completed -- 2.47.2