From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pPzrh-0000wC-HH for mharc-grub-devel@gnu.org; Thu, 09 Feb 2023 00:53:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPzrf-0000ku-E0 for grub-devel@gnu.org; Thu, 09 Feb 2023 00:52:59 -0500 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPzrd-0002ci-4V for grub-devel@gnu.org; Thu, 09 Feb 2023 00:52:59 -0500 Received: by mail-qt1-x82f.google.com with SMTP id h24so854126qta.12 for ; Wed, 08 Feb 2023 21:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5oJb1ntzVNSIeqEnWvgv0l3d+uFTprrdD81cKyEBxRk=; b=ymKYPSjKknuJyYQnft0m93+X0oT/xGzW1nco7hyXiSHLvRy4rU8IWnLhpWoWRn2Qnl i5elkVhYdgJATx4UdNFLUZ1ZBJmDBJ9j733njz0MyO72s9vIZMMGsRnQ/0H3y2PziwnG uo0tvWorCEluej1YkW6bEUPocFrPycQE9ekc/dnIjPyzJtmbZkzmQO/I8enkeUiqvrVh bDi5mrGszPNhKd52vrkkYTR3LCgXOoBBJ12+05KdB02WcO0ICki9XAoORpbPcoAA5RQT yXKcZGkU6a5XQXumjrhOV1aEV+UTUPBWpEd6eEVkinI4XTwMfxkVKTu/r9BVJHmtvtv7 EiRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5oJb1ntzVNSIeqEnWvgv0l3d+uFTprrdD81cKyEBxRk=; b=GW2ZBrEgNxmG8yswiFCkkYmdr0wA9ZmB7V8Ayr4ktURJ54pjnyVPt7GxW+0BNgaRPx HLNMepBfg9J4MukseO7OTPlG3Df60qDA8lzjAFcXqtBunfkeEaulUuRRygL12oEU/dKC KbloQDcA2LlgqGQgCsIw6UETGZs9HvXuDjm42GL25uM07emi6J6Bct0m82rFJYvQxu5G 3EcbjZx4cbSJix+gW5s6o/9Yr5gs2f0rcGwmidHYHJ/sXz+7l+f5oCPFD45Nb2KCdCCu hZeN6mo3peD2AnsVZAAP+GD8fDfvngXgdAryY/EEMMA9gkVyTrgB1XXV5v8LK9o8vxdG TWLA== X-Gm-Message-State: AO0yUKUzKN6YTxneqsOjA43/urnqfFFfMcSp4PfAaCVeL5LuSd9AHoaD MmQprIfaHlQSebPufGmveIlsLFdLw/ruOtIY X-Google-Smtp-Source: AK7set+C8eg8ZgQJqxDpwhvGqkO1vo12kdyFlZ6/NuVFwjKDf4OVtl0mUnmzs6SmBYuVcpUFd0pMmg== X-Received: by 2002:ac8:7e8e:0:b0:3af:55cb:8761 with SMTP id w14-20020ac87e8e000000b003af55cb8761mr17326898qtj.47.1675921975184; Wed, 08 Feb 2023 21:52:55 -0800 (PST) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id e5-20020a05620a014500b006fcb77f3bd6sm674738qkn.98.2023.02.08.21.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 21:52:54 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Thomas Schmitt , Glenn Washburn Subject: [PATCH v2] tests: Add pathological iso9660 filesystem tests Date: Wed, 8 Feb 2023 23:52:17 -0600 Message-Id: <20230209055217.2046005-1-development@efficientek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=development@efficientek.com; helo=mail-qt1-x82f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2023 05:52:59 -0000 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 --- v2: Remove temp directory containing extracted ISOs --- tests/iso9660_ce_loop.iso.gz | Bin 0 -> 897 bytes tests/iso9660_ce_loop2.iso.gz | Bin 0 -> 904 bytes tests/iso9660_test.in | 12 +++++++++++- 3 files changed, 11 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" + output=$(LC_ALL=C timeout -s KILL "60" \ + "@builddir@/grub-fstest" "${tempdir}/${fs}.iso" ls / ) || ret=$? + rm -rf "$tempdir" + test "${ret:-0}" -eq 0 -a -z "$output" +done -- 2.34.1