changed debian/source/format to native

This commit is contained in:
openKylinBot 2022-05-14 01:33:44 +08:00
parent 7b08b6f600
commit c2c896d983
9 changed files with 1 additions and 962 deletions

View File

@ -1,18 +0,0 @@
From: Kevin Murray <spam@kdmurray.id.au>
Date: Mon, 14 Nov 2016 11:54:32 +1100
Subject: Use bash for test script portablitity
---
tests/playTests.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/playTests.sh b/tests/playTests.sh
index c09e0c2..4aad8e1 100755
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
set -e

View File

@ -1,56 +0,0 @@
From: Sascha Steinbiss <satta@debian.org>
Date: Sat, 14 May 2022 01:33:43 +0800
Subject: Do not build zlibWrapper examples against embedded code copies.
---
zlibWrapper/Makefile | 10 +++++-----
zlibWrapper/examples/example.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/zlibWrapper/Makefile b/zlibWrapper/Makefile
index 6addb74..02d65d5 100644
--- a/zlibWrapper/Makefile
+++ b/zlibWrapper/Makefile
@@ -13,7 +13,7 @@ ZLIB_PATH ?= .
ZSTDLIBDIR = ../lib
ZSTDLIBRARY = $(ZSTDLIBDIR)/libzstd.a
ZLIBWRAPPER_PATH = .
-GZFILES = gzclose.o gzlib.o gzread.o gzwrite.o
+#GZFILES = gzclose.o gzlib.o gzread.o gzwrite.o
EXAMPLE_PATH = examples
PROGRAMS_PATH = ../programs
TEST_FILE = ../doc/zstd_compression_format.md
@@ -77,16 +77,16 @@ valgrindTest: clean example fitblk example_zstd fitblk_zstd zwrapbench
#.c.o:
# $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
-minigzip: $(EXAMPLE_PATH)/minigzip.o zstd_zlibwrapper.o $(GZFILES) $(ZSTDLIBRARY)
+minigzip: $(EXAMPLE_PATH)/minigzip.o zstd_zlibwrapper.o $(ZSTDLIBRARY)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ $(ZSTDLIBRARY) $(ZLIB_LIBRARY) -o $@
-minigzip_zstd: $(EXAMPLE_PATH)/minigzip.o zstdTurnedOn_zlibwrapper.o $(GZFILES) $(ZSTDLIBRARY)
+minigzip_zstd: $(EXAMPLE_PATH)/minigzip.o zstdTurnedOn_zlibwrapper.o $(ZSTDLIBRARY)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ $(ZSTDLIBRARY) $(ZLIB_LIBRARY) -o $@
-example: $(EXAMPLE_PATH)/example.o zstd_zlibwrapper.o $(GZFILES) $(ZSTDLIBRARY)
+example: $(EXAMPLE_PATH)/example.o zstd_zlibwrapper.o $(ZSTDLIBRARY)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ $(ZLIB_LIBRARY) -o $@
-example_zstd: $(EXAMPLE_PATH)/example.o zstdTurnedOn_zlibwrapper.o $(GZFILES) $(ZSTDLIBRARY)
+example_zstd: $(EXAMPLE_PATH)/example.o zstdTurnedOn_zlibwrapper.o $(ZSTDLIBRARY)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ $(ZLIB_LIBRARY) -o $@
fitblk: $(EXAMPLE_PATH)/fitblk.o zstd_zlibwrapper.o $(ZSTDLIBRARY)
diff --git a/zlibWrapper/examples/example.c b/zlibWrapper/examples/example.c
index 9000f7a..0299b20 100644
--- a/zlibWrapper/examples/example.c
+++ b/zlibWrapper/examples/example.c
@@ -27,7 +27,7 @@
/* @(#) $Id$ */
-#include "zstd_zlibwrapper.h"
+#include "zlib.h"
#include <stdio.h>
#ifdef STDC

View File

@ -1,46 +0,0 @@
From: Alex Mestiashvili <mestia@debian.org>
Date: Sat, 14 May 2022 01:33:43 +0800
Subject: Skip memory heavy tests causing FTBFS on mips(el) and hurd buildds
---
tests/playTests.sh | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/tests/playTests.sh b/tests/playTests.sh
index 4aad8e1..d2bd58d 100755
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -1103,8 +1103,13 @@ roundTripTest -g18000019 -P96 19
roundTripTest -g5000000000 -P99 1
roundTripTest -g1700000000 -P0 "1 --zstd=strategy=6" # ensure btlazy2 can survive an overflow rescale
-fileRoundTripTest -g4193M -P99 1
-
+DEBARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+if [ "$DEBARCH" != 'hurd-i386' ]
+then
+ fileRoundTripTest -g4193M -P99 1
+else
+ println "\n**** skip memory greedy tests on $DEBARCH **** "
+fi
println "\n===> zstd long, long distance matching round-trip tests "
roundTripTest -g270000000 "1 --single-thread --long"
@@ -1121,9 +1126,14 @@ then
println "\n===> zstdmt long round-trip tests "
roundTripTest -g80000000 -P99 "19 -T2" " "
roundTripTest -g5000000000 -P99 "1 -T2" " "
- roundTripTest -g500000000 -P97 "1 -T999" " "
- fileRoundTripTest -g4103M -P98 " -T0" " "
- roundTripTest -g400000000 -P97 "1 --long=24 -T2" " "
+ if [ "$DEBARCH" != 'mips' -a "$DEBARCH" != 'mipsel' -a "$DEBARCH" != 'hurd-i386' ]
+ then
+ roundTripTest -g500000000 -P97 "1 -T999" " "
+ fileRoundTripTest -g4103M -P98 " -T0" " "
+ roundTripTest -g400000000 -P97 "1 --long=24 -T2" " "
+ else
+ println "\n**** skip memory greedy tests on $DEBARCH **** "
+ fi
# Exposes the bug in https://github.com/facebook/zstd/pull/1678
# This test fails on 4 different travis builds at the time of writing
# because it needs to allocate 8 GB of memory.

View File

@ -1,23 +0,0 @@
From: Chris Lamb <lamby@debian.org>
Date: Sat, 14 May 2022 01:33:44 +0800
Subject: Make the build reproducible
Last-Update: 2018-05-04
Applied-Upstream: https://github.com/facebook/zstd/commit/ef1abd3c071ce42a457404ee2bca6d5bebb87f62
---
contrib/pzstd/Options.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/pzstd/Options.cpp b/contrib/pzstd/Options.cpp
index 2123f88..5b8b269 100644
--- a/contrib/pzstd/Options.cpp
+++ b/contrib/pzstd/Options.cpp
@@ -77,7 +77,7 @@ void usage() {
std::fprintf(stderr, " -p, --processes # : number of threads to use for (de)compression (default:<numcpus>)\n");
std::fprintf(stderr, "ZSTD options:\n");
- std::fprintf(stderr, " -# : # compression level (1-%d, default:%d)\n", kMaxNonUltraCompressionLevel, kDefaultCompressionLevel);
+ std::fprintf(stderr, " -# : # compression level (1-%d, default:<numcpus>)\n", kMaxNonUltraCompressionLevel);
std::fprintf(stderr, " -d, --decompress : decompression\n");
std::fprintf(stderr, " -o file : result stored into `file` (only if 1 input file)\n");
std::fprintf(stderr, " -f, --force : overwrite output without prompting, (de)compress links\n");

View File

@ -1,40 +0,0 @@
From: Alex Mestiashvili <mestia@debian.org>
Date: Sat, 14 May 2022 01:33:44 +0800
Subject: Skip-dev-random-tests-on-hurd
---
tests/playTests.sh | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/tests/playTests.sh b/tests/playTests.sh
index d2bd58d..7df4180 100755
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -251,14 +251,19 @@ $ZSTD -f --rm tmp
test ! -f tmp # tmp should no longer be present
$ZSTD -f -d --rm tmp.zst
test ! -f tmp.zst # tmp.zst should no longer be present
-println "test : should quietly not remove non-regular file"
-println hello > tmp
-$ZSTD tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID"
-grep -v "Refusing to remove non-regular file" tmplog
-rm -f tmplog
-$ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
-println "test : --rm on stdin"
-println a | $ZSTD --rm > $INTOVOID # --rm should remain silent
+if [ "$(dpkg-architecture -qDEB_HOST_ARCH)" != 'hurd-i386' ]
+then
+ println "test : should quietly not remove non-regular file"
+ println hello > tmp
+ $ZSTD tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID"
+ grep -v "Refusing to remove non-regular file" tmplog
+ rm -f tmplog
+ $ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
+ println "test : --rm on stdin"
+ println a | $ZSTD --rm > $INTOVOID # --rm should remain silent
+else
+ println "\n**** This test on $DEBARCH fails with \"Computer bought the farm\" **** "
+fi
rm tmp
$ZSTD -f tmp && die "tmp not present : should have failed"
test ! -f tmp.zst # tmp.zst should not be created

View File

@ -1,59 +0,0 @@
From: Justin Aplin <japlin@gmail.com>
Date: Sat, 14 May 2022 01:33:44 +0800
Subject: Alias renamed API symbols
Add aliases for two renamed but unchanged symbols to avoid a useless
dependency. Add compiler warnings when compiling against the old symbols.
---
lib/compress/zstd_compress.c | 8 ++++++++
lib/zstd.h | 4 ++++
2 files changed, 12 insertions(+)
diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c
index 35346b9..c271a81 100644
--- a/lib/compress/zstd_compress.c
+++ b/lib/compress/zstd_compress.c
@@ -518,6 +518,10 @@ size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value)
return ZSTD_CCtxParams_setParameter(&cctx->requestedParams, param, value);
}
+size_t ZSTD_CCtxParam_setParameter(
+ ZSTD_CCtx_params* CCtxParams, ZSTD_cParameter param, int value)
+ __attribute__((alias("ZSTD_CCtxParams_setParameter")));
+
size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* CCtxParams,
ZSTD_cParameter param, int value)
{
@@ -706,6 +710,10 @@ size_t ZSTD_CCtx_getParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int* value
return ZSTD_CCtxParams_getParameter(&cctx->requestedParams, param, value);
}
+size_t ZSTD_CCtxParam_getParameter(
+ ZSTD_CCtx_params* CCtxParams, ZSTD_cParameter param, int* value)
+ __attribute__((alias("ZSTD_CCtxParams_getParameter")));
+
size_t ZSTD_CCtxParams_getParameter(
ZSTD_CCtx_params* CCtxParams, ZSTD_cParameter param, int* value)
{
diff --git a/lib/zstd.h b/lib/zstd.h
index 72080ea..1c0cb67 100644
--- a/lib/zstd.h
+++ b/lib/zstd.h
@@ -1560,6 +1560,8 @@ ZSTDLIB_API size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, Z
* @result : 0, or an error code (which can be tested with ZSTD_isError()).
*/
ZSTDLIB_API size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int value);
+ZSTDLIB_API size_t ZSTD_CCtxParam_setParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int value)
+ __attribute__ ((deprecated ("Deprecated in 1.4.0, use ZSTD_CCtxParams_setParameter instead")));
/*! ZSTD_CCtxParams_getParameter() :
* Similar to ZSTD_CCtx_getParameter.
@@ -1567,6 +1569,8 @@ ZSTDLIB_API size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* params, ZSTD_c
* @result : 0, or an error code (which can be tested with ZSTD_isError()).
*/
ZSTDLIB_API size_t ZSTD_CCtxParams_getParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int* value);
+ZSTDLIB_API size_t ZSTD_CCtxParam_getParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int* value)
+ __attribute__ ((deprecated ("Deprecated in 1.4.0, use ZSTD_CCtxParams_getParameter instead")));
/*! ZSTD_CCtx_setParametersUsingCCtxParams() :
* Apply a set of ZSTD_CCtx_params to the compression context.

View File

@ -1,712 +0,0 @@
From: Justin Aplin <japlin@gmail.com>
Date: Sat, 14 May 2022 01:33:44 +0800
Subject: blhc workarounds
Builds zstd-small (not included in any packages) with
hardening flags.
Provides verbosity to blhc by removing most @s from Makefiles.
Slightly changes some status-related @echos to prevent false-
positive "Nonverbose Build" errors from blhc.
---
Makefile | 40 +++++++-------
contrib/gen_html/Makefile | 4 +-
contrib/linux-kernel/test/Makefile | 14 ++---
contrib/pzstd/Makefile | 10 ++--
contrib/seekable_format/examples/Makefile | 4 +-
doc/educational_decoder/Makefile | 24 ++++-----
examples/Makefile | 18 +++----
lib/Makefile | 90 +++++++++++++++----------------
programs/Makefile | 64 +++++++++++-----------
tests/Makefile | 22 ++++----
tests/fuzz/Makefile | 12 ++---
tests/gzip/Makefile | 12 ++---
zlibWrapper/Makefile | 6 +--
13 files changed, 160 insertions(+), 160 deletions(-)
diff --git a/Makefile b/Makefile
index efb555c..dcd2661 100644
--- a/Makefile
+++ b/Makefile
@@ -46,16 +46,16 @@ all32:
.PHONY: lib lib-release libzstd.a
lib lib-release :
- @$(MAKE) -C $(ZSTDDIR) $@
+ $(MAKE) -C $(ZSTDDIR) $@
.PHONY: zstd zstd-release
zstd zstd-release:
- @$(MAKE) -C $(PRGDIR) $@
+ $(MAKE) -C $(PRGDIR) $@
cp $(PRGDIR)/zstd$(EXT) .
.PHONY: zstdmt
zstdmt:
- @$(MAKE) -C $(PRGDIR) $@
+ $(MAKE) -C $(PRGDIR) $@
cp $(PRGDIR)/zstd$(EXT) ./zstdmt$(EXT)
.PHONY: zlibwrapper
@@ -109,18 +109,18 @@ cleanTabs:
.PHONY: clean
clean:
- @$(MAKE) -C $(ZSTDDIR) $@ > $(VOID)
- @$(MAKE) -C $(PRGDIR) $@ > $(VOID)
- @$(MAKE) -C $(TESTDIR) $@ > $(VOID)
- @$(MAKE) -C $(ZWRAPDIR) $@ > $(VOID)
- @$(MAKE) -C examples/ $@ > $(VOID)
- @$(MAKE) -C contrib/gen_html $@ > $(VOID)
- @$(MAKE) -C contrib/pzstd $@ > $(VOID)
- @$(MAKE) -C contrib/seekable_format/examples $@ > $(VOID)
- @$(MAKE) -C contrib/largeNbDicts $@ > $(VOID)
- @$(RM) zstd$(EXT) zstdmt$(EXT) tmp*
- @$(RM) -r lz4
- @echo Cleaning completed
+ $(MAKE) -C $(ZSTDDIR) $@ > $(VOID)
+ $(MAKE) -C $(PRGDIR) $@ > $(VOID)
+ $(MAKE) -C $(TESTDIR) $@ > $(VOID)
+ $(MAKE) -C $(ZWRAPDIR) $@ > $(VOID)
+ $(MAKE) -C examples/ $@ > $(VOID)
+ $(MAKE) -C contrib/gen_html $@ > $(VOID)
+ $(MAKE) -C contrib/pzstd $@ > $(VOID)
+ $(MAKE) -C contrib/seekable_format/examples $@ > $(VOID)
+ $(MAKE) -C contrib/largeNbDicts $@ > $(VOID)
+ $(RM) zstd$(EXT) zstdmt$(EXT) tmp*
+ $(RM) -r lz4
+ @echo "Cleaning completed"
#------------------------------------------------------------------------------
# make install is validated only for Linux, macOS, Hurd and some BSD targets
@@ -143,7 +143,7 @@ EGREP = egrep $(EGREP_OPTIONS)
## list: Print all targets and their descriptions (if provided)
.PHONY: list
list:
- @TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
+ TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
| $(EGREP) -v -e '^[^[:alnum:]]' | sort); \
{ \
@@ -158,13 +158,13 @@ list:
.PHONY: install armtest usan asan uasan
install:
- @$(MAKE) -C $(ZSTDDIR) $@
- @$(MAKE) -C $(PRGDIR) $@
+ $(MAKE) -C $(ZSTDDIR) $@
+ $(MAKE) -C $(PRGDIR) $@
.PHONY: uninstall
uninstall:
- @$(MAKE) -C $(ZSTDDIR) $@
- @$(MAKE) -C $(PRGDIR) $@
+ $(MAKE) -C $(ZSTDDIR) $@
+ $(MAKE) -C $(PRGDIR) $@
.PHONY: travis-install
travis-install:
diff --git a/contrib/gen_html/Makefile b/contrib/gen_html/Makefile
index 425f266..ad9e556 100644
--- a/contrib/gen_html/Makefile
+++ b/contrib/gen_html/Makefile
@@ -47,5 +47,5 @@ manual: gen_html $(ZSTDMANUAL)
.PHONY: clean
clean:
- @$(RM) gen_html$(EXT)
- @echo Cleaning completed
+ $(RM) gen_html$(EXT)
+ @echo "Cleaning completed"
diff --git a/contrib/linux-kernel/test/Makefile b/contrib/linux-kernel/test/Makefile
index 8411462..2d4e276 100644
--- a/contrib/linux-kernel/test/Makefile
+++ b/contrib/linux-kernel/test/Makefile
@@ -26,17 +26,17 @@ XXHashUserlandTest: XXHashUserlandTest.cpp ../lib/xxhash.o ../../../lib/common/x
# Install libfuzzer
libFuzzer.a:
- @$(RM) -rf Fuzzer
- @git clone https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer
- @./Fuzzer/build.sh
+ $(RM) -rf Fuzzer
+ git clone https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer
+ ./Fuzzer/build.sh
# Install googletest
.PHONY: googletest
googletest:
- @$(RM) -rf googletest
- @git clone https://github.com/google/googletest
- @mkdir -p googletest/build
- @cd googletest/build && cmake .. && $(MAKE)
+ $(RM) -rf googletest
+ git clone https://github.com/google/googletest
+ mkdir -p googletest/build
+ cd googletest/build && cmake .. && $(MAKE)
clean:
$(RM) -f *.{o,a} ../lib/zstd/*.{o,a} ../lib/*.o
diff --git a/contrib/pzstd/Makefile b/contrib/pzstd/Makefile
index 8d2b193..f78f07d 100644
--- a/contrib/pzstd/Makefile
+++ b/contrib/pzstd/Makefile
@@ -214,10 +214,10 @@ GTEST_CMAKEFLAGS =
.PHONY: googletest
googletest: PZSTD_CCXXFLAGS += -fPIC
googletest:
- @$(RM) -rf googletest
- @git clone https://github.com/google/googletest
- @mkdir -p googletest/build
- @cd googletest/build && cmake $(GTEST_CMAKEFLAGS) -DCMAKE_CXX_FLAGS="$(ALL_CXXFLAGS)" .. && $(MAKE)
+ $(RM) -rf googletest
+ git clone https://github.com/google/googletest
+ mkdir -p googletest/build
+ cd googletest/build && cmake $(GTEST_CMAKEFLAGS) -DCMAKE_CXX_FLAGS="$(ALL_CXXFLAGS)" .. && $(MAKE)
.PHONY: googletest32
googletest32: PZSTD_CCXXFLAGS += -m32
@@ -234,7 +234,7 @@ clean:
$(RM) -f utils/test/*.o utils/test/*Test$(EXT) utils/test/*.Td utils/test/*.d
$(RM) -f $(PROGDIR)/*.o $(PROGDIR)/*.Td $(PROGDIR)/*.d
$(MAKE) -C $(ZSTDDIR) clean
- @echo Cleaning completed
+ @echo "Cleaning completed"
# Cancel implicit rules
diff --git a/contrib/seekable_format/examples/Makefile b/contrib/seekable_format/examples/Makefile
index 543780f..15e3bd2 100644
--- a/contrib/seekable_format/examples/Makefile
+++ b/contrib/seekable_format/examples/Makefile
@@ -46,8 +46,8 @@ parallel_compression : parallel_compression.c $(SEEKABLE_OBJS)
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@ -pthread
clean:
- @rm -f core *.o tmp* result* *.zst \
+ rm -f core *.o tmp* result* *.zst \
seekable_compression seekable_decompression \
seekable_decompression_mem \
parallel_processing parallel_compression
- @echo Cleaning completed
+ @echo "Cleaning completed"
diff --git a/doc/educational_decoder/Makefile b/doc/educational_decoder/Makefile
index 704f867..3210ecc 100644
--- a/doc/educational_decoder/Makefile
+++ b/doc/educational_decoder/Makefile
@@ -36,27 +36,27 @@ harness: $(HARNESS_FILES)
$(CC) $(FLAGS) $^ -o $@
clean:
- @$(RM) harness
- @$(RM) -rf harness.dSYM # MacOS specific
+ $(RM) harness
+ $(RM) -rf harness.dSYM # MacOS specific
test: harness
#
# Testing single-file decompression with educational decoder
#
- @$(ZSTD) -f README.md -o tmp.zst
- @./harness tmp.zst tmp
- @$(DIFF) -s tmp README.md
- @$(RM) tmp*
+ $(ZSTD) -f README.md -o tmp.zst
+ ./harness tmp.zst tmp
+ $(DIFF) -s tmp README.md
+ $(RM) tmp*
#
# Testing dictionary decompression with education decoder
#
# note : files are presented multiple for training, to reach minimum threshold
- @$(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 \
-o dictionary
- @$(ZSTD) -f README.md -D dictionary -o tmp.zst
- @./harness tmp.zst tmp dictionary
- @$(DIFF) -s tmp README.md
- @$(RM) tmp* dictionary
- @$(MAKE) clean
+ $(ZSTD) -f README.md -D dictionary -o tmp.zst
+ ./harness tmp.zst tmp dictionary
+ $(DIFF) -s tmp README.md
+ $(RM) tmp* dictionary
+ $(MAKE) clean
diff --git a/examples/Makefile b/examples/Makefile
index 65ea8ab..caaca14 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -53,37 +53,37 @@ streaming_memory_usage : streaming_memory_usage.c $(LIB)
$(CC) $(CPPFLAGS) $(CFLAGS) $< $(LIB) $(LDFLAGS) -o $@
clean:
- @rm -f core *.o tmp* result* *.zst \
+ rm -f core *.o tmp* result* *.zst \
simple_compression simple_decompression \
multiple_simple_compression \
dictionary_compression dictionary_decompression \
streaming_compression streaming_decompression \
multiple_streaming_compression streaming_memory_usage
- @echo Cleaning completed
+ @echo "Cleaning completed"
test: all
cp README.md tmp
cp Makefile tmp2
- @echo -- Simple compression tests
+ @echo "-- Simple compression tests"
./simple_compression tmp
./simple_decompression tmp.zst
./multiple_simple_compression *.c
./streaming_decompression tmp.zst > /dev/null
- @echo -- Streaming memory usage
+ @echo "-- Streaming memory usage"
./streaming_memory_usage
- @echo -- Streaming compression tests
+ @echo "-- Streaming compression tests"
./streaming_compression tmp
./streaming_decompression tmp.zst > /dev/null
- @echo -- Edge cases detection
+ @echo "-- Edge cases detection"
! ./streaming_decompression tmp # invalid input, must fail
! ./simple_decompression tmp # invalid input, must fail
touch tmpNull # create 0-size file
./simple_compression tmpNull
./simple_decompression tmpNull.zst # 0-size frame : must work
- @echo -- Multiple streaming tests
+ @echo "-- Multiple streaming tests"
./multiple_streaming_compression *.c
- @echo -- Dictionary compression tests
+ @echo "-- Dictionary compression tests"
./dictionary_compression tmp2 tmp README.md
./dictionary_decompression tmp2.zst tmp.zst README.md
$(RM) tmp* *.zst
- @echo tests completed
+ @echo "tests completed"
diff --git a/lib/Makefile b/lib/Makefile
index 273ceb9..b3d0530 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -150,8 +150,8 @@ all: lib
libzstd.a: ARFLAGS = rcs
libzstd.a: $(ZSTD_OBJ)
- @echo compiling static library
- @$(AR) $(ARFLAGS) $@ $^
+ @echo "==> compiling static library"
+ $(AR) $(ARFLAGS) $@ $^
libzstd.a-mt: CPPFLAGS += -DZSTD_MULTITHREAD
libzstd.a-mt: libzstd.a
@@ -160,7 +160,7 @@ ifneq (,$(filter Windows%,$(OS)))
LIBZSTD = dll\libzstd.dll
$(LIBZSTD): $(ZSTD_FILES)
- @echo compiling dynamic library $(LIBVER)
+ @echo "==> compiling dynamic library $(LIBVER)"
$(CC) $(FLAGS) -DZSTD_DLL_EXPORT=1 -Wl,--out-implib,dll\libzstd.lib -shared $^ -o $@
else
@@ -168,11 +168,11 @@ else
LIBZSTD = libzstd.$(SHARED_EXT_VER)
$(LIBZSTD): LDFLAGS += -shared -fPIC -fvisibility=hidden
$(LIBZSTD): $(ZSTD_FILES)
- @echo compiling dynamic library $(LIBVER)
- @$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
- @echo creating versioned links
- @ln -sf $@ libzstd.$(SHARED_EXT_MAJOR)
- @ln -sf $@ libzstd.$(SHARED_EXT)
+ @echo "==> compiling dynamic library $(LIBVER)"
+ $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
+ @echo "creating versioned links"
+ ln -sf $@ libzstd.$(SHARED_EXT_MAJOR)
+ ln -sf $@ libzstd.$(SHARED_EXT)
endif
@@ -196,16 +196,16 @@ ZSTDMT_FILES = compress/zstdmt_compress.c
ZSTD_NOMT_FILES = $(filter-out $(ZSTDMT_FILES),$(ZSTD_FILES))
libzstd-nomt: LDFLAGS += -shared -fPIC -fvisibility=hidden
libzstd-nomt: $(ZSTD_NOMT_FILES)
- @echo compiling single-thread dynamic library $(LIBVER)
- @echo files : $(ZSTD_NOMT_FILES)
- @$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
+ @echo "==> compiling single-thread dynamic library $(LIBVER)"
+ @echo "files : $(ZSTD_NOMT_FILES)"
+ $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
clean:
- @$(RM) -r *.dSYM # macOS-specific
- @$(RM) core *.o *.a *.gcda *.$(SHARED_EXT) *.$(SHARED_EXT).* libzstd.pc
- @$(RM) dll/libzstd.dll dll/libzstd.lib libzstd-nomt*
- @$(RM) common/*.o compress/*.o decompress/*.o dictBuilder/*.o legacy/*.o deprecated/*.o
- @echo Cleaning library completed
+ $(RM) -r *.dSYM # macOS-specific
+ $(RM) core *.o *.a *.gcda *.$(SHARED_EXT) *.$(SHARED_EXT).* libzstd.pc
+ $(RM) dll/libzstd.dll dll/libzstd.lib libzstd-nomt*
+ $(RM) common/*.o compress/*.o decompress/*.o dictBuilder/*.o legacy/*.o deprecated/*.o
+ @echo "Cleaning library completed"
#-----------------------------------------------------------------------------
# make install is validated only for Linux, macOS, BSD, Hurd and Solaris targets
@@ -242,48 +242,48 @@ INSTALL_DATA ?= $(INSTALL) -m 644
libzstd.pc:
libzstd.pc: libzstd.pc.in
- @echo creating pkgconfig
- @sed -e 's|@PREFIX@|$(PREFIX)|' \
+ @echo "creating pkgconfig"
+ sed -e 's|@PREFIX@|$(PREFIX)|' \
-e 's|@VERSION@|$(VERSION)|' \
$< >$@
install: install-pc install-static install-shared install-includes
- @echo zstd static and shared library installed
+ @echo "zstd static and shared library installed"
install-pc: libzstd.pc
- @$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/
- @$(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/
+ $(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/
+ $(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/
install-static: libzstd.a
- @echo Installing static library
- @$(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
- @$(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
+ @echo "Installing static library"
+ $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
+ $(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
install-shared: libzstd
- @echo Installing shared library
- @$(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
- @$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
- @ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
- @ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
+ @echo "Installing shared library"
+ $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
+ $(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
+ ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
+ ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
install-includes:
- @echo Installing includes
- @$(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR)/
- @$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR)
- @$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR)
- @$(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings
- @$(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)
+ @echo "Installing includes"
+ $(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR)/
+ $(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR)
+ $(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR)
+ $(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings
+ $(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)
uninstall:
- @$(RM) $(DESTDIR)$(LIBDIR)/libzstd.a
- @$(RM) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
- @$(RM) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
- @$(RM) $(DESTDIR)$(LIBDIR)/$(LIBZSTD)
- @$(RM) $(DESTDIR)$(PKGCONFIGDIR)/libzstd.pc
- @$(RM) $(DESTDIR)$(INCLUDEDIR)/zstd.h
- @$(RM) $(DESTDIR)$(INCLUDEDIR)/zstd_errors.h
- @$(RM) $(DESTDIR)$(INCLUDEDIR)/zbuff.h # Deprecated streaming functions
- @$(RM) $(DESTDIR)$(INCLUDEDIR)/zdict.h
- @echo zstd libraries successfully uninstalled
+ $(RM) $(DESTDIR)$(LIBDIR)/libzstd.a
+ $(RM) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
+ $(RM) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
+ $(RM) $(DESTDIR)$(LIBDIR)/$(LIBZSTD)
+ $(RM) $(DESTDIR)$(PKGCONFIGDIR)/libzstd.pc
+ $(RM) $(DESTDIR)$(INCLUDEDIR)/zstd.h
+ $(RM) $(DESTDIR)$(INCLUDEDIR)/zstd_errors.h
+ $(RM) $(DESTDIR)$(INCLUDEDIR)/zbuff.h # Deprecated streaming functions
+ $(RM) $(DESTDIR)$(INCLUDEDIR)/zdict.h
+ @echo "zstd libraries successfully uninstalled"
endif
diff --git a/programs/Makefile b/programs/Makefile
index 64dcae0..15a0291 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -221,7 +221,7 @@ zstd-pgo :
$(MAKE) zstd MOREFLAGS=-fprofile-use
# minimal target, with only zstd compression and decompression. no bench. no legacy.
-zstd-small: CFLAGS = -Os -s
+zstd-small: CFLAGS = -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Os -s
zstd-frugal zstd-small: $(ZSTD_FILES) zstdcli.c util.c timefn.c fileio.c
$(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODICT $^ -o $@$(EXT)
@@ -241,12 +241,12 @@ generate_res:
.PHONY: clean
clean:
$(MAKE) -C $(ZSTDDIR) clean
- @$(RM) $(ZSTDDIR)/decompress/*.o $(ZSTDDIR)/decompress/zstd_decompress.gcda
- @$(RM) core *.o tmp* result* *.gcda dictionary *.zst \
+ $(RM) $(ZSTDDIR)/decompress/*.o $(ZSTDDIR)/decompress/zstd_decompress.gcda
+ $(RM) core *.o tmp* result* *.gcda dictionary *.zst \
zstd$(EXT) zstd32$(EXT) zstd-compress$(EXT) zstd-decompress$(EXT) \
zstd-small$(EXT) zstd-frugal$(EXT) zstd-nolegacy$(EXT) zstd4$(EXT) \
*.gcda default.profraw have_zlib$(EXT)
- @echo Cleaning completed
+ @echo "Cleaning completed"
MD2ROFF = ronn
MD2ROFF_FLAGS = --roff --warnings --manual="User Commands" --organization="zstd $(ZSTD_VERSION)"
@@ -293,7 +293,7 @@ EGREP = egrep $(EGREP_OPTIONS)
## list: Print all targets and their descriptions (if provided)
.PHONY: list
list:
- @TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
+ TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
| $(EGREP) -v -e '^[^[:alnum:]]' | sort); \
{ \
@@ -340,35 +340,35 @@ INSTALL_MAN ?= $(INSTALL_DATA)
.PHONY: install
install: zstd
- @echo Installing binaries
- @$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MAN1DIR)/
- @$(INSTALL_PROGRAM) zstd $(DESTDIR)$(BINDIR)/zstd
- @ln -sf zstd $(DESTDIR)$(BINDIR)/zstdcat
- @ln -sf zstd $(DESTDIR)$(BINDIR)/unzstd
- @ln -sf zstd $(DESTDIR)$(BINDIR)/zstdmt
- @$(INSTALL_SCRIPT) zstdless $(DESTDIR)$(BINDIR)/zstdless
- @$(INSTALL_SCRIPT) zstdgrep $(DESTDIR)$(BINDIR)/zstdgrep
- @echo Installing man pages
- @$(INSTALL_MAN) zstd.1 $(DESTDIR)$(MAN1DIR)/zstd.1
- @ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/zstdcat.1
- @ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/unzstd.1
- @$(INSTALL_MAN) zstdgrep.1 $(DESTDIR)$(MAN1DIR)/zstdgrep.1
- @$(INSTALL_MAN) zstdless.1 $(DESTDIR)$(MAN1DIR)/zstdless.1
- @echo zstd installation completed
+ @echo "Installing binaries"
+ $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MAN1DIR)/
+ $(INSTALL_PROGRAM) zstd $(DESTDIR)$(BINDIR)/zstd
+ ln -sf zstd $(DESTDIR)$(BINDIR)/zstdcat
+ ln -sf zstd $(DESTDIR)$(BINDIR)/unzstd
+ ln -sf zstd $(DESTDIR)$(BINDIR)/zstdmt
+ $(INSTALL_SCRIPT) zstdless $(DESTDIR)$(BINDIR)/zstdless
+ $(INSTALL_SCRIPT) zstdgrep $(DESTDIR)$(BINDIR)/zstdgrep
+ @echo "Installing man pages"
+ $(INSTALL_MAN) zstd.1 $(DESTDIR)$(MAN1DIR)/zstd.1
+ ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/zstdcat.1
+ ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/unzstd.1
+ $(INSTALL_MAN) zstdgrep.1 $(DESTDIR)$(MAN1DIR)/zstdgrep.1
+ $(INSTALL_MAN) zstdless.1 $(DESTDIR)$(MAN1DIR)/zstdless.1
+ @echo "zstd installation completed"
.PHONY: uninstall
uninstall:
- @$(RM) $(DESTDIR)$(BINDIR)/zstdgrep
- @$(RM) $(DESTDIR)$(BINDIR)/zstdless
- @$(RM) $(DESTDIR)$(BINDIR)/zstdcat
- @$(RM) $(DESTDIR)$(BINDIR)/unzstd
- @$(RM) $(DESTDIR)$(BINDIR)/zstdmt
- @$(RM) $(DESTDIR)$(BINDIR)/zstd
- @$(RM) $(DESTDIR)$(MAN1DIR)/zstdless.1
- @$(RM) $(DESTDIR)$(MAN1DIR)/zstdgrep.1
- @$(RM) $(DESTDIR)$(MAN1DIR)/zstdcat.1
- @$(RM) $(DESTDIR)$(MAN1DIR)/unzstd.1
- @$(RM) $(DESTDIR)$(MAN1DIR)/zstd.1
- @echo zstd programs successfully uninstalled
+ $(RM) $(DESTDIR)$(BINDIR)/zstdgrep
+ $(RM) $(DESTDIR)$(BINDIR)/zstdless
+ $(RM) $(DESTDIR)$(BINDIR)/zstdcat
+ $(RM) $(DESTDIR)$(BINDIR)/unzstd
+ $(RM) $(DESTDIR)$(BINDIR)/zstdmt
+ $(RM) $(DESTDIR)$(BINDIR)/zstd
+ $(RM) $(DESTDIR)$(MAN1DIR)/zstdless.1
+ $(RM) $(DESTDIR)$(MAN1DIR)/zstdgrep.1
+ $(RM) $(DESTDIR)$(MAN1DIR)/zstdcat.1
+ $(RM) $(DESTDIR)$(MAN1DIR)/unzstd.1
+ $(RM) $(DESTDIR)$(MAN1DIR)/zstd.1
+ @echo "zstd programs successfully uninstalled"
endif
diff --git a/tests/Makefile b/tests/Makefile
index 3917a7c..3549997 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -79,7 +79,7 @@ DECODECORPUS_TESTTIME ?= -T30
.PHONY: default all all32 allnothread dll clean test test32 test-all versionsTest
default: fullbench
- @echo $(ZSTDMT_OBJECTS)
+ @echo "$(ZSTDMT_OBJECTS)"
all: fullbench fuzzer zstreamtest paramgrill datagen decodecorpus roundTripCrash \
fullbench-lib poolTests
@@ -243,9 +243,9 @@ checkTag: checkTag.c $(ZSTDDIR)/zstd.h
clean:
$(MAKE) -C $(ZSTDDIR) clean
$(MAKE) -C $(PRGDIR) clean
- @$(RM) -fR $(TESTARTEFACT)
- @$(RM) -rf tmp* # some test directories are named tmp*
- @$(RM) core *.o *.tmp result* *.gcda dictionary *.zst \
+ $(RM) -fR $(TESTARTEFACT)
+ $(RM) -rf tmp* # some test directories are named tmp*
+ $(RM) core *.o *.tmp result* *.gcda dictionary *.zst \
$(PRGDIR)/zstd$(EXT) $(PRGDIR)/zstd32$(EXT) \
fullbench$(EXT) fullbench32$(EXT) \
fullbench-lib$(EXT) fullbench-dll$(EXT) \
@@ -255,7 +255,7 @@ clean:
datagen$(EXT) paramgrill$(EXT) roundTripCrash$(EXT) longmatch$(EXT) \
symbols$(EXT) invalidDictionaries$(EXT) legacy$(EXT) poolTests$(EXT) \
decodecorpus$(EXT) checkTag$(EXT) bigdict$(EXT)
- @echo Cleaning completed
+ @echo "Cleaning completed"
#----------------------------------------------------------------------------------
@@ -274,7 +274,7 @@ valgrindTest: zstd datagen fuzzer fullbench
./datagen -g2930KB | $(VALGRIND) $(PRGDIR)/zstd -5 -vf - -o tmp
$(VALGRIND) $(PRGDIR)/zstd -vdf tmp -c > $(VOID)
./datagen -g64MB | $(VALGRIND) $(PRGDIR)/zstd -vf - -c > $(VOID)
- @rm tmp
+ rm tmp
$(VALGRIND) ./fuzzer -T1mn -t1
$(VALGRIND) ./fullbench -i1
@@ -298,7 +298,7 @@ endif
.PHONY: list
list:
- @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+ $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
.PHONY: shortest
shortest: ZSTDRTTEST=
@@ -412,9 +412,9 @@ test-decodecorpus: decodecorpus
test-decodecorpus-cli: decodecorpus
@echo "\n ---- decodecorpus basic cli tests ----"
- @mkdir testdir
+ mkdir testdir
./decodecorpus -n5 -otestdir -ptestdir
- @cd testdir && \
+ cd testdir && \
$(ZSTD) -d z000000.zst -o tmp0 && \
$(ZSTD) -d z000001.zst -o tmp1 && \
$(ZSTD) -d z000002.zst -o tmp2 && \
@@ -429,7 +429,7 @@ test-decodecorpus-cli: decodecorpus
cd ..
@echo "\n ---- decodecorpus dictionary cli tests ----"
./decodecorpus -n5 -otestdir -ptestdir --use-dict=1MB
- @cd testdir && \
+ cd testdir && \
$(ZSTD) -d z000000.zst -D dictionary -o tmp0 && \
$(ZSTD) -d z000001.zst -D dictionary -o tmp1 && \
$(ZSTD) -d z000002.zst -D dictionary -o tmp2 && \
@@ -441,7 +441,7 @@ test-decodecorpus-cli: decodecorpus
diff z000003 tmp3 && \
diff z000004 tmp4 && \
cd ..
- @rm -rf testdir
+ rm -rf testdir
test-pool: poolTests
$(QEMU_SYS) ./poolTests
diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile
index f66dade..4a6b499 100644
--- a/tests/fuzz/Makefile
+++ b/tests/fuzz/Makefile
@@ -118,7 +118,7 @@ libregression.a: $(FUZZ_HEADERS) $(PRGDIR)/util.h $(PRGDIR)/util.c regression_dr
$(AR) $(FUZZ_ARFLAGS) $@ regression_driver.o
corpora/%_seed_corpus.zip:
- @mkdir -p corpora
+ mkdir -p corpora
$(DOWNLOAD) $@ $(CORPORA_URL_PREFIX)$*_seed_corpus.zip
corpora/%: corpora/%_seed_corpus.zip
@@ -135,13 +135,13 @@ regressiontest: corpora
$(PYTHON) ./fuzz.py regression all
clean:
- @$(MAKE) -C $(ZSTDDIR) clean
- @$(RM) *.a *.o
- @$(RM) simple_round_trip stream_round_trip simple_decompress \
+ $(MAKE) -C $(ZSTDDIR) 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
cleanall:
- @$(RM) -r Fuzzer
- @$(RM) -r corpora
+ $(RM) -r Fuzzer
+ $(RM) -r corpora
diff --git a/tests/gzip/Makefile b/tests/gzip/Makefile
index c5d6720..6089224 100644
--- a/tests/gzip/Makefile
+++ b/tests/gzip/Makefile
@@ -16,20 +16,20 @@ export PATH := .:$(PATH)
all: test-helin-segv test-hufts test-keep test-list test-memcpy-abuse test-mixed
all: test-null-suffix-clobber test-stdin test-trailing-nul test-unpack-invalid
all: test-zdiff test-zgrep-context test-zgrep-f test-zgrep-signal test-znew-k test-z-suffix
- @echo Testing completed
+ @echo "Testing completed"
.PHONY: zstd
zstd:
$(MAKE) -C $(PRGDIR) zstd
ln -sf $(PRGDIR)/zstd gzip
- @echo PATH=$(PATH)
+ @echo "PATH=$(PATH)"
gzip --version
.PHONY: clean
clean:
- @$(MAKE) -C $(PRGDIR) $@ > $(VOID)
- @$(RM) *.trs *.log
- @echo Cleaning completed
+ $(MAKE) -C $(PRGDIR) $@ > $(VOID)
+ $(RM) *.trs *.log
+ @echo "Cleaning completed"
#------------------------------------------------------------------------------
@@ -38,7 +38,7 @@ clean:
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
test-%: zstd
- @./test-driver.sh --test-name $* --log-file $*.log --trs-file $*.trs --expect-failure "no" --color-tests "yes" --enable-hard-errors "yes" ./$*.sh
+ ./test-driver.sh --test-name $* --log-file $*.log --trs-file $*.trs --expect-failure "no" --color-tests "yes" --enable-hard-errors "yes" ./$*.sh
# || echo ignoring error
endif
diff --git a/zlibWrapper/Makefile b/zlibWrapper/Makefile
index 02d65d5..0e67eda 100644
--- a/zlibWrapper/Makefile
+++ b/zlibWrapper/Makefile
@@ -50,14 +50,14 @@ test: example fitblk example_zstd fitblk_zstd zwrapbench minigzip minigzip_zstd
./fitblk 40960 <$(TEST_FILE)
./fitblk_zstd 10240 <$(TEST_FILE)
./fitblk_zstd 40960 <$(TEST_FILE)
- @echo ---- minigzip start ----
+ @echo "---- minigzip start ----"
./minigzip_zstd example$(EXT)
#cp example$(EXT).gz example$(EXT)_zstd.gz
./minigzip_zstd -d example$(EXT).gz
./minigzip example$(EXT)
#cp example$(EXT).gz example$(EXT)_gz.gz
./minigzip_zstd -d example$(EXT).gz
- @echo ---- minigzip end ----
+ @echo "---- minigzip end ----"
./zwrapbench -qi1b3B1K $(TEST_FILE)
./zwrapbench -rqi1b1e5 ../lib ../programs ../tests
@@ -114,4 +114,4 @@ $(ZSTDLIBDIR)/libzstd.so:
clean:
-$(RM) $(ZLIBWRAPPER_PATH)/*.o $(EXAMPLE_PATH)/*.o *.o foo.gz example$(EXT) example_zstd$(EXT) fitblk$(EXT) fitblk_zstd$(EXT) zwrapbench$(EXT) minigzip$(EXT) minigzip_zstd$(EXT)
- @echo Cleaning completed
+ @echo "Cleaning completed"

View File

@ -1,7 +0,0 @@
0006-Use-bash-for-test-script-portablitity.patch
0008-Address-embedded-zlib.patch
0013-skip-memory-greedy-tests.patch
0014-Reproducible-build.patch
0015-Skip-dev-random-tests-on-hurd.patch
0018-Alias-renamed-API-symbols.patch
0019-blhc-workarounds.patch

View File

@ -1 +1 @@
3.0 (quilt)
3.0 (native)