From 3ddd8e8ad4392f395117f657a317ff091cf59839 Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Thu, 16 Feb 2023 01:04:37 -0600 Subject: [PATCH] tests: Add pathological iso9660 filesystem tests These are not added to grub-fs-tester because they are not generated and none of the filesystem tests are run on these ISOs. The test is to run the command "ls /" on the ISO, and a failure is determined if the command times out, has non-zero return value or has any output. Signed-off-by: Glenn Washburn Tested-by: Thomas Schmitt Reviewed-by: Daniel Kiper --- tests/iso9660_ce_loop.iso.gz | Bin 0 -> 897 bytes tests/iso9660_ce_loop2.iso.gz | Bin 0 -> 904 bytes tests/iso9660_test.in | 17 ++++++++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/iso9660_ce_loop.iso.gz create mode 100644 tests/iso9660_ce_loop2.iso.gz diff --git a/tests/iso9660_ce_loop.iso.gz b/tests/iso9660_ce_loop.iso.gz new file mode 100644 index 0000000000000000000000000000000000000000..9c53c569b8e5c2441273d49f4c8e13e4b3303c24 GIT binary patch literal 897 zcmb2|=3ofBusfN7`Rxt={M#uq3<N2(O2EDtVk zV!mF;l$o*IlVjfrJNEhM(>tw&wEQkz$h$g?`Kr;{^NWwz@Be?_yzkLZnR$cYS&()@00TO-|oL;;k(=OmM{C=iVM z#_wqSvIkrf>qL%wO1MZ*@eTFc#D4Vlsq24hKSos?-|;s4BcIjWg#4*n%M0S}#LK*6 zd8sv(ZLaGJmh*?A=iX*Ncy8COvv@$BvV}UAExUOFfdmV~!x(?Ksxk zrK0w?3sn8izx&T{;OocR$I{=Vee?YBJpSODC#ye%Zd);Fuhnh6m|Lc2+~eEk&)ZsW z`{Zcdjp)!o zZ5)i{M*p+O6$Mgs?&?vT|@kyyUw*gv+V89HS3;*#`TJ;_n%t4sB_li zn`>4*zqn%6;>fF0)Gw}(5fA*lW2X4z6`E={OX8lL&523z6?}TNWZu)yFIMDy$|$R` z(3{=vx;N*}nXWxDQ!CB%S7%-cIbIr9vUpqjBd4QfC${Yl+-Wg)+hh&($iEg$Y|9O9; z{>Z9lzF+YF?B9bQs^+9VK7Z(e&Ca*$l^EU!?x^|p?Y})kjQVNo`YdodlHa_%`u03V Tj6@S-|DS2eE8$QE1||jom5H3- literal 0 HcmV?d00001 diff --git a/tests/iso9660_ce_loop2.iso.gz b/tests/iso9660_ce_loop2.iso.gz new file mode 100644 index 0000000000000000000000000000000000000000..f59e676475cfc8376256ba65047451b5ca969e5a GIT binary patch literal 904 zcmb2|=3rP?urHZ``Rxt={M#uq3<`+#@LT?l zg?-)QBTE*}RZ}c{9Q>yELuJ{_9m)%n)Op{A_2y(y8f5<9>;sh?Uh^KFSyM4EiAJ7cly!4-wLcf!dIHS*s@UA zhCja~?;X4K>u*FgyB}{_HA}l#|K+#ce>Hk9Z<)R1ZpnpS_PvRh z_DlPAH81<~V8yJpuhtYF`?~W>>>AfAm$vy?P2AM(q7c7Z zliiOd#<_pJSQ8i4oe>juanG9W#~Cp`pH|ex=zq!#d44%(n}*xhnn~%Ua=oW+DoN`u zI=o2E_4DFp&p`V#t5Y9W&Fk+fG(08dYT5nj(+a7lcUQbrv=84Xx#?wI%$DVw(}a$i ztd?`{KXvk=N&l>uJ+oYOPKCC=-q;m6d6wSpw`r5l&z}A9-B$T}u63rnyC&xpUCJp~ z_x|69FDEC@Z?=D|^7ifb{rl`C;(9mde2SEqqq_ZXD9eL-5xx0)|NiG^2tWDh-27Xh c^m5?%o16ExrDG"${tempdir}/${fs}.iso" || exit 99 + output=$(LC_ALL=C timeout -s KILL "60" \ + "@builddir@/grub-fstest" "${tempdir}/${fs}.iso" ls / ) || ret=$? + rm -rf "$tempdir" + if [ "${ret:-0}" -ne 0 -o -n "$output" ]; then + echo "FAIL ($fs)" + exit 1 + fi +done +echo "PASS"