diff --git a/regress/longername.test b/regress/longername.test new file mode 100644 index 0000000..519d0df --- /dev/null +++ b/regress/longername.test @@ -0,0 +1,8 @@ +description torrentzip a zip with a too long entry name +return 0 +arguments -l longername.zip +file longername.zip longername.zip +stderr +Could not list contents of "longername.zip". File is corrupted or contains entries with bad names. +!!!! There were problems! !!!! +end-of-inline-data diff --git a/regress/longername.zip b/regress/longername.zip new file mode 100644 index 0000000..b2fb92f Binary files /dev/null and b/regress/longername.zip differ diff --git a/regress/longname.test b/regress/longname.test new file mode 100644 index 0000000..4ab8e5d --- /dev/null +++ b/regress/longname.test @@ -0,0 +1,11 @@ +description torrentzip a zip with the longest supported entry name +return 0 +arguments -l longname.zip +file longname.zip longname.zip longname.tzip +stdout +Rezipping - longname.zip +-------------------------------------------------- +Adding - looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir0/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir1/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir2/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir3/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir4/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir5/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir6/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir7/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir8/looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongdir9/test_file.txt (31 bytes)...Done +-------------------------------------------------- +Rezipped 1 compressed file totaling 31 bytes. +end-of-inline-data diff --git a/regress/longname.tzip b/regress/longname.tzip new file mode 100644 index 0000000..dc4e894 Binary files /dev/null and b/regress/longname.tzip differ diff --git a/regress/longname.zip b/regress/longname.zip new file mode 100644 index 0000000..f6f9e60 Binary files /dev/null and b/regress/longname.zip differ