dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
8ecbbe
From 78be9c320883e77c2b5fdc676277a51efc98c723 Mon Sep 17 00:00:00 2001
8ecbbe
From: Karel Zak <kzak@redhat.com>
8ecbbe
Date: Tue, 13 Oct 2020 16:29:19 +0200
8ecbbe
Subject: tests: update atari blkid tests
8ecbbe
8ecbbe
The old images of the atari label are truncated and in-table stored
8ecbbe
sizes do not match with real images sizes -- libblkid checks it now.
8ecbbe
8ecbbe
I have no idea how to generate ICD format, let's ignore it in tests
8ecbbe
for now.
8ecbbe
8ecbbe
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2060030
8ecbbe
Upstream: http://github.com/util-linux/util-linux/commit/0d061b6e68bc74ce7d61524097b5d0f3becee437
8ecbbe
Signed-off-by: Karel Zak <kzak@redhat.com>
8ecbbe
---
8ecbbe
 tests/expected/blkid/lowprobe-pt-atari-icd     |   8 --------
8ecbbe
 tests/expected/blkid/lowprobe-pt-atari-primary |   3 +++
8ecbbe
 tests/expected/blkid/lowprobe-pt-atari-xgm     |  10 +++-------
8ecbbe
 tests/ts/blkid/images-pt/atari-icd.img.xz      | Bin 1920 -> 0 bytes
8ecbbe
 tests/ts/blkid/images-pt/atari-primary.img.xz  | Bin 0 -> 932 bytes
8ecbbe
 tests/ts/blkid/images-pt/atari-xgm.img.xz      | Bin 1920 -> 956 bytes
8ecbbe
 6 files changed, 6 insertions(+), 15 deletions(-)
8ecbbe
 delete mode 100644 tests/expected/blkid/lowprobe-pt-atari-icd
8ecbbe
 create mode 100644 tests/expected/blkid/lowprobe-pt-atari-primary
8ecbbe
 delete mode 100644 tests/ts/blkid/images-pt/atari-icd.img.xz
8ecbbe
 create mode 100644 tests/ts/blkid/images-pt/atari-primary.img.xz
8ecbbe
8ecbbe
diff --git a/tests/expected/blkid/lowprobe-pt-atari-icd b/tests/expected/blkid/lowprobe-pt-atari-icd
8ecbbe
deleted file mode 100644
8ecbbe
index 29942b123..000000000
8ecbbe
--- a/tests/expected/blkid/lowprobe-pt-atari-icd
8ecbbe
+++ /dev/null
8ecbbe
@@ -1,8 +0,0 @@
8ecbbe
-size: 8388608, sector size: 512, PT: atari, offset: 0, id=(null)
8ecbbe
----
8ecbbe
-#1:         65       4032  0x0 type='FAT'
8ecbbe
-#2:       4097        904  0x0 type='FOO'
8ecbbe
-#4:      12289       4096  0x0 type='BAR'
8ecbbe
-#5:       5002       1999  0x0 type='GEM'
8ecbbe
-#6:       7003       3238  0x0 type='RAW'
8ecbbe
-#7:      10241       2048  0x0 type='RAW'
8ecbbe
diff --git a/tests/expected/blkid/lowprobe-pt-atari-primary b/tests/expected/blkid/lowprobe-pt-atari-primary
8ecbbe
new file mode 100644
8ecbbe
index 000000000..472821e47
8ecbbe
--- /dev/null
8ecbbe
+++ b/tests/expected/blkid/lowprobe-pt-atari-primary
8ecbbe
@@ -0,0 +1,3 @@
8ecbbe
+size: 5242880, sector size: 512, PT: atari, offset: 0, id=(null)
8ecbbe
+---
8ecbbe
+#1:          2      10238  0x0 type='RAW'
8ecbbe
diff --git a/tests/expected/blkid/lowprobe-pt-atari-xgm b/tests/expected/blkid/lowprobe-pt-atari-xgm
8ecbbe
index 4b7756655..a7dae6995 100644
8ecbbe
--- a/tests/expected/blkid/lowprobe-pt-atari-xgm
8ecbbe
+++ b/tests/expected/blkid/lowprobe-pt-atari-xgm
8ecbbe
@@ -1,8 +1,4 @@
8ecbbe
-size: 8388608, sector size: 512, PT: atari, offset: 0, id=(null)
8ecbbe
+size: 5242880, sector size: 512, PT: atari, offset: 0, id=(null)
8ecbbe
 ---
8ecbbe
-#1:         65       4032  0x0 type='FAT'
8ecbbe
-#2:       4097        904  0x0 type='FOO'
8ecbbe
-#3:       5002       1999  0x0 type='GEM'
8ecbbe
-#4:       7003       3238  0x0 type='RAW'
8ecbbe
-#5:      10241       2048  0x0 type='RAW'
8ecbbe
-#6:      12289       4096  0x0 type='BAR'
8ecbbe
+#1:          2          9  0x0 type='RAW'
8ecbbe
+#2:         14      10226  0x0 type='RAW'
8ecbbe
diff --git a/tests/ts/blkid/images-pt/atari-icd.img.xz b/tests/ts/blkid/images-pt/atari-icd.img.xz
8ecbbe
deleted file mode 100644
8ecbbe
index 00a2aba49a8f940c35b788fd693f966a31cd1aaf..0000000000000000000000000000000000000000
8ecbbe
GIT binary patch
8ecbbe
literal 0
8ecbbe
HcmV?d00001
8ecbbe
8ecbbe
literal 1920
8ecbbe
zcmexsUKJ6=z`*kC+7>q^21Q0O1_p)_{ilon|NqLI8OvZIducK^
8ecbbe
z=Re+dD(FN^i0Z8=QGYU3)3SOsKNYUE
8ecbbe
zxzbX}@_f!Z)%e
8ecbbe
z{_B6tP6!P7a!FyfvS6dFJIf=9>Ecg5@jkusTr=nRy9*!Bn(bM`eR*oT<-}u76EuU~
8ecbbe
zr&{jenxVc;S-qm~ZIsPAhf|HgcYYYo_5QBSWhxk^uDJZlk@ka|=4h`oy~sXG;MryA
8ecbbe
zIO|(4yiWFOUJ0<66IC1R`kF;$
8ecbbe
z&wrJCJMneM`)PcKG6n8Gn6muo+=$TV!;Z6dyb-VXef4neVW0EN5;oQihkrbEc=K@o
8ecbbe
zx0jV2|I?>O2rLg_J2GWu-_F>bn|D|)EpJ!*v${KQj{VzR>(-u`|K~x`ZzH*T0p2&o
8ecbbe
zI-4YzQ@78Q>MqMUn_j_J&?R}Ab%JX4g_GgC#kn_Er2N@;{G{oT!>g3%?{7LTl&~r1
8ecbbe
z*sPkJ_H4EL-ks8A5cG>Zb+_(`db`H=OHtd`KiM;({>U6}*_GC3*O{IFD%<~0_S{B}
8ecbbe
zIAt^L!kb^-#2H7;7G8c(H`jXWaenqoR^eP0x0jjMz0;S=ntyt=$t<^43C^Wa`_>-0
8ecbbe
zn)7LCqnV7@rul}KIZjS|we9MTwfEKjD!a`sVqAVcbjH02iV_QaLoQ$Lm6>2)J5?)m
8ecbbe
z+4ZM<_KLr<4xZ|{k^g93P-0R3!R;b!3l;9v+iG1rUa|31OFLJ
8ecbbe
z6A4Z#TNC-@X*4Ux&*Qh&{`noGU2;|~TEXe(-C)}vnkk&t4X3qo?r*jJaAdDu{3?Ds
8ecbbe
z?=+_g!hHV)CjTg`i2T8Q_Wx83H~y7>YVQ4>WuO;!puhEVbK`;3BdWnazD_hVWL>)9
8ecbbe
zUH-uWUw59169reTO_1GnZlk(HOk~^3w4jK6F9(a&E)Q>o&j0_BF`3~_aq#lL`_|PM
8ecbbe
zO3mNiYnWFsZ@F^(8;#Sg7pKnXs?(bINxk&D<N>xBzBB&bSbuc_Kc+u-9hd96{dU62
8ecbbe
zdy9&v9!&J;nWpuKafAQ2KRiy8H+G)6azfr>>9!ZUEsJ{hn{EH;vMu55vVwblapfAb
8ecbbe
zxMqapUGF~CVIOb!`-J}sVcYGG8+IwL_`%kF^K1PzUTOPUszzJx7yZuII0hq?niBJy
8ecbbe
ztHO<bZHoEeb??p39f4v$CnZ^ZH?w&9HG2Bb3&qh5R7@FV8>i*X|1ZF(LqR~lKc93~
8ecbbe
zM{UwbNSDCeSh)377bwKEDG0HlkOiq$@C5SPZ)#xt%D~Ft{N&Fs28N&OuDBU3?>)l6
8ecbbe
bc!#f{p@D_bU0QSFk@Vk8z
8ecbbe
8ecbbe
diff --git a/tests/ts/blkid/images-pt/atari-primary.img.xz b/tests/ts/blkid/images-pt/atari-primary.img.xz
8ecbbe
new file mode 100644
8ecbbe
index 0000000000000000000000000000000000000000..6f915fa8ad96578f32b0daeeb92d438046482478
8ecbbe
GIT binary patch
8ecbbe
literal 932
8ecbbe
zcmexsUKJ6=z`*kC+7>q^21Q0O1_p)_{ilon|NG21IhKJT|L>o5D`zuK%~gJC<+=Ii
8ecbbe
zjxFDrre11~o8UX~^*sr`-ND)CA`-a`g{vlPsQ4ms_SS~eoI5Q;loOk08+!D2evoWh
8ecbbe
za^cV`_b30BuKD=6`BwT2=4;0@BCk29bN`)lS>&4=``*}-hYFe|Np9+Tq~OEO|Ip}x
8ecbbe
zJ4;5zolM)LTaTWs>#-B)sg`FET(veqcGtO$>Jl-LZ7
8ecbbe
z{`noGU2;|~TEXe(-C)}vnkk&t4X3qo?r*jJaAdDu{3?Ds?=+_g!hHV)CjTg`i2T8Q
8ecbbe
z_Wx83H~y7>YVQ4>WuO;!puhEVbK`;3BdWnazD_hVWL>)9UH-uWUw59169<{qE8fUY
8ecbbe
zo&R5eQJdjSaq#lL`_|PMO3mNiYnWFsZ@F^(8;#Sg7pKnXs?(bINxk&D<N>xBzBB&b
8ecbbe
zSbuc_{}AvSO=2{V-+t2s#$OCG2V;Pp`LJObFuO6V(c5
8ecbbe
PZak9yn+YVz5*Y;mtR2mT
8ecbbe
8ecbbe
literal 0
8ecbbe
HcmV?d00001
8ecbbe
8ecbbe
diff --git a/tests/ts/blkid/images-pt/atari-xgm.img.xz b/tests/ts/blkid/images-pt/atari-xgm.img.xz
8ecbbe
index bc2b8f94a77f5015ef7f91bb8acdc9950c8be7ad..a98c02de943eb1f70c5d09b7812fd237b0facb1b 100644
8ecbbe
GIT binary patch
8ecbbe
delta 254
8ecbbe
zcmV
8ecbbe
zX)WzPD$MTS!%B(|Y-}5#$Apx#1e(KC*{Pqmx)SsG9Xw0f%eaQXL!_kre&U)tNOpTG
8ecbbe
z*`SUYP}mJ59xhhp;RT@IihuacmkuJPZKAP=s%k;MCh}UW4>G(m3T!1071TaDPc176
8ecbbe
z%r3#|+u3QZtfaEW{3%z$%QU-cGO>PfMsWxu0c{gkG*2F%lPd=M1Y0KMdb1z~F#!dT
8ecbbe
z0hR!nlZ*pGlY9kID9q|Q?7#p305pfRGwmY1>Hq
8ecbbe
ET8n^h+5i9m
8ecbbe
8ecbbe
delta 911
8ecbbe
zcmV;A191Gj2Y?Td8h`ZzXk7p_9nzBv0itSzIT-tkb*P7lpX0X5Qpj9XCEAo){And-
8ecbbe
zYK<xKajiWJc6bnO+XeDeJWCuy8RxfssL`KA%041j5>(WLc?9R2t|ec6RBZT@27Sz`
8ecbbe
zOOUBo_werj4>Y!M_jnW_X5LT!U5BJX(|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