From 8df5195f1a190e5ce63af261937eafe5efeca2d5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 Jan 2009 23:43:56 +0100 Subject: [PATCH] tests: add libblkid regression tests (images from e2fsprogs) - adds basic infrastructure for blkid regression tests - imports test images from e2fsprogs (all tests PASS!:-) Signed-off-by: Karel Zak --- tests/commands.sh.in | 1 + tests/expected/blkid/low-probe-cramfs | 4 ++ tests/expected/blkid/low-probe-ext2 | 7 +++ tests/expected/blkid/low-probe-ext3 | 8 ++++ tests/expected/blkid/low-probe-fat | 8 ++++ .../expected/blkid/low-probe-fat32_label_64MB | 7 +++ tests/expected/blkid/low-probe-jbd | 5 +++ tests/expected/blkid/low-probe-jfs | 6 +++ tests/expected/blkid/low-probe-minix | 3 ++ tests/expected/blkid/low-probe-ocfs2 | 6 +++ tests/expected/blkid/low-probe-reiser3 | 6 +++ tests/expected/blkid/low-probe-reiser4 | 6 +++ tests/expected/blkid/low-probe-romfs | 4 ++ tests/expected/blkid/low-probe-small-fat32 | 7 +++ tests/expected/blkid/low-probe-swap0 | 3 ++ tests/expected/blkid/low-probe-swap1 | 7 +++ tests/expected/blkid/low-probe-udf | 4 ++ tests/expected/blkid/low-probe-xfs | 6 +++ tests/expected/blkid/low-probe-zfs | 0 tests/ts/blkid/images/cramfs.img.bz2 | Bin 0 -> 124 bytes tests/ts/blkid/images/ext2.img.bz2 | Bin 0 -> 356 bytes tests/ts/blkid/images/ext3.img.bz2 | Bin 0 -> 1489 bytes tests/ts/blkid/images/fat.img.bz2 | Bin 0 -> 249 bytes .../ts/blkid/images/fat32_label_64MB.img.bz2 | Bin 0 -> 1151 bytes tests/ts/blkid/images/jbd.img.bz2 | Bin 0 -> 205 bytes tests/ts/blkid/images/jfs.img.bz2 | Bin 0 -> 3434 bytes tests/ts/blkid/images/minix.img.bz2 | Bin 0 -> 138 bytes tests/ts/blkid/images/ocfs2.img.bz2 | Bin 0 -> 1002 bytes tests/ts/blkid/images/reiser3.img.bz2 | Bin 0 -> 282 bytes tests/ts/blkid/images/reiser4.img.bz2 | Bin 0 -> 366 bytes tests/ts/blkid/images/romfs.img.bz2 | Bin 0 -> 105 bytes tests/ts/blkid/images/small-fat32.img.bz2 | Bin 0 -> 372 bytes tests/ts/blkid/images/swap0.img.bz2 | Bin 0 -> 72 bytes tests/ts/blkid/images/swap1.img.bz2 | Bin 0 -> 120 bytes tests/ts/blkid/images/udf.img.bz2 | Bin 0 -> 2031 bytes tests/ts/blkid/images/xfs.img.bz2 | Bin 0 -> 443 bytes tests/ts/blkid/low-probe | 40 ++++++++++++++++++ 37 files changed, 138 insertions(+) create mode 100644 tests/expected/blkid/low-probe-cramfs create mode 100644 tests/expected/blkid/low-probe-ext2 create mode 100644 tests/expected/blkid/low-probe-ext3 create mode 100644 tests/expected/blkid/low-probe-fat create mode 100644 tests/expected/blkid/low-probe-fat32_label_64MB create mode 100644 tests/expected/blkid/low-probe-jbd create mode 100644 tests/expected/blkid/low-probe-jfs create mode 100644 tests/expected/blkid/low-probe-minix create mode 100644 tests/expected/blkid/low-probe-ocfs2 create mode 100644 tests/expected/blkid/low-probe-reiser3 create mode 100644 tests/expected/blkid/low-probe-reiser4 create mode 100644 tests/expected/blkid/low-probe-romfs create mode 100644 tests/expected/blkid/low-probe-small-fat32 create mode 100644 tests/expected/blkid/low-probe-swap0 create mode 100644 tests/expected/blkid/low-probe-swap1 create mode 100644 tests/expected/blkid/low-probe-udf create mode 100644 tests/expected/blkid/low-probe-xfs create mode 100644 tests/expected/blkid/low-probe-zfs create mode 100644 tests/ts/blkid/images/cramfs.img.bz2 create mode 100644 tests/ts/blkid/images/ext2.img.bz2 create mode 100644 tests/ts/blkid/images/ext3.img.bz2 create mode 100644 tests/ts/blkid/images/fat.img.bz2 create mode 100644 tests/ts/blkid/images/fat32_label_64MB.img.bz2 create mode 100644 tests/ts/blkid/images/jbd.img.bz2 create mode 100644 tests/ts/blkid/images/jfs.img.bz2 create mode 100644 tests/ts/blkid/images/minix.img.bz2 create mode 100644 tests/ts/blkid/images/ocfs2.img.bz2 create mode 100644 tests/ts/blkid/images/reiser3.img.bz2 create mode 100644 tests/ts/blkid/images/reiser4.img.bz2 create mode 100644 tests/ts/blkid/images/romfs.img.bz2 create mode 100644 tests/ts/blkid/images/small-fat32.img.bz2 create mode 100644 tests/ts/blkid/images/swap0.img.bz2 create mode 100644 tests/ts/blkid/images/swap1.img.bz2 create mode 100644 tests/ts/blkid/images/udf.img.bz2 create mode 100644 tests/ts/blkid/images/xfs.img.bz2 create mode 100755 tests/ts/blkid/low-probe diff --git a/tests/commands.sh.in b/tests/commands.sh.in index 4e95d685..9c8104a0 100644 --- a/tests/commands.sh.in +++ b/tests/commands.sh.in @@ -43,5 +43,6 @@ TS_CMD_ISLOCAL=${TS_CMD_ISLOCAL-"$TOPDIR/login-utils/islocal_test"} TS_CMD_HWCLOCK=${TS_CMD_HWCLOCK-"$TOPDIR/hwclock/hwclock"} TS_CMD_LSCPU=${TS_CMD_LSCPU-"$TOPDIR/sys-utils/lscpu"} +TS_CMD_BLKID=${TS_CMD_BLKID-"$TOPDIR/libs/blkid/bin/blkid.sh"} diff --git a/tests/expected/blkid/low-probe-cramfs b/tests/expected/blkid/low-probe-cramfs new file mode 100644 index 00000000..09ad018c --- /dev/null +++ b/tests/expected/blkid/low-probe-cramfs @@ -0,0 +1,4 @@ +ID_FS_LABEL_ENC=test-cram +ID_FS_LABEL=test-cram +ID_FS_TYPE=cramfs +ID_FS_USAGE=filesystem diff --git a/tests/expected/blkid/low-probe-ext2 b/tests/expected/blkid/low-probe-ext2 new file mode 100644 index 00000000..fa70cf4f --- /dev/null +++ b/tests/expected/blkid/low-probe-ext2 @@ -0,0 +1,7 @@ +ID_FS_LABEL_ENC=test-ext2 +ID_FS_LABEL=test-ext2 +ID_FS_TYPE=ext2 +ID_FS_USAGE=filesystem +ID_FS_UUID=22f0eac3-5c89-4ec1-9076-60799119aaea +ID_FS_UUID_ENC=22f0eac3-5c89-4ec1-9076-60799119aaea +ID_FS_VERSION=1.0 diff --git a/tests/expected/blkid/low-probe-ext3 b/tests/expected/blkid/low-probe-ext3 new file mode 100644 index 00000000..43aeeeda --- /dev/null +++ b/tests/expected/blkid/low-probe-ext3 @@ -0,0 +1,8 @@ +ID_FS_LABEL_ENC=test-ext3 +ID_FS_LABEL=test-ext3 +ID_FS_SEC_TYPE=ext2 +ID_FS_TYPE=ext3 +ID_FS_USAGE=filesystem +ID_FS_UUID=35f66dab-477e-4090-a872-95ee0e493ad6 +ID_FS_UUID_ENC=35f66dab-477e-4090-a872-95ee0e493ad6 +ID_FS_VERSION=1.0 diff --git a/tests/expected/blkid/low-probe-fat b/tests/expected/blkid/low-probe-fat new file mode 100644 index 00000000..3aecdb45 --- /dev/null +++ b/tests/expected/blkid/low-probe-fat @@ -0,0 +1,8 @@ +ID_FS_LABEL_ENC=TEST-FAT +ID_FS_LABEL=TEST-FAT +ID_FS_SEC_TYPE=msdos +ID_FS_TYPE=vfat +ID_FS_USAGE=filesystem +ID_FS_UUID=DEAD-BEEF +ID_FS_UUID_ENC=DEAD-BEEF +ID_FS_VERSION=FAT12 diff --git a/tests/expected/blkid/low-probe-fat32_label_64MB b/tests/expected/blkid/low-probe-fat32_label_64MB new file mode 100644 index 00000000..1179490c --- /dev/null +++ b/tests/expected/blkid/low-probe-fat32_label_64MB @@ -0,0 +1,7 @@ +ID_FS_LABEL=BINGO +ID_FS_LABEL_ENC=BINGO +ID_FS_TYPE=vfat +ID_FS_USAGE=filesystem +ID_FS_UUID=8CB5-BA49 +ID_FS_UUID_ENC=8CB5-BA49 +ID_FS_VERSION=FAT32 diff --git a/tests/expected/blkid/low-probe-jbd b/tests/expected/blkid/low-probe-jbd new file mode 100644 index 00000000..6c6217d0 --- /dev/null +++ b/tests/expected/blkid/low-probe-jbd @@ -0,0 +1,5 @@ +ID_FS_TYPE=jbd +ID_FS_USAGE=other +ID_FS_UUID=0d7a07df-7b06-4829-bce7-3b9c3ece570c +ID_FS_UUID_ENC=0d7a07df-7b06-4829-bce7-3b9c3ece570c +ID_FS_VERSION=1.0 diff --git a/tests/expected/blkid/low-probe-jfs b/tests/expected/blkid/low-probe-jfs new file mode 100644 index 00000000..08f9c1e6 --- /dev/null +++ b/tests/expected/blkid/low-probe-jfs @@ -0,0 +1,6 @@ +ID_FS_LABEL_ENC=test-jfs +ID_FS_LABEL=test-jfs +ID_FS_TYPE=jfs +ID_FS_USAGE=filesystem +ID_FS_UUID=9bf7b82e-7583-4c74-99a4-189a691f27b5 +ID_FS_UUID_ENC=9bf7b82e-7583-4c74-99a4-189a691f27b5 diff --git a/tests/expected/blkid/low-probe-minix b/tests/expected/blkid/low-probe-minix new file mode 100644 index 00000000..9627799a --- /dev/null +++ b/tests/expected/blkid/low-probe-minix @@ -0,0 +1,3 @@ +ID_FS_TYPE=minix +ID_FS_USAGE=filesystem +ID_FS_VERSION=1 diff --git a/tests/expected/blkid/low-probe-ocfs2 b/tests/expected/blkid/low-probe-ocfs2 new file mode 100644 index 00000000..0ee2bdd0 --- /dev/null +++ b/tests/expected/blkid/low-probe-ocfs2 @@ -0,0 +1,6 @@ +ID_FS_LABEL_ENC=test-ocfs2 +ID_FS_LABEL=test-ocfs2 +ID_FS_TYPE=ocfs2 +ID_FS_USAGE=filesystem +ID_FS_UUID=6b6bfbea-3a79-4f0c-b166-a20776102445 +ID_FS_UUID_ENC=6b6bfbea-3a79-4f0c-b166-a20776102445 diff --git a/tests/expected/blkid/low-probe-reiser3 b/tests/expected/blkid/low-probe-reiser3 new file mode 100644 index 00000000..8247ac54 --- /dev/null +++ b/tests/expected/blkid/low-probe-reiser3 @@ -0,0 +1,6 @@ +ID_FS_LABEL_ENC=TESTREISER +ID_FS_LABEL=TESTREISER +ID_FS_TYPE=reiser +ID_FS_USAGE=filesystem +ID_FS_UUID=9efe7863-b124-46dc-ad68-8ecd04230a7b +ID_FS_UUID_ENC=9efe7863-b124-46dc-ad68-8ecd04230a7b diff --git a/tests/expected/blkid/low-probe-reiser4 b/tests/expected/blkid/low-probe-reiser4 new file mode 100644 index 00000000..83a285cd --- /dev/null +++ b/tests/expected/blkid/low-probe-reiser4 @@ -0,0 +1,6 @@ +ID_FS_LABEL_ENC=TESTR4 +ID_FS_LABEL=TESTR4 +ID_FS_TYPE=reiser4 +ID_FS_USAGE=filesystem +ID_FS_UUID=9722633c-d69a-4881-b1c8-bedecbbf39d2 +ID_FS_UUID_ENC=9722633c-d69a-4881-b1c8-bedecbbf39d2 diff --git a/tests/expected/blkid/low-probe-romfs b/tests/expected/blkid/low-probe-romfs new file mode 100644 index 00000000..a33b6f3d --- /dev/null +++ b/tests/expected/blkid/low-probe-romfs @@ -0,0 +1,4 @@ +ID_FS_LABEL_ENC=test-romfs +ID_FS_LABEL=test-romfs +ID_FS_TYPE=romfs +ID_FS_USAGE=filesystem diff --git a/tests/expected/blkid/low-probe-small-fat32 b/tests/expected/blkid/low-probe-small-fat32 new file mode 100644 index 00000000..2315c4d5 --- /dev/null +++ b/tests/expected/blkid/low-probe-small-fat32 @@ -0,0 +1,7 @@ +ID_FS_LABEL_ENC=TESTVFAT +ID_FS_LABEL=TESTVFAT +ID_FS_TYPE=vfat +ID_FS_USAGE=filesystem +ID_FS_UUID=1423-AAE1 +ID_FS_UUID_ENC=1423-AAE1 +ID_FS_VERSION=FAT32 diff --git a/tests/expected/blkid/low-probe-swap0 b/tests/expected/blkid/low-probe-swap0 new file mode 100644 index 00000000..bbd94951 --- /dev/null +++ b/tests/expected/blkid/low-probe-swap0 @@ -0,0 +1,3 @@ +ID_FS_TYPE=swap +ID_FS_USAGE=other +ID_FS_VERSION=1 diff --git a/tests/expected/blkid/low-probe-swap1 b/tests/expected/blkid/low-probe-swap1 new file mode 100644 index 00000000..537f754d --- /dev/null +++ b/tests/expected/blkid/low-probe-swap1 @@ -0,0 +1,7 @@ +ID_FS_LABEL_ENC=SWAP-TEST +ID_FS_LABEL=SWAP-TEST +ID_FS_TYPE=swap +ID_FS_USAGE=other +ID_FS_UUID=8ff8e77f-8553-485e-8656-58be67a81666 +ID_FS_UUID_ENC=8ff8e77f-8553-485e-8656-58be67a81666 +ID_FS_VERSION=2 diff --git a/tests/expected/blkid/low-probe-udf b/tests/expected/blkid/low-probe-udf new file mode 100644 index 00000000..392eac4f --- /dev/null +++ b/tests/expected/blkid/low-probe-udf @@ -0,0 +1,4 @@ +ID_FS_LABEL_ENC=test-udf +ID_FS_LABEL=test-udf +ID_FS_TYPE=udf +ID_FS_USAGE=filesystem diff --git a/tests/expected/blkid/low-probe-xfs b/tests/expected/blkid/low-probe-xfs new file mode 100644 index 00000000..9dbaf445 --- /dev/null +++ b/tests/expected/blkid/low-probe-xfs @@ -0,0 +1,6 @@ +ID_FS_LABEL_ENC=test-xfs +ID_FS_LABEL=test-xfs +ID_FS_TYPE=xfs +ID_FS_USAGE=filesystem +ID_FS_UUID=8c8a0a5a-9f57-492e-9610-45a61f38f58a +ID_FS_UUID_ENC=8c8a0a5a-9f57-492e-9610-45a61f38f58a diff --git a/tests/expected/blkid/low-probe-zfs b/tests/expected/blkid/low-probe-zfs new file mode 100644 index 00000000..e69de29b diff --git a/tests/ts/blkid/images/cramfs.img.bz2 b/tests/ts/blkid/images/cramfs.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..d6381168f14566072ef9919031a48eee11e254c5 GIT binary patch literal 124 zcmV-?0E7QRT4*^jL0KkKS-7l+CIA33f5-d)Kmb5O00Jumm;f#U+yDSTU;+RE00ICA zAOKWnq{uQf(9x4Ynw~+DjR0r?>J0(vQsw1|Gs*i;jIbvv_9sOL*5URXt>s&asB zg8&3lNMMMZW-LHpBoJ|nF?f(dT*rBvGv}K+e;nE!6sK2d&~XeVj1y{$5C~YUDH>H; z3VLutKq(y~8fd7oEk+d>kuyZBu*3)y_N_4RbUa{4;_pb6ZOuC6r~-wm`KttHfeM`*~hSf)-&&gF4Z^A7pR-U=RSJfVI^C2nz03_`8xR!i0trt-R=} C&ywE& literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/ext3.img.bz2 b/tests/ts/blkid/images/ext3.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..5394598693d51c46176db9608cf7be7af362bad9 GIT binary patch literal 1489 zcmZ>Y%CIzaj8qGbJXo5l#=xLe|DO)uZe43ZxhSQwu$m@qJ~9ANNaU@>4| zV0K_@T)?30!@wX66a#`83_d)|fHcdA1BqTH7o?;Z7^HX^7cRH}6q95~VqnMssX_+d zfBX#%pE1v{x zeH1Q8nOsOQ5L|FstpVh#3mFU~mAk?zy z!~_PFr5;IMuj7s1FItdj)-ugy(c@`bINm%LI(5->avmRJX8G)^>WtpL)%*PSJy>24 zBUxzSbo0=Z=REPwRQEs{@KBsQp{KceX%a`UF;U7A z#}pWt8UzJd8Mp!%7O=SZ8?ZViFexxvo-3a7+_C`}J1oyF&oD3*e9KtW#pnVQ>Hq?e zI1DUcbl~V{Y5*F*AO^&9)GZeXaIi2jGPEq!^zsD4peYS7wLluoX1i28=YRrOlo3oq zgdt26QYZ+@0u5z!g5TdbB&OvUqY`n3zHL*;mQelE6+~jJZ;s@`1{qi{g1;-=C8T- z-|BAJ{=~mIWuaH^-#fSe&xZf`#Tv7;R;^mKMe1M!+cc90K-_r@FP*sh>9^lKS3^VN zflj~yRsapTi7=Ay1k6wa1?I!uhPT(8(%T=KKecpQm$Y-j#12pnf7`dz zr9n{yP-oSOoMuP~gJRxh0FU&JQxqm5f6nl7K)b9dNYX7qN>V{cD?R7LBgI%&7J+_A z^2x6Y6DTgw!V?eqj@^;CbnGdKK!ntK%PhBvxaO#cf+=oOdE8ye6yZWZT+`?fg5hJj literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/fat32_label_64MB.img.bz2 b/tests/ts/blkid/images/fat32_label_64MB.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..ca7629380a326427dc9643eaa4212da89428ea82 GIT binary patch literal 1151 zcmV-_1c3WOT4*^jL0KkKS$yjzUIl)C|NsC0@BdeST3+|}-%)3K|F3`jz(zrwZ~y)N zadQ59ZT-*#egFVH0Du9YG-;ziX^1d@WMniN8es+riJ;H}KmagJ0|dx0jRr$aFqts` zG#~(I4H{_B8e$9}85s=*hL}NuVrVn~&;Se*K*2H$BSDbUOeRb~4F~`l14f!O2AG2g z21Y|cp{5XEn3@d$Gynqx&@fDc2+(9S(+QIh13=YC27u9o0MImI000Jzfrw;jlR=OG z00006jDP?D(?cT=00mM)OoYjXsp@`;c?rEkO(c0wN$IDk$l4_JJu+%~H5(I63F>;D zQIFL!n^S0cOjF5`p$yF@qMAJ?q|v4tn>9}~r=#+zGScNq_pWXh)KM}_xhf?Lbck|N z1WHH{L`7DvXb6HL5QOOz*3gf(NQi)lh=f0spzc0&(F6oUL?MKcr(bIm#(gTWBw^>1 zS(buDx=r(Fx$`P%TE{`ryH#pZ&qdQlq@5$dV<#d35fKP!+a_%1ZI)%aZADeHl_+P^ zxXhXgE2hm!yKYroYB5sKxJKzH@o+!0)l+sIm!RiR(Z2<3$Fb}yjdG*o!Rk4RZtU{Z z*4#Y=)-Kx>NX^=>tG!g&?-{Vtwn`td%hJR})OyOgjYs=z)utZn{A$>gB*RSQC+99p zdbCO3u2O`0jw_48P)yafk7?d>9@>&lQgsTqxO3rAy;gWk1xjlc7^@78P>04cRNoxl;1~jtZq2ngt02CWVBZO2Hn59X_Kt7 z%&yeVbN0M-Me~T-bNlQ!+0WoQ*A_8;)-LZgTQ9@wxpV2hCbi%`M~;$ph1y9m-g26E zfRn*>_=;{C*`rfT&Qe@E#>%4=cGorqL)Kiic`x1U`W;Q~5|aiZQjSw8GZkB*dDWn#>!gk|NGd&k5P%R)De3?K literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/jbd.img.bz2 b/tests/ts/blkid/images/jbd.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..f0d7f9188b4d553d52f1c48cd1f635958df2d213 GIT binary patch literal 205 zcmV;;05bnVT4*^jL0KkKS!L-wBpfqFv007V(;NT_V|R@ z?r`!p`NcaVh#@7d>G}Hq%D}oy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FFDCeDGb|vPX2LItQfv;CRDrTPbmX?kirof02$nOGJ2lYkHq3?ldpk`6n za(;oNsPkZy_cMeAtYS@%7?hh_1MO^Y9|M_Vs#16`njf>>JwMG`0s&nKrjmk=7_=Oc|vh}Dp8s=-q*lj zDX}T;QsMlo{y=i{0{R+0Lzd4}R$~&EypXK4B7^oGmdTG@$XtD2 zo8QJO?)RI3udzF(Ex1qnTlYKV{MwNjr)#=Ir~A*Hnudd*0%s0A{B(%&Pmp)(>q&Cm zk``)<36xZdF>QEOx?7g$r8E5zRovN2A)r1bf)y?bg%yu>k(36zkU^nP3Du4C0g_Nm z!udDKsJ)I6$>|qT4oH5Ft2Yx{zjKmsqCwwo_Fmfbk2;`{j|y=ix)*24A|WtUTPSSe zT8>sH5h-#F#V2QW6IN^51NvF2sKTL?Kv)Zyswd!j3!7w$eoH=_O`cyI)xV;{6G7l+ z^;`@1B_1A8aGTie5z!)i0agFOHwZ_1EypmK4sYl$h2vrrX(Xcu?Rnt(ZGaJum zJZTm6T3Rw#{)foCZm3!~D*xDJJv8Zn2eF26Ib4O+TDz2gAQX2Te%}9r*?UO|`Z@ZO zxnEJm?Zcp7lq?32ycbnj8Xw#Dg%=TDbiMoEk*`0ik)wlSLB*qxUKL!R5Jnkjs&qdG4cx|FE|{QXO;iHYT>D{`P5B} zCU!P*?cBOk_5K5UvIm_Y+o^&6&PgP>sdj19fR+2~1!L5Pwo@VY9Ei88F$0e?x^(hJX9++qh=v+EO8XgOdBmXIKia914^Gk*f ar%Ecqx}&`-zn-c$`eT!`mBo1_>3;w%IsEhh literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/minix.img.bz2 b/tests/ts/blkid/images/minix.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..d11f3a88b7ef9a9f8edf92d9a5b0ef644e9f9752 GIT binary patch literal 138 zcmV;50CoRDT4*^jL0KkKS(BH1q-AL|Q2+n{ literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/ocfs2.img.bz2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}C2tYy~$ZyKbiL1P}lK4Kg`gNQj71Xb^_6qTb$57Q<|^>f?+!?SH-8GBqGcA@O%4 LQ-uiy1cL4`B+w#M literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/small-fat32.img.bz2 b/tests/ts/blkid/images/small-fat32.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..8b90f9c3c7669aadd7082a29aa1fa6b4c2836fa1 GIT binary patch literal 372 zcmV-)0gL`ZT4*^jL0KkKS<6SpWdJT2f4~3R)g;)V7yx4cUqLtT+_XRd02BlXKmq^) zqzFh!umN}|1f@ekpa94K01Sgb0000u$&*77iK76F1i}EoO*CndpcpDj5R+;>8ci}9 z9*Ahsp`bK04I4?O(?*jUs^*fcMipeKB;%llH4@5^2_iCIb|euJFmWsy)fX>gwIUHC zVOvU*QAs;$NQ6khsf|)Huk1Q$bMoC@d)HXyb*DP!>%z3Pk&UIisNnReV%Ozifv9pD zP7~;sEmE9rXN}9ZUWO+cn3%7;k95{tLun35CWKTV=E|3lYZ0A478M^PgXxe^AI}En z@v)JMT(sL$X_VYjn=4l>Uw4|T7daH)UvjN-9Bi(4^`^eDV_ksNVPkJ66Pd3}`zUL0sNW99O SYJL}=@pmLsg$WF_d}dJH-k@Fp literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/swap0.img.bz2 b/tests/ts/blkid/images/swap0.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..e61e375b9fc9daff4c28d3dab4855dc3373a1819 GIT binary patch literal 72 zcmV-O0Jr}_T4*^jL0KkKSz;0#Z~zJq)&a->00JriNPqwUfGMB=R6qa$6#&yg#ahuo eRn37w0rV3aq|a*rfBWZWmYp literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/swap1.img.bz2 b/tests/ts/blkid/images/swap1.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..fbab9edb20740536781a44773ece6cc806bcd714 GIT binary patch literal 120 zcmV-;0EhoVT4*^jL0KkKS(+5gJOBU(f7|E)0R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ll+rOi4R^M zpL%FIu#T7Y#3zg+;+E2TxBW5@peQ6t)B~R*$)VEjC68^n>$EM}IwUETtgsNCqE5bX zwWtK{n^P^1+~ViJd!Wft7!wo}YPz$hOM_B}QuX0XiO33Pnx#kjIt7m4gVc>S!~C3c z#AaWYR6KDA0%MV;J)k>!yY{gbU|H$?ny74=t`5NkjpgD%>t8xv07%oIET<*M{sz&I&#wibyU+IkGrj;=ik|Ln zfAe)08de`y*Vf6)6_wSOuhchKG_|z0U2pHSbnRC4-tHe5{B3yjzUBDj1M7rSr_bk? zRo1t5-tIq`tP}y;^$7rA6I@6Ga5$fpm6aT!PqeSM-caOCw)Uo-Wp+( zo2BUVOm5=vt)hI|DHBHGNMxMTPOh#K(hoa0HIg|YDs)K?*}cj&cf`J*ofrgZ72N)O z3$$Z-&ID+rK1-EA#4HIuQPib)QGV34|H72$kTI}o^CqEPa8aIg(zRs#%9FW!p;i&hJE?ipFz&Idcu#!Ye)=?BV&PtsW(6~dW+f*lRaB_&HxziB zyLs)hZKJv`2iK8T{P}?^PWbU?HE!ijmFs(>ga|B;sYf;xp{SV)N#n70En~WU^<<|7 z+mtzKU2xtD37=3?cYOZ_b!a3uM z(Tw=g+n054pKBHJjI{6;?$R&sQ9B_qZB)6HuwA&}xm?`YY;;yw`o#1JOl}cPc0t;h zy+wfMTiHLs5#{O8R_vVO62Gd1trKt7&&_S~p(sDq8f6@8uI*k{j#CUIy(auV@pN-Af(44B#%_Dq8NQyQoQae0*kL zq^)u+U_fQ<#j`b=#h%|B#@;t>HW(Y=K16(FJf3F-S=>7?aBBgl3B6#U$zYDU+;I5M_F2h4<%F`a%6oqS&U|Li literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/images/xfs.img.bz2 b/tests/ts/blkid/images/xfs.img.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..cf6982b4a2ba72e8117763cddaf6d9a32c28c651 GIT binary patch literal 443 zcmV;s0Yv^nT4*^jL0KkKS$i>C_W}ep|Ns5|#Hi>KKtg}%4$uPu48U|2kwAkGN7e8^ zK>$Ds3Q4d5mI0vBP&5Dl000000000Dq5!O>nLruVpD+T!G07RkfWw#gcU^)+<;L;5wH6O9lrIMsh46{eA~3py+{J6 zS;Bl`P{&3{fQSGasH_O^@qW970$j{aZQW@WLw*LE(nWB^=uiMa0J=bcMzJKW6jcxa zEyLj<71*4MP}9dE>?R1W1n~0?3V^Brvcd^Q)vXi_Fc={&TO<`+kVuN4$Ux;YaDjLa zP#=AhJ|fLRB8@t6n?66c(Uv2vz2e>{?h8~L8oGru##+vb@kV|}wW`5z05NU3PCXI? z2#c@8_z3ANNiJ{|cQ{aKAjFKYnDKoCKn6H4C4a`baM;|g13|wczC90~a!%`)l8fwZ la>>$qWT>J50l&)#h}$a#XpVk7n(ycSF64@Ep&<5Rx9-G{yUPFo literal 0 HcmV?d00001 diff --git a/tests/ts/blkid/low-probe b/tests/ts/blkid/low-probe new file mode 100755 index 00000000..cea84fdf --- /dev/null +++ b/tests/ts/blkid/low-probe @@ -0,0 +1,40 @@ +#!/bin/bash + +# +# Copyright (C) 2009 Karel Zak +# +# This file is part of util-linux-ng. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# + +TS_TOPDIR="$(dirname $0)/../.." +TS_DESC="low-probe" + +. $TS_TOPDIR/functions.sh + +ts_init "$*" +mkdir -p $TS_OUTDIR/images + +for img in $(ls $TS_SELF/images/*.img.bz2 | sort); do + name=$(basename $img .img.bz2) + outimg=$TS_OUTDIR/images/${name}.img + + ts_init_subtest $name + + bunzip2 < $img > $outimg + + $TS_CMD_BLKID -p -o udev $outimg | sort > $TS_OUTPUT 2>&1 + ts_finalize_subtest +done + +ts_finalize + -- 2.39.5