From patchwork Tue Dec 5 20:40:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 750392 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1897035wrc; Tue, 5 Dec 2023 12:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3EII5tnIzGVLibDNQvnlfHZdLrfy1uyP+WTJFyaEIW47GMv6wdZhoJCdls4VNkNRdwSzZ X-Received: by 2002:ad4:45b2:0:b0:67a:a3dc:3f71 with SMTP id y18-20020ad445b2000000b0067aa3dc3f71mr1975871qvu.59.1701808975993; Tue, 05 Dec 2023 12:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701808975; cv=none; d=google.com; s=arc-20160816; b=cOmQgOnFkQcs3cVjD3WH4Ri2f2KsTrqlStljQEEjJKBEGQpmN17ToxEXWwOiIbFovj EHWkp/2eoFO4puDG9/b+NhDisgnvpN4GOW4NMQhk2MbMD+M4KAav4b+2SBNo7iOIl+g/ 1uh1us8CNVCBUaOr+JXB3I+Ea2L25jG+i2FWfbJ2ZceW5BXSCANyRpnezbtdpo1h9w6C 5Lcl3yMP57eTOkZTHwEXeFQ1SCldmNpM3ATtxcf5NQqpQ5F+pA1oHUZ9VBh4jWScsnRr blWox2nLtYVKQv+LwVGtPK/ekCDE7zGyUCNm5U9i3u+ORy3cctIqbP0h913of0XN+LY4 lQrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dc4DC6j7/1Sz+Ur/zdr+xWcs+c/Czka+caIepOUIoFE=; fh=WQskExECjOtS2oBrq9x2ue7OeVr6ye1r4N0aDOSz0G8=; b=gSBQD2XVhGJNj3hVF8cH3xIOY2Dz8NHpSwl8ZtguyDstEWexP8NlcZ6+7P0SLo2HVU vVpcWnAHb/ZACRElATTziUnXu4vDDOFG40njSPKMozJmPS2lNbpTpxiGG1sTDCuCXhP/ Cp+VrJTJcNKbq1K5S5aGr02CGbvRuQOlBQ0zq7iqKEDA4yvtL0qfAPAZPOPi5zK0yPh4 LasOVwdJNNCjGjHhWVkHcPgMWQuhJ0V+e5DNjyKEUwHnIis+E/7UhoAjXJsuJfQ43QHC Pi8N5eRF2jhCSc6CFFD4bfgPzOmZ1o7ObkCwBP7G/KLeHJVoPcWLZ0XqmlkP/UpSFM95 tO1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qoifM3vm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f4-20020a0562141d2400b0067aca07cf9csi5533300qvd.493.2023.12.05.12.42.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Dec 2023 12:42:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qoifM3vm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAcEC-0007Nx-2B; Tue, 05 Dec 2023 15:41:12 -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 1rAcEA-0007NF-5o for qemu-devel@nongnu.org; Tue, 05 Dec 2023 15:41:10 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAcE8-0002E3-CL for qemu-devel@nongnu.org; Tue, 05 Dec 2023 15:41:09 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-33349b3f99aso76837f8f.0 for ; Tue, 05 Dec 2023 12:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701808867; x=1702413667; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dc4DC6j7/1Sz+Ur/zdr+xWcs+c/Czka+caIepOUIoFE=; b=qoifM3vmWlx6eNJ0e5Ix//uFhEquDcc42gmLS+7MU4COBOVWT0fC2InFmOLTdbU+uq Iagmrd/i12vuBrWL+5kDYT1mSw/kRlU/Pm+8SW6etWvMFwDpvvSn2S4es9obCFw6wXIL 8F1VfVG9C3yaPEwvUyCQmlJS7qD0wKwONErSvnJQobN8wfUpTdVu4SooasboOL43QsX1 gxuZoeVA5vGxRL06uQ4ncggvYNjkcFPYg6Pyse2OZpmyoYrMKH9Kblk9J0aq8d8vX2ZX LuTBJeXgx1TIvikTwJqg6rUmgxL6OdtVFGCjHaKjb7lRoNHFA7aXOkzieOipcIap7sdo DOQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701808867; x=1702413667; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dc4DC6j7/1Sz+Ur/zdr+xWcs+c/Czka+caIepOUIoFE=; b=t9zU2Bja1dQok1HMOCNKSZv0qN8/8r6ncFuDL47PP8XhxuWnphju571YnjJ3qDrQFo UPQoqPv2rxLFw+e6UmyexZW2eEeNSyno20N0eapoI+3w7BMMSpF9qCTr9Nv1YOQ6ROag 8JjptMFw6SILSBSa9SFfj4T3YBXgunh4Ji9XwF/fre6uCpwXzTC8tb8g9QAu/e2RT81q nWl5ZOk3d4+qs2QTTajP09GYDS2VVNH/jzx4wOql1+FOvM6XjZzidfvHGFCi4xZ1YjRM SAiTqV9b0DrKr0DkLvePN33W92y0auvE+huJ78+KPfq7OCnweWIKKQ45Hk+VTT8EnaeR HzSg== X-Gm-Message-State: AOJu0YzFjMgSbloRv/rnyOWDu99XC4wB4kCPzPEtBB5nc+diV39ptgSu M3oZ/ec1UtNdBJPQswPhoJDBtg== X-Received: by 2002:a5d:67c6:0:b0:333:3cf1:cb84 with SMTP id n6-20020a5d67c6000000b003333cf1cb84mr3314839wrw.139.1701808866828; Tue, 05 Dec 2023 12:41:06 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j1-20020a5d5641000000b0033349de2622sm6333379wrw.94.2023.12.05.12.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 12:41:06 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2678D5FBB8; Tue, 5 Dec 2023 20:41:06 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , Beraldo Leal , Eduardo Habkost , Richard Henderson , Wainer dos Santos Moschetta , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , John Snow , Pavel Dovgalyuk , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 01/11] tests/avocado: add a simple i386 replay kernel test Date: Tue, 5 Dec 2023 20:40:56 +0000 Message-Id: <20231205204106.95531-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205204106.95531-1-alex.bennee@linaro.org> References: <20231205204106.95531-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org There are a number of bugs against 32 bit x86 on the tracker. Lets at least establish a baseline pure kernel boot can do record/replay before we start looking at the devices. Signed-off-by: Alex Bennée Acked-by: Richard Henderson Acked-by: Pavel Dovgalyuk --- tests/avocado/replay_kernel.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py index c37afa662c..1eaa36444c 100644 --- a/tests/avocado/replay_kernel.py +++ b/tests/avocado/replay_kernel.py @@ -82,6 +82,22 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, class ReplayKernelNormal(ReplayKernelBase): + def test_i386_pc(self): + """ + :avocado: tags=arch:i386 + :avocado: tags=machine:pc + """ + kernel_url = ('https://storage.tuxboot.com/20230331/i386/bzImage') + kernel_hash = 'a3e5b32a354729e65910f5a1ffcda7c14a6c12a55e8213fb86e277f1b76ed956' + kernel_path = self.fetch_asset(kernel_url, + asset_hash=kernel_hash, + algorithm = "sha256") + + kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0' + console_pattern = 'VFS: Cannot open root device' + + self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5) + # See https://gitlab.com/qemu-project/qemu/-/issues/2010 @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') def test_x86_64_pc(self):