Add test case with file and central directory past 4GiB.
diff --git a/TODO b/TODO index b5f5672..2ff6e46 100644 --- a/TODO +++ b/TODO
@@ -91,10 +91,6 @@ * run regression tests also from CMake framework * rename file to dir/ and vice versa (fails) * fix comment test to be newline insensitive -* zip64 test case ideas (but how to provide comparison and input files?) - Create files with: - * compressed >= 4GB - * offset of file or central directory >= 4GB * check if http://bugs.python.org/issue20078 provides ideas for new tests * (add, replace)
diff --git a/regress/Makefile.am b/regress/Makefile.am index 8102358..c009ea9 100644 --- a/regress/Makefile.am +++ b/regress/Makefile.am
@@ -30,6 +30,7 @@ NiHTest.pm \ runtest.in \ ${TESTS} \ + bigstored.zh \ bigzero-zip.zip \ bogus.zip \ broken.zip \ @@ -203,7 +204,8 @@ stat_index_zip64.test \ torrent-already.test \ utf-8-standardization.test \ - zip64_creation.test + zip64_creation.test \ + zip64_stored_creation.test DISABLED_TESTS= \ encoding-ascii.test \
diff --git a/regress/bigstored.zh b/regress/bigstored.zh new file mode 100644 index 0000000..7c1e5d7 --- /dev/null +++ b/regress/bigstored.zh Binary files differ
diff --git a/regress/zip64_stored_creation.test b/regress/zip64_stored_creation.test new file mode 100644 index 0000000..d554635 --- /dev/null +++ b/regress/zip64_stored_creation.test
@@ -0,0 +1,5 @@ +# create big zip64 zip file from scratch +program modify +args -H bigstored.zh add_nul bigzero 4294967296 set_file_compression 0 0 0 set_file_mtime 0 0 add_nul smallzero 16384 set_file_compression 1 0 0 set_file_mtime 1 0 +file-new bigstored.zh bigstored.zh +return 0