force compression during tests

to erase potentially remaining artifacts from previous runs
This commit is contained in:
Yann Collet
2019-10-17 13:15:56 -07:00
parent a71256a2ee
commit 1a18f1484f
+5 -5
View File
@@ -29,17 +29,17 @@ harness: $(HARNESS_FILES)
$(CC) $(FLAGS) $^ -o $@ $(CC) $(FLAGS) $^ -o $@
clean: clean:
@$(RM) -f harness @$(RM) harness
@$(RM) -rf harness.dSYM @$(RM) -rf harness.dSYM
test: harness test: harness
# #
# Testing single-file decompression with educational decoder # Testing single-file decompression with educational decoder
# #
@$(ZSTD) README.md -o tmp.zst @$(ZSTD) -f README.md -o tmp.zst
@./harness tmp.zst tmp @./harness tmp.zst tmp
@$(DIFF) -s tmp README.md @$(DIFF) -s tmp README.md
@$(RM) -f tmp* @$(RM) tmp*
# #
# Testing dictionary decompression with education decoder # Testing dictionary decompression with education decoder
# #
@@ -47,8 +47,8 @@ test: harness
@$(ZSTD) --train harness.c zstd_decompress.c zstd_decompress.h README.md \ @$(ZSTD) --train harness.c zstd_decompress.c zstd_decompress.h README.md \
harness.c zstd_decompress.c zstd_decompress.h README.md \ harness.c zstd_decompress.c zstd_decompress.h README.md \
harness.c zstd_decompress.c zstd_decompress.h README.md harness.c zstd_decompress.c zstd_decompress.h README.md
@$(ZSTD) -D dictionary README.md -o tmp.zst @$(ZSTD) -f README.md -D dictionary -o tmp.zst
@./harness tmp.zst tmp dictionary @./harness tmp.zst tmp dictionary
@$(DIFF) -s tmp README.md @$(DIFF) -s tmp README.md
@$(RM) -f tmp* dictionary @$(RM) tmp* dictionary
@$(MAKE) clean @$(MAKE) clean