diff --git a/patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch b/patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch new file mode 100644 index 0000000..431d1c9 --- /dev/null +++ b/patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch @@ -0,0 +1,14 @@ +diff -Nur zstd-1.5.0/tests/playTests.sh new-zstd/tests/playTests.sh +--- zstd-1.5.0/tests/playTests.sh 2021-05-14 22:59:34.000000000 +0800 ++++ new-zstd/tests/playTests.sh 2021-11-18 16:44:28.963975598 +0800 +@@ -689,6 +689,10 @@ + test -f tmp3 + test -f tmp4 + ++println "test : survive a list of files which long file name length (--filelist=FILE)" ++datagen -g51M > tmp_badList ++zstd -f --filelist=tmp_badList && die "should have failed : list file name length is too long" # can trigger the file list file name length is too long ++ + println "test : survive a list of files which is text garbage (--filelist=FILE)" + datagen > tmp_badList + zstd -f --filelist=tmp_badList && die "should have failed : list is text garbage" diff --git a/zstd.spec b/zstd.spec index 9c92a9e..57439fb 100644 --- a/zstd.spec +++ b/zstd.spec @@ -2,7 +2,7 @@ Name: zstd Version: 1.5.0 -Release: 7 +Release: 8 Summary: A fast lossless compression algorithm License: BSD and GPLv2 URL: https://github.com/facebook/zstd @@ -12,6 +12,7 @@ Patch1: backport-zstd-1.5.0-patch-1-set-mtime-on-output-files.patch Patch2: backport-zstd-1.5.0-patch-2-add-tests-set-mtime-on-output-files.patch Patch3: backport-zstd-1.5.0-patch-3-remove-invalid-test.patch Patch4: backport-zstd-1.5.0-patch-4-limit-train-samples.patch +Patch5: patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch BuildRequires: gtest-devel gcc-c++ pkg-config @@ -90,6 +91,9 @@ install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1 %{_mandir}/man1/*.1* %changelog +* Thu Nov 18 2021 zhangxiao - 1.5.0.8 +* add test case survive a list of files which long file name length + * Tue Nov 16 2021 zhangying - 1.5.0.7 * run the complete test case on ci