[Git][reproducible-builds/diffoscope][master] Update test_zip text fixtures and definitions to support new IO::Compress...
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Tue Aug 13 10:44:02 UTC 2024
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
e6ef1100 by Chris Lamb at 2024-08-13T11:43:27+01:00
Update test_zip text fixtures and definitions to support new IO::Compress changes. (Closes: Debian:#1078050)
- - - - -
2 changed files:
- tests/comparators/test_zip.py
- tests/data/zip2_zipdetails_expected_diff
Changes:
=====================================
tests/comparators/test_zip.py
=====================================
@@ -93,6 +93,7 @@ def test_compressed_files(differences):
@skip_unless_tools_exist("zipinfo", "bsdtar", "zipdetails")
+ at skip_unless_tool_is_at_least("perl", io_compress_zip_version, "2.212")
def test_extra_fields(differences2):
assert_diff(differences2[0], "zip_bsdtar_expected_diff")
assert_diff(differences2[1], "zip2_zipdetails_expected_diff")
@@ -148,11 +149,14 @@ def jmod_differences(jmod1, jmod2):
return jmod1.compare(jmod2).details
- at skip_unless_tools_exist("zipinfo", "zipdetails")
+ at skip_unless_tools_exist("zipinfo", "zipdetails", "zipnote")
@skip_unless_tool_is_at_least("perl", io_compress_zip_version, "2.212")
def test_jmod_metadata(jmod_differences, jmod1, jmod2):
+ assert jmod_differences[0].source1 == "zipinfo {}"
+ assert jmod_differences[1].source1.startswith("zipnote")
+ assert jmod_differences[2].source1.startswith("zipdetails")
assert_diff(jmod_differences[0], "jmod_zipinfo_expected_diff")
- assert_diff(jmod_differences[1], "jmod_zipdetails_expected_diff")
+ assert_diff(jmod_differences[2], "jmod_zipdetails_expected_diff")
def test_encrypted(encrypted_zip1, encrypted_zip2):
=====================================
tests/data/zip2_zipdetails_expected_diff
=====================================
@@ -1,19 +1,19 @@
-@@ -36,16 +36,16 @@
- 0054 Uncompressed Length 000001BE
- 0058 Filename Length 0008
- 005A Extra Length 001C
- 005C Filename 'XXX/XXXX'
- 0064 Extra ID #0001 5455 'UT: Extended Timestamp'
- 0066 Length 0009
- 0068 Flags '03 mod access'
--0069 Mod Time 558AB455 'Wed Jun 24 13:44:53 2015'
--006D Access Time 558AB45F 'Wed Jun 24 13:45:03 2015'
-+0069 Mod Time 41414141 'Fri Sep 10 05:53:05 2004'
-+006D Access Time 41414141 'Fri Sep 10 05:53:05 2004'
- 0071 Extra ID #0002 7875 'ux: Unix Extra Type 3'
- 0073 Length 000B
- 0075 Version 01
- 0076 UID Size 04
- 0077 UID 000003E8
- 007B GID Size 04
- 007C GID 000003E8
+@@ -44,16 +44,16 @@
+ #
+ # WARNING: Offset 0x5C: Filename 'XXXXXXXX'
+ # Zero length filename
+ #
+ 0064 Extra ID #1 5455 (21589) 'Extended Timestamp [UT]'
+ 0066 Length 0009 (9)
+ 0068 Flags 03 (3) 'Modification Access'
+-0069 Modification Time 558AB455 (1435153493) 'Wed Jun 24 13:44:53 2015'
+-006D Access Time 558AB45F (1435153503) 'Wed Jun 24 13:45:03 2015'
++0069 Modification Time 41414141 (1094795585) 'Fri Sep 10 05:53:05 2004'
++006D Access Time 41414141 (1094795585) 'Fri Sep 10 05:53:05 2004'
+ 0071 Extra ID #2 7875 (30837) 'Unix Extra type 3 [ux]'
+ 0073 Length 000B (11)
+ 0075 Version 01 (1)
+ 0076 UID Size 04 (4)
+ 0077 UID 000003E8 (1000)
+ 007B GID Size 04 (4)
+ 007C GID 000003E8 (1000)
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/e6ef110086bcb1272c37b44074fcb083ed0c9b41
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/e6ef110086bcb1272c37b44074fcb083ed0c9b41
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20240813/38c18232/attachment.htm>
More information about the rb-commits
mailing list