From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pJ75u-00014L-AM for mharc-grub-devel@gnu.org; Sat, 21 Jan 2023 01:11:14 -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 1pJ75q-00013s-OT for grub-devel@gnu.org; Sat, 21 Jan 2023 01:11:10 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJ75m-0007LH-Bs for grub-devel@gnu.org; Sat, 21 Jan 2023 01:11:10 -0500 Received: by mail-pj1-x102d.google.com with SMTP id t12-20020a17090aae0c00b00229f4cff534so2725329pjq.1 for ; Fri, 20 Jan 2023 22:11:05 -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=aMUraeBYnJiHoIiqKd6BHrkSr/x0m0xrSCs/hLBAzFE=; b=UxIXxjQCN1VuFn7VsiDR7h/VPlHnu8h4CP4gVMGypJRhNzyFTdELjjkNHhkI+mtEqF b/fEg3gXzb88f3fROQsD+Y9XXR4oHmOsSmGlXMGqhfrcXlTCNZMvlkZI0tiYgm2ntGzm GfWKSq9VWJp6l10+7TnkD1H4/IlFF3r5HJ60s0RkHyusFFdg994svf8HRV7YUwtr4QRw 7ppkm+wQXOeqUFXJDu162+kRujlGq30XFP8FevYWvMqPHT7oCKuV4aLMqoQSKMRCUNK0 q/ZqkdA/peLbwytGqh/OJj9pqE2tg6sRE2D73t4kFTXmSeOkoCWaePybYHaq8pVM//+q eAbg== 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=aMUraeBYnJiHoIiqKd6BHrkSr/x0m0xrSCs/hLBAzFE=; b=X8II4oFQf6IeCzx2KcEv1ZiUV32CMYMHPupLWGKmGI+CKW0mMf2jjqVwscZ7tMHbiX EQ7KpPkEHzcYPIans3ZpLjjnVAhNK70LAWSblFfWp44wT/kIhClwAoTRGMA5M7L4kv9T EvgXwgiEXnHAbaEZyQ7yd0/Icnm9p7Nw58sq0Krd3XB2pM3kdBwQmU6RRClZArGFyasr u61bVsjiXH0LNFq3akj5lPLTt/zDMic9FDKlOq0eICuwVRSAyvMu5IfHslni3oyzMEJs 2pWhPMNKJEVC9KndjyKwBcoS/Zcy42rxlTmm9N4E4O0dF3PmHA9aoexRz6vZaD6AMIn/ m0eg== X-Gm-Message-State: AFqh2kpa+P6m9nFoPPbZcGN9qR/idWyFjvORK8ZP2gpDZ3jXIEzgYHQJ TRk3U738Ottx54sorXHMKAmPrTfJBo98FxV1 X-Google-Smtp-Source: AMrXdXvK1C6dL8sAyuDQr637xp1hNc6t91yErY7jgl24FpBp4B6WBj8da6UK6DCeu0yTDbNPvn5wBg== X-Received: by 2002:a17:902:c24c:b0:194:7696:b0f9 with SMTP id 12-20020a170902c24c00b001947696b0f9mr30847300plg.66.1674281463877; Fri, 20 Jan 2023 22:11:03 -0800 (PST) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id u12-20020a17090341cc00b001888cadf8f6sm9241267ple.49.2023.01.20.22.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 22:11:02 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH 0/3] Allow easy re-running of grub-shell from failed tests Date: Sat, 21 Jan 2023 00:10:43 -0600 Message-Id: <20230121061046.1619695-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::102d; envelope-from=development@efficientek.com; helo=mail-pj1-x102d.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: Sat, 21 Jan 2023 06:11:11 -0000 When a non-native (eg. grub-shell/qemu) test fails it can be useful to be able to re-run the grub-shell invocation in at least two circumstances. 1. The tester wants to re-run the grub-shell invocation with extra args so that QEMU starts in GDB attach mode for using GDB to debug the test case 2. For a tester who wants to send a failed test case to another developer for additional debugging. It would be nice to be able to just zip/tar just the failed test case test output directory and allow the extracted directory to easily run the failed test case again. The results in this case still might not be the same if the sender and reciever do not have the same QEMU. Though when the QMEU versions are different, I expect the emulated execution on sender and reciever to be close enough to produce the same execution path (maybe not with super old QEMUs, but I don't think its something to be concerned about). The first patch is needed to make the other two useful. Without it, I know of no easy way to enable grub-shell's debug mode when run via `make check`. And if grub-shell is not in debug mode then it will remove most/all of the generated files, which would prevent debugging. Glenn Glenn Washburn (3): tests: Allow turning on shell tracing from environment variables grub-shell: Create run.sh in working directory for easily running test again grub-shell: Add $GRUB_QEMU_OPTS to run.sh to easily see unofficial QEMU arguments tests/util/grub-fs-tester.in | 2 ++ tests/util/grub-shell.in | 37 +++++++++++++++++++++++++++++------- 2 files changed, 32 insertions(+), 7 deletions(-) -- 2.34.1