]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
force compression during tests
authorYann Collet <cyan@fb.com>
Thu, 17 Oct 2019 20:01:18 +0000 (13:01 -0700)
committerYann Collet <cyan@fb.com>
Thu, 17 Oct 2019 20:15:56 +0000 (13:15 -0700)
to erase potentially remaining artifacts from previous runs

doc/educational_decoder/Makefile

index b2ed9f33d54d88988db6309aa2a4455f79afeccf..a7dc213071c1da3195ddd4c2d384196cdc7028e1 100644 (file)
@@ -29,17 +29,17 @@ harness: $(HARNESS_FILES)
        $(CC) $(FLAGS) $^ -o $@
 
 clean:
-       @$(RM) -f harness
+       @$(RM) harness
        @$(RM) -rf harness.dSYM
 
 test: harness
        #
        # Testing single-file decompression with educational decoder
        #
-       @$(ZSTD) README.md -o tmp.zst
+       @$(ZSTD) -f README.md -o tmp.zst
        @./harness tmp.zst tmp
        @$(DIFF) -s tmp README.md
-       @$(RM) -f tmp*
+       @$(RM) tmp*
        #
        # Testing dictionary decompression with education decoder
        #
@@ -47,8 +47,8 @@ test: harness
        @$(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
-       @$(ZSTD) -D dictionary README.md -o tmp.zst
+       @$(ZSTD) -f README.md -D dictionary -o tmp.zst
        @./harness tmp.zst tmp dictionary
        @$(DIFF) -s tmp README.md
-       @$(RM) -f tmp* dictionary
+       @$(RM) tmp* dictionary
        @$(MAKE) clean