dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
Blob Blame History Raw
From 78be9c320883e77c2b5fdc676277a51efc98c723 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 13 Oct 2020 16:29:19 +0200
Subject: tests: update atari blkid tests

The old images of the atari label are truncated and in-table stored
sizes do not match with real images sizes -- libblkid checks it now.

I have no idea how to generate ICD format, let's ignore it in tests
for now.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2060030
Upstream: http://github.com/util-linux/util-linux/commit/0d061b6e68bc74ce7d61524097b5d0f3becee437
Signed-off-by: Karel Zak <kzak@redhat.com>
---
 tests/expected/blkid/lowprobe-pt-atari-icd     |   8 --------
 tests/expected/blkid/lowprobe-pt-atari-primary |   3 +++
 tests/expected/blkid/lowprobe-pt-atari-xgm     |  10 +++-------
 tests/ts/blkid/images-pt/atari-icd.img.xz      | Bin 1920 -> 0 bytes
 tests/ts/blkid/images-pt/atari-primary.img.xz  | Bin 0 -> 932 bytes
 tests/ts/blkid/images-pt/atari-xgm.img.xz      | Bin 1920 -> 956 bytes
 6 files changed, 6 insertions(+), 15 deletions(-)
 delete mode 100644 tests/expected/blkid/lowprobe-pt-atari-icd
 create mode 100644 tests/expected/blkid/lowprobe-pt-atari-primary
 delete mode 100644 tests/ts/blkid/images-pt/atari-icd.img.xz
 create mode 100644 tests/ts/blkid/images-pt/atari-primary.img.xz

diff --git a/tests/expected/blkid/lowprobe-pt-atari-icd b/tests/expected/blkid/lowprobe-pt-atari-icd
deleted file mode 100644
index 29942b123..000000000
--- a/tests/expected/blkid/lowprobe-pt-atari-icd
+++ /dev/null
@@ -1,8 +0,0 @@
-size: 8388608, sector size: 512, PT: atari, offset: 0, id=(null)
----
-#1:         65       4032  0x0 type='FAT'
-#2:       4097        904  0x0 type='FOO'
-#4:      12289       4096  0x0 type='BAR'
-#5:       5002       1999  0x0 type='GEM'
-#6:       7003       3238  0x0 type='RAW'
-#7:      10241       2048  0x0 type='RAW'
diff --git a/tests/expected/blkid/lowprobe-pt-atari-primary b/tests/expected/blkid/lowprobe-pt-atari-primary
new file mode 100644
index 000000000..472821e47
--- /dev/null
+++ b/tests/expected/blkid/lowprobe-pt-atari-primary
@@ -0,0 +1,3 @@
+size: 5242880, sector size: 512, PT: atari, offset: 0, id=(null)
+---
+#1:          2      10238  0x0 type='RAW'
diff --git a/tests/expected/blkid/lowprobe-pt-atari-xgm b/tests/expected/blkid/lowprobe-pt-atari-xgm
index 4b7756655..a7dae6995 100644
--- a/tests/expected/blkid/lowprobe-pt-atari-xgm
+++ b/tests/expected/blkid/lowprobe-pt-atari-xgm
@@ -1,8 +1,4 @@
-size: 8388608, sector size: 512, PT: atari, offset: 0, id=(null)
+size: 5242880, sector size: 512, PT: atari, offset: 0, id=(null)
 ---
-#1:         65       4032  0x0 type='FAT'
-#2:       4097        904  0x0 type='FOO'
-#3:       5002       1999  0x0 type='GEM'
-#4:       7003       3238  0x0 type='RAW'
-#5:      10241       2048  0x0 type='RAW'
-#6:      12289       4096  0x0 type='BAR'
+#1:          2          9  0x0 type='RAW'
+#2:         14      10226  0x0 type='RAW'
diff --git a/tests/ts/blkid/images-pt/atari-icd.img.xz b/tests/ts/blkid/images-pt/atari-icd.img.xz
deleted file mode 100644
index 00a2aba49a8f940c35b788fd693f966a31cd1aaf..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 1920
zcmexsUKJ6=z`*kC+7>q^21Q0O1_p)_{ilon|NqLI8OvZIducK^<D#q<ONrmzr7PMy
z=Re+dD(FN^i0Z8=QGYU3)3SOsKNYUE<teKW$h*z@Da6KG##!?D_SzK}=ewS=QwkRf
zxzbX}@_f!Z)%e<woF9|fYR|0lp0G0f`-gY``AxPJey<QwNW16%FSdP&)8+C%F~2I4
z{_B6tP6!P7a!FyfvS6dFJIf=9>Ecg5@jkusTr=nRy9*!Bn(bM`eR*oT<-}u76EuU~
zr&{jenxVc;S-qm~ZIsPAhf|HgcYYY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qR~lKc93~
zM{UwbNSDCeSh)377bwKEDG0HlkOiq$@C5SPZ)#xt%D~Ft{N&Fs28N&OuDBU3?>)l6
bc!#f{p@D_bU0QSFk@Vk8z<QQ}B{B*CjfKee

diff --git a/tests/ts/blkid/images-pt/atari-primary.img.xz b/tests/ts/blkid/images-pt/atari-primary.img.xz
new file mode 100644
index 0000000000000000000000000000000000000000..6f915fa8ad96578f32b0daeeb92d438046482478
GIT binary patch
literal 932
zcmexsUKJ6=z`*kC+7>q^21Q0O1_p)_{ilon|NG21IhKJT|L>o5D`zuK%~gJC<+=Ii
zjxFDrre11~o8UX~^*sr`-ND)CA`-a`g{vlPsQ4ms_SS~eoI5Q;loOk08+!D2evoWh
za^cV`_b30BuKD=6`BwT2=4;0@BCk29bN`)lS>&4=``*}-hYFe|Np9+Tq~OEO|Ip}x
zJ4;5zolM)LTaTWs>#-B)sg`FET(veqcGtO$>Jl-LZ7<V;BKEy3TNC-@X*4Ux&*Qh&
z{`noGU2;|~TEXe(-C)}vnkk&t4X3qo?r*jJaAdDu{3?Ds?=+_g!hHV)CjTg`i2T8Q
z_Wx83H~y7>YVQ4>WuO;!puhEVbK`;3BdWnazD_hVWL>)9UH-uWUw59169<{qE8fUY
zo&R5eQJdjSaq#lL`_|PMO3mNiYnWFsZ@F^(8;#Sg7pKnXs?(bINxk&D<N>xBzBB&b
zSbuc_{}AvSO=2{V-+t2s#$OCG2V;Pp`LJObFuO6V(c5<Fu|Ufz2FCwv4GjmFGA4R9
PZak9yn+YVz5*Y;mtR2mT

literal 0
HcmV?d00001

diff --git a/tests/ts/blkid/images-pt/atari-xgm.img.xz b/tests/ts/blkid/images-pt/atari-xgm.img.xz
index bc2b8f94a77f5015ef7f91bb8acdc9950c8be7ad..a98c02de943eb1f70c5d09b7812fd237b0facb1b 100644
GIT binary patch
delta 254
zcmV<a00IAi54;DE8h=*-t6cy9Z~gqPsha_nZ6oD6NwupI8`mp<%bF(xLvD5Rc8W7`
zX)WzPD$MTS!%B(|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