From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816520; cv=none; d=zohomail.com; s=zohoarc; b=bRHyGwc+zJ6IKxKTXS8yiqAZoKos4X+jD8aqsHvjOb8oJwQXfZLCcXqXeOzGiy1S52//AWN3Djrj9MvUmZ0NwNWPnfMZfb0B6zd8c4bI91/DezmsO4EJ3+OJh48L842vBxE6uWbZo3uRCfKg1S7Q+26t+QCQxeDtu5zaXnB6mr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816520; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dA2kU1DEwZZZ7zmBT/sw04BigiN6qJsZ6lFPExHuKDU=; b=ctmjmHdjvaetsL+MDWt31MpfwF5tYOaoEQFJF7A+E6PXTbNEVCVbRS/bh8g7OkgFxrClffx3RgDeo4HWWO7wHzO28nfTnM5VOdnXia568vLguEvBKDfv8KzWdXOHa6EKSrijI1xKFRAHM8R2sqeaAEhjFblqoDNWJYfc0O03flc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816520855743.1634266487107; Mon, 22 Jun 2020 02:02:00 -0700 (PDT) Received: from localhost ([::1]:49550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnIL1-00029S-Ia for importer@patchew.org; Mon, 22 Jun 2020 05:01:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIIu-0008W9-45 for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:48 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43094 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIIs-0004vo-Af for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:47 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-7Hn289Z-OpyeOU1sbyW0sg-1; Mon, 22 Jun 2020 04:59:42 -0400 Received: by mail-wr1-f69.google.com with SMTP id o1so10502020wrm.17 for ; Mon, 22 Jun 2020 01:59:42 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id d28sm18255347wrc.50.2020.06.22.01.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dA2kU1DEwZZZ7zmBT/sw04BigiN6qJsZ6lFPExHuKDU=; b=cCOJjqcRFrhxMUpn3KVGMpRmvakrNB5CbAJkS/0xp1R1GsZ3uq2xfgU43TyNc1iH8Hkzlu mgeIzNsprZnLuhoyUf4cCvvwQZz/EfWOa1m9+kmwLjfCL1B0GakTjyeQUtjPe4JXO1OPrw d4GGLvFYWTAf2ik41/7wWyIYFfdQCJg= X-MC-Unique: 7Hn289Z-OpyeOU1sbyW0sg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dA2kU1DEwZZZ7zmBT/sw04BigiN6qJsZ6lFPExHuKDU=; b=miWsbrC1MvpVig2Y/Y6i8jQukEVQe0qdaMvmwXf3blpQ1OAFejfSUhakdSI3GRxES0 a4RBkGyGcP7LKvyIgesAdB2cHB5HG8iCAlSFLVps2c40HbM6PjDOOPUle/xBaeY2k9rA 4C7Wj5d9niqISUke9tXbughEv2xnWJym77Vy7gWmzKBmO1LrOEMdu6vh1Wxe4kNCK9co RmvGorqLiJsK3blkoyGCHsq2xENJpmxyqjhLq1IdTlDPnRam7vMgHYGeuJblu6Swcfyh 8zDdUFYjOIacm8KPMcv0CPshlzP6wELbFdhJ9aOak8ttyPD/4UP6CXQh956D1DbdT16a nmqw== X-Gm-Message-State: AOAM533+l8CSrzBys/isadIov2+zXm6+QZ+ccsROpG50mxp/HV7X2+wX B4fP/YQknNxvtPJXM+mtundc4ahjfnGf7Qx+B6iQoB/1gc8fjbN98YYFMGbz/47VchD7wDCq70w imVQ1/ceGe6V7kIk= X-Received: by 2002:a5d:4b44:: with SMTP id w4mr10617636wrs.275.1592816381466; Mon, 22 Jun 2020 01:59:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSMEpyYK2ruAvmQohNNOv6nLVPfEyQLRJoEa5C31JqfCcJK+X2EeX+jWmHYCiI0GWpKLFLyg== X-Received: by 2002:a5d:4b44:: with SMTP id w4mr10617612wrs.275.1592816381243; Mon, 22 Jun 2020 01:59:41 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 1/8] MAINTAINERS: Add an entry to review Avocado based acceptance tests Date: Mon, 22 Jun 2020 10:59:27 +0200 Message-Id: <20200622085934.16441-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 02:57:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Wainer dos Santos Moschetta , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Acceptance tests can test any piece of the QEMU codebase. As such, the directory holding them does not belong to a specific subsystem with designated maintainers. Each subsystem covered by a test is welcomed to add the test path to its section. See for example commits 71b290e70, b11785ca2 or 5d480ddde. Add an entry for to allow reviewers to be notified when acceptance / integration tests are added or modified. The designated reviewers are not maintainers, subsystem maintainers are expected to merge their tests. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Eduardo Habkost Acked-by: Cleber Rosa Message-Id: <20200129212345.20547-30-philmd@redhat.com> Message-Id: <20200605165656.17578-1-philmd@redhat.com> --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 955cc8dd5c..7b1262e925 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2941,6 +2941,14 @@ S: Maintained F: tests/tcg/Makefile F: tests/tcg/Makefile.include =20 +Acceptance (Integration) Testing with the Avocado framework +W: https://trello.com/b/6Qi1pxVn/avocado-qemu +R: Cleber Rosa +R: Philippe Mathieu-Daud=C3=A9 +R: Wainer dos Santos Moschetta +S: Odd Fixes +F: tests/acceptance/ + Documentation ------------- Build system architecture --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816526; cv=none; d=zohomail.com; s=zohoarc; b=PxplaliwJhb8MfnX0Z7LORCY3jpkir/wGlfc+2bcPrs7qu+TVjEk7dLcogECbZK9y5aeRXdTPGSejC703bSkUG4S6Z5SW8bGXSYDdw7WOhXRIzgjwh2Y6L+7e/XYvvISjoWRU6sqBpSVlGSJsuSjcyasiOinaP5GmNbrUQZq4dc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816526; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0hSU+BMWKQyHy/WW+Cpq/77uiKcgbcUlV/jkb6wTCXk=; b=VeRjEdm0XDvlpyCUJ6TJgaLWys1tctlIYUfg6eH5PScqZN6cS/QhFv2o8dh+zFJwc1ZPbZtLoCZ5FHRQZVDPnWjhHAkHFednLjl5/Xc84uuu4X19vu8LF4QsV+voYxBcOAZCWX7vBSdZuq5msPcPPTNuHCwYfZezvcaUmsQguuM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816526677995.5629511600008; Mon, 22 Jun 2020 02:02:06 -0700 (PDT) Received: from localhost ([::1]:49968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnIL7-0002Jr-4Z for importer@patchew.org; Mon, 22 Jun 2020 05:02:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIIy-0000G3-0a for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:52 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:47260 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIIv-0004wC-LI for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:51 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-392-ReXro_8lNEubnNgIGZyb7A-1; Mon, 22 Jun 2020 04:59:47 -0400 Received: by mail-wr1-f72.google.com with SMTP id l3so1285292wrw.4 for ; Mon, 22 Jun 2020 01:59:47 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id a3sm15694267wmb.7.2020.06.22.01.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0hSU+BMWKQyHy/WW+Cpq/77uiKcgbcUlV/jkb6wTCXk=; b=DLf30PI29D8DL628LVKKBLDb3RO34QloP18g5IhACySP+HxQueBGKfJvbeJ6vHyV6wP/B0 o4FdSol15+LlmOZ0DN0CguBC/6EqXVChnG553HRKa7jZgBNQ1DMlxyPrFHb8XI6g+wjNmx BEDWsfmvQ16bihFL63/0f1PvhzUO2xM= X-MC-Unique: ReXro_8lNEubnNgIGZyb7A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0hSU+BMWKQyHy/WW+Cpq/77uiKcgbcUlV/jkb6wTCXk=; b=CPw+PhZ5z0eJ7OQUtu0fSIhcZulyISXS7uLuZ2RZSDLdfCFol0VAuPXECUuanUpnye GjM7DzbDmPiU3l9ltJNG+mdt4V+DBxr1lsPCqAV1Xy9j7K9m5l7J4UZVQkfzv5xqNWfa POIfhI37z+n8QS6/QC0qCNRCleQg+bnjQbDmT3V/N5phXqBLX1avITHSpCLrAOJIwJBe wMomgLKnmPBYYh5+9m6vBWx2w5H+COa6U7zNxfp6JpuzPOpkNIxC92LF1DmvPvf/PQ9V OMhjAjMfvj1qahBAzSs5Ng9iRFjDkn5vinDASz9pH+40Le1KSM7S6ATlRXRWELH2gbTJ wRdA== X-Gm-Message-State: AOAM531I1vNZsuhbUv2t9t9x60Tz9pNfD2kxfG5lz6NftfSsiurQdY32 RjxEwDgc0bLOnlKUy48XGjf2xGD85hIV6V7P34YZoc76kTnKSB35cjoxZn3bJfAbw/m7Q5Vg6SO lQ4htCbfA6o6MUC8= X-Received: by 2002:a05:600c:218f:: with SMTP id e15mr11151757wme.187.1592816386170; Mon, 22 Jun 2020 01:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2ukYaeto6YYI3fHCMY5R5hnEcaIxGoeKfCm4JQr8EtzeEh6vHsVbzZ/CR69oJtrDZNbwaOQ== X-Received: by 2002:a05:600c:218f:: with SMTP id e15mr11151733wme.187.1592816385900; Mon, 22 Jun 2020 01:59:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 2/8] tests/acceptance: add base class record/replay kernel tests Date: Mon, 22 Jun 2020 10:59:28 +0200 Message-Id: <20200622085934.16441-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 03:17:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a base for testing kernel boot recording and replaying. Each test has the phase of recording and phase of replaying. Virtual machines just boot the kernel and do not interact with the network. Structure and image links for the tests are borrowed from boot_linux_consol= e.py Testing controls the message pattern at the end of the kernel boot for both record and replay modes. In replay mode QEMU is also intended to finish the execution automatically. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073589099.20809.14078431743098373301.stgit@pasha-ThinkPad-X= 280> Reviewed-by: Philippe Mathieu-Daud=C3=A9 [PMD: Keep imports sorted alphabetically] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + tests/acceptance/replay_kernel.py | 73 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 tests/acceptance/replay_kernel.py diff --git a/MAINTAINERS b/MAINTAINERS index 7b1262e925..dc61830c64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2534,6 +2534,7 @@ F: net/filter-replay.c F: include/sysemu/replay.h F: docs/replay.txt F: stubs/replay.c +F: tests/acceptance/replay_kernel.py =20 IOVA Tree M: Peter Xu diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py new file mode 100644 index 0000000000..90986ca503 --- /dev/null +++ b/tests/acceptance/replay_kernel.py @@ -0,0 +1,73 @@ +# Record/replay test that boots a Linux kernel +# +# Copyright (c) 2020 ISP RAS +# +# Author: +# Pavel Dovgalyuk +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# later. See the COPYING file in the top-level directory. + +import os +import logging +import time + +from avocado_qemu import wait_for_console_pattern +from avocado.utils import archive +from avocado.utils import process +from boot_linux_console import LinuxKernelTest + +class ReplayKernel(LinuxKernelTest): + """ + Boots a Linux kernel in record mode and checks that the console + is operational and the kernel command line is properly passed + from QEMU to the kernel. + Then replays the same scenario and verifies, that QEMU correctly + terminates. + """ + + timeout =3D 90 + KERNEL_COMMON_COMMAND_LINE =3D 'printk.time=3D1 panic=3D-1 ' + + def run_vm(self, kernel_path, kernel_command_line, console_pattern, + record, shift, args, replay_path): + logger =3D logging.getLogger('replay') + start_time =3D time.time() + vm =3D self.get_vm() + vm.set_console() + if record: + logger.info('recording the execution...') + mode =3D 'record' + else: + logger.info('replaying the execution...') + mode =3D 'replay' + vm.add_args('-icount', 'shift=3D%s,rr=3D%s,rrfile=3D%s' % + (shift, mode, replay_path), + '-kernel', kernel_path, + '-append', kernel_command_line, + '-net', 'none', + '-no-reboot') + if args: + vm.add_args(*args) + vm.launch() + self.wait_for_console_pattern(console_pattern, vm) + if record: + vm.shutdown() + logger.info('finished the recording with log size %s bytes' + % os.path.getsize(replay_path)) + else: + vm.wait() + logger.info('successfully finished the replay') + elapsed =3D time.time() - start_time + logger.info('elapsed time %.2f sec' % elapsed) + return elapsed + + def run_rr(self, kernel_path, kernel_command_line, console_pattern, + shift=3D7, args=3DNone): + replay_path =3D os.path.join(self.workdir, 'replay.bin') + t1 =3D self.run_vm(kernel_path, kernel_command_line, console_patte= rn, + True, shift, args, replay_path) + t2 =3D self.run_vm(kernel_path, kernel_command_line, console_patte= rn, + False, shift, args, replay_path) + logger =3D logging.getLogger('replay') + logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816691; cv=none; d=zohomail.com; s=zohoarc; b=XuC+EUtRxasKfZv4d65a6s2RcDG2JoR3LqWulIMIsVTQSPzAVI05cbZf+HhbpUdNkzqnJF2+CAc6DAPKRI5JFd+LU4RYB6PNiLBJ8C0qh3wDbIgLUBxVIM9y2LIRIEAfLSdn3+URYa3xBBkQ+PZXlM1fJLADY84D9p2TaFO97R0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816691; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aySqTw94TJE6dGdR+I3DuxPagwCXJ7ddJdX68nA3YAI=; b=CPexwcgB4qeqtocmvjwRms6uTRmk0UwycySE47YnnX4vmG8FXr9NcZrY/YB2oGpchRw/QPJBJoE/Ty1luiM7QyssCKg2lskRcVQCUqDRPWwlsmTLDlY+DitVldggl9LVaAxrk3vsyx6jbOQnZhjLZNyR1Q6juC7p50Z/6nldnak= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816691488574.6268558100701; Mon, 22 Jun 2020 02:04:51 -0700 (PDT) Received: from localhost ([::1]:57576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnINm-0005gs-0o for importer@patchew.org; Mon, 22 Jun 2020 05:04:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJ4-0000as-7j for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:58 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:57291 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJ2-0004wZ-BB for qemu-devel@nongnu.org; Mon, 22 Jun 2020 04:59:57 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-290-57Im9wIIMYqVXVmzXJ5_lg-1; Mon, 22 Jun 2020 04:59:52 -0400 Received: by mail-wm1-f70.google.com with SMTP id h25so6732829wmb.0 for ; Mon, 22 Jun 2020 01:59:52 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id m65sm15492287wmf.17.2020.06.22.01.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aySqTw94TJE6dGdR+I3DuxPagwCXJ7ddJdX68nA3YAI=; b=On6WfGCBR2xHYLbx+20ebnkOCUqKyyxpbdVhHos2dFOMGVvYW9H9skJ2kBt544WsqILGx7 ElYZG5Iz+eckOjogeCGkOQv7NzgLFSjsdewb2V+6syCyfhfQM5hxULY+fuLBn5pw9M0yfR m92z5sWrEpKLeN45+NeBuN0rudjEEHc= X-MC-Unique: 57Im9wIIMYqVXVmzXJ5_lg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aySqTw94TJE6dGdR+I3DuxPagwCXJ7ddJdX68nA3YAI=; b=cM67Vg0redCS1sI8QnHolh8XovccgPQZ2mDudEyhDK3a03/I9TbkRZAy5SBWXIQrxK jENIeOzT/6skDjqokIuTQZ3GgwQIHq9a5i1e7U9Qp78bcZXoUsZA0pekfeuaXPU2TCm5 nR3X1Hd46d5Hx0vl2jhSt8utAebmmhzCmUWAZ0X6CoK8MK9n5tUJkZB+uW7gZOa6n66k KPbX5w8ZsBrU9lJFo1nPCupSH51kfdcl492G8lWuMtXQIlTjmk9DLWhGulotMoJnob/s NBV2HmWfGfrMoEZy1WOaeDLnB3bE5iD8JKBtwLWiuXIZHaGF7ZfULetZGBcbOAdrRSq/ 07EQ== X-Gm-Message-State: AOAM530pObxdIKRrf/N54weJZ3ShroynMIMbAGSketLJrnNpGLL1SnCR cixs1sgla8ND2CJKQGYvVp/L//dMz+xImMvVLg8DxNqdHTPX0yvcCXdgkx48lilCzXfd2AvJXVL wzE39yNwE62ZI4yg= X-Received: by 2002:a5d:6a01:: with SMTP id m1mr18765409wru.115.1592816390768; Mon, 22 Jun 2020 01:59:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWFzCsKQ36XkKF6tWm4lHCmGqc2UKuDfevVpxq6/Bo5DQl0tc0ko9uBP5badTYXC2rqoYKBw== X-Received: by 2002:a5d:6a01:: with SMTP id m1mr18765390wru.115.1592816390615; Mon, 22 Jun 2020 01:59:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 3/8] tests/acceptance: add kernel record/replay test for x86_64 Date: Mon, 22 Jun 2020 10:59:29 +0200 Message-Id: <20200622085934.16441-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 01:27:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a test for record/replay an execution of x86_64 machine. Execution scenario includes simple kernel boot, which allows testing basic hardware interaction in RR mode. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073589656.20809.14010247947948822435.stgit@pasha-ThinkPad-X= 280> Reviewed-by: Philippe Mathieu-Daud=C3=A9 [PMD: Skip test_x86_64_pc on Travis-CI] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index 90986ca503..64956e85f1 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -12,6 +12,7 @@ import logging import time =20 +from avocado import skipIf from avocado_qemu import wait_for_console_pattern from avocado.utils import archive from avocado.utils import process @@ -71,3 +72,20 @@ def run_rr(self, kernel_path, kernel_command_line, conso= le_pattern, False, shift, args, replay_path) logger =3D logging.getLogger('replay') logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) + + @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI') + def test_x86_64_pc(self): + """ + :avocado: tags=3Darch:x86_64 + :avocado: tags=3Dmachine:pc + """ + kernel_url =3D ('https://archives.fedoraproject.org/pub/archive/fe= dora' + '/linux/releases/29/Everything/x86_64/os/images/pxeb= oot' + '/vmlinuz') + kernel_hash =3D '23bebd2680757891cf7adedb033532163a792495' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + 'console= =3DttyS0' + console_pattern =3D 'VFS: Cannot open root device' + + self.run_rr(kernel_path, kernel_command_line, console_pattern, shi= ft=3D5) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816697; cv=none; d=zohomail.com; s=zohoarc; b=WvbfpXT9ERSdpC5fIbFjbvNT9oZWtcYwRZZmyiNjxMIqOggca8u7qTRNrDXDdy+dcjwFaJc4xF/jujD21tbQhPXsvhYGArS218QLH1VNOtK8dMjTK9OPrg3+DFH7iv1+0rATHuI9YPncn7R/xGq7fBXj+9GplVuYK5KepDWomTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816697; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=qvzPrjknpHhvnClu+pyh7kfIagFIHhbvIfdKUMdjTJU=; b=Z7SQriUG3gXPWzOtsoqFMcNcvxKp5RinYaJkyNbbhxxsY0w1+jLHjU0IU5oGdazssItsqcte6GxCDs5jARanJ/grArsLiLtywdBA6o016cE/64/dopo/wC4dJ33hNfaRr/eje/IMHjmGDs208mTlshvEfeyL9puOaceruFvbhek= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816697323898.2085236331872; Mon, 22 Jun 2020 02:04:57 -0700 (PDT) Received: from localhost ([::1]:58104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnINs-0005w6-0F for importer@patchew.org; Mon, 22 Jun 2020 05:04:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJ7-0000lD-MF for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:01 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43160 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJ5-0004wy-OH for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:01 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-93-VH3zPBDuOr2QU8cwdGFyug-1; Mon, 22 Jun 2020 04:59:56 -0400 Received: by mail-wr1-f69.google.com with SMTP id o25so8684254wro.16 for ; Mon, 22 Jun 2020 01:59:56 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id o9sm16835964wrs.1.2020.06.22.01.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qvzPrjknpHhvnClu+pyh7kfIagFIHhbvIfdKUMdjTJU=; b=ODl2UkT5NNPkV01bCY5/Q7ejBI5yEE9fTPEtSirt71J8d8Z7INrGEGFWQ4VObVu9/U/HNs Darm+guXId69F27GUWUJujO0aeYRqMJxaEvuLtJrFN0udMiiSWde4KYHAH8JLxHUf12nz1 LvwnrWnSGRQtq3IWG3Nf4Hzv4rgoY/U= X-MC-Unique: VH3zPBDuOr2QU8cwdGFyug-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qvzPrjknpHhvnClu+pyh7kfIagFIHhbvIfdKUMdjTJU=; b=IimqgVs2cjx9BPfxQN6pM/v+Xu6nmga2/cZQDvbeR9Ei9j+8YssNPnLxWa3msVKsag 0l2fVbbi5vvGhMwyu+1TAv9lrdBjzMDHumD4J9H/l+uycBVfHKH0bRdc/2O3whpiyd3i VfO6a/aNmqKDLW2N+eeUVU8bAPOlEqKoSn4idDmjl+d+mjRaqNdacwvVXfx8J6iDYpA2 x8XqzOSvtvVmzYZ+tGnuCqnhWXPFk7BXJuwuUtgBs5srJV6qPqU9iZ1q2eVHjtVExJSv RIBOn7Xk2C98uPBPSFaXz1y4D/IvNRj/IF15VyyFQst2PVBzL1zdn1syx5nQtYE0gIqT rZVA== X-Gm-Message-State: AOAM530QG+osbteXz8c71Gk/d3h9Q7mmXMUkToy2iHA/nw6KVGqZvCAL VdtDC+Fr2TIgsvINg61OOZ/mCXjAVFITRfO2TuOnFIbVn0IYVvYMWXhg0Bwnty6rpQT8b+iYzv4 BIts1dmtfcAUVrNo= X-Received: by 2002:adf:f445:: with SMTP id f5mr9404556wrp.339.1592816395413; Mon, 22 Jun 2020 01:59:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2tp/8zBlUJ2WvQOpuU8+jKgHNmfs4tsHjNPhC7/gxRUJ9wWHLic6YLwsk7BVnFVidi2u+gg== X-Received: by 2002:adf:f445:: with SMTP id f5mr9404534wrp.339.1592816395196; Mon, 22 Jun 2020 01:59:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 4/8] tests/acceptance: add record/replay test for aarch64 Date: Mon, 22 Jun 2020 10:59:30 +0200 Message-Id: <20200622085934.16441-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 02:57:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for aarch64 platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073590231.20809.9842179251741585482.stgit@pasha-ThinkPad-X2= 80> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index 64956e85f1..60559a13ad 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -89,3 +89,22 @@ def test_x86_64_pc(self): console_pattern =3D 'VFS: Cannot open root device' =20 self.run_rr(kernel_path, kernel_command_line, console_pattern, shi= ft=3D5) + + def test_aarch64_virt(self): + """ + :avocado: tags=3Darch:aarch64 + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dcpu:cortex-a53 + """ + kernel_url =3D ('https://archives.fedoraproject.org/pub/archive/fe= dora' + '/linux/releases/29/Everything/aarch64/os/images/pxe= boot' + '/vmlinuz') + kernel_hash =3D '8c73e469fc6ea06a58dc83a628fc695b693b8493' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyAMA0') + console_pattern =3D 'VFS: Cannot open root device' + + self.run_rr(kernel_path, kernel_command_line, console_pattern, + args=3D('-cpu', 'cortex-a53')) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816565; cv=none; d=zohomail.com; s=zohoarc; b=JfLwcQ/IJa7CH3bg3g3nqXW+8D4MVUvdoc9JapYmMj5gFRWiOX0SzXfziTJXZeKi2dZiTsS6rlS6a4i9bBUGFmWWRdc1WXLev/lBBqRA5OIHFSDOWS1LNRc2SzEDtt/dkTImyisnuJSrI7UfCIvX2HX84J5G8QbKpfIZWFZT/t0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816565; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FlCLYqnyC4KOoHC6MnLT/maL0ukmI8qUjgkm25Wbdkw=; b=eS2psMUiyBW7ADZHR+9tpcImAaEOeaMNpqrbNmpsYgSKb3itu6l5yieh1rZ2+JBNWI0s1u9eaDDftoLwB5OYaqt53u8pAuP6h6o37z8q39vs6UawYELAqDRov9Ht+o+P7/n4CHVQHrMv8zJ1t3onIyhbWe0I4sbcQwxsfB+wwTQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816565343622.7450552679239; Mon, 22 Jun 2020 02:02:45 -0700 (PDT) Received: from localhost ([::1]:51098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnILj-0002n4-Vm for importer@patchew.org; Mon, 22 Jun 2020 05:02:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJH-0000wq-L3 for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:35514 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJF-0004zw-J2 for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:11 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-140-Z3K6TjtmOGep8pyBlPD_fg-1; Mon, 22 Jun 2020 05:00:01 -0400 Received: by mail-wm1-f72.google.com with SMTP id a7so6574536wmf.1 for ; Mon, 22 Jun 2020 02:00:01 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id y14sm15357965wma.25.2020.06.22.01.59.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FlCLYqnyC4KOoHC6MnLT/maL0ukmI8qUjgkm25Wbdkw=; b=LcUNwTtbrwkOXNVaTRa1z803kCnmYJraq1uQ3wIA5Hv1F6a458+G1kqU4PnOlYhWVmB0j/ XvN9FkivyaKBhK+EKC4TmL2y/ZrHalVQYYPzL2vHrNrfS6vtIArzxgvoAjXkDk1wWLaLDW sg5ThQQNpD6+7rT/5ITC/YyZTYa2y1I= X-MC-Unique: Z3K6TjtmOGep8pyBlPD_fg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FlCLYqnyC4KOoHC6MnLT/maL0ukmI8qUjgkm25Wbdkw=; b=ZUXjq0S8WRPcuT3SS6TY67mltPXRbXGFSpmZaghEWQKCFjLNWPwr02mH49BsTCArPz NBMOSZ+kxHJc6vKrQHiOT29YSa9dldS7KFeO027rmdi+ZcUu6qp+mIuQvPuoK6o0Pgaj cFhHbRiNwaIKlzKxd9sJ+B7f1L8e5zyc3w/dZJYDJ3+/LO8TCg2inVU6Sc3EA6L8lETS ek30yTMbXzunbd1ztTPG9cT77sPwptToZUhrXxrS1DQWUXB6ILXVLeedMWnw5jeWdSR4 Xfvad85SFEZJ3WXQhI+yjhCxrMaAiVAD3HTqPMZ2BpmQ7D+2f4NSb8PM4g7s/o3guE4P jyEg== X-Gm-Message-State: AOAM531KDPCbmUeX4KoCJ5TPsSF39lPwmWPCagGjjIMHM+7AMxTv/hmi WJU38ZnTIidrkxMEGP+Nni2eTBkCNxQRoAh3uS0yTUl4gVM6zNQm1AYT3SpmlZb2YOZuNIpZQUt AUUAgI8cSS/AVIls= X-Received: by 2002:a5d:4e87:: with SMTP id e7mr18548846wru.12.1592816400154; Mon, 22 Jun 2020 02:00:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGTR7W5WX1HUX+v8kDUFeutnhdi8sFWaZnz8XKCfrxA36RF5Tr3Ek58dwn1EZzn9pQ54Hgxw== X-Received: by 2002:a5d:4e87:: with SMTP id e7mr18548821wru.12.1592816399887; Mon, 22 Jun 2020 01:59:59 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 5/8] tests/acceptance: add record/replay test for arm Date: Mon, 22 Jun 2020 10:59:31 +0200 Message-Id: <20200622085934.16441-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 01:27:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for two different arm platforms. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073590785.20809.17654573764167037499.stgit@pasha-ThinkPad-X= 280> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index 60559a13ad..748c780575 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -108,3 +108,51 @@ def test_aarch64_virt(self): =20 self.run_rr(kernel_path, kernel_command_line, console_pattern, args=3D('-cpu', 'cortex-a53')) + + def test_arm_virt(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:virt + """ + kernel_url =3D ('https://archives.fedoraproject.org/pub/archive/fe= dora' + '/linux/releases/29/Everything/armhfp/os/images/pxeb= oot' + '/vmlinuz') + kernel_hash =3D 'e9826d741b4fb04cadba8d4824d1ed3b7fb8b4d4' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyAMA0') + console_pattern =3D 'VFS: Cannot open root device' + + self.run_rr(kernel_path, kernel_command_line, console_pattern, shi= ft=3D1) + + def test_arm_cubieboard_initrd(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:cubieboard + """ + deb_url =3D ('https://apt.armbian.com/pool/main/l/' + 'linux-4.20.7-sunxi/linux-image-dev-sunxi_5.75_armhf.de= b') + deb_hash =3D '1334c29c44d984ffa05ed10de8c3361f33d78315' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinuz-4.20.7-sunxi') + dtb_path =3D '/usr/lib/linux-image-dev-sunxi/sun4i-a10-cubieboard.= dtb' + dtb_path =3D self.extract_from_deb(deb_path, dtb_path) + initrd_url =3D ('https://github.com/groeck/linux-build-test/raw/' + '2eb0a73b5d5a28df3170c546ddaaa9757e1e0848/rootfs/' + 'arm/rootfs-armv5.cpio.gz') + initrd_hash =3D '2b50f1873e113523967806f4da2afe385462ff9b' + initrd_path_gz =3D self.fetch_asset(initrd_url, asset_hash=3Dinitr= d_hash) + initrd_path =3D os.path.join(self.workdir, 'rootfs.cpio') + archive.gzip_uncompress(initrd_path_gz, initrd_path) + + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0,115200 ' + 'usbcore.nousb ' + 'panic=3D-1 noreboot') + console_pattern =3D 'Boot successful.' + self.run_rr(kernel_path, kernel_command_line, console_pattern, shi= ft=3D1, + args=3D('-dtb', dtb_path, + '-initrd', initrd_path, + '-no-reboot')) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816701; cv=none; d=zohomail.com; s=zohoarc; b=BC3MeMZSDBiPFuBrtrHV/zcxlChSBfE/zuFDbBEsKYdRQe/YaeEMKxyzwD7zkDDCEV1WyZQK2eO/tbbkGZgotHN8dOJPZJ/W/Z22Yoa/pvZyRw2mQ1+Hntoyhf0a/zJk7CeW73v3FbOH0ddKRUnV0PT6oXK8d00Ved6RqFCrxWs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816701; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HTagnNvXYkUNj9C7eyjbQLy9uY/KGYgd5Bwrfq0B9ic=; b=UCf1u1zF60s2bnxfgQLxErnoLTr0CqmIzGUpy2Rh4V3L5ifovHWoV3AtYEU1ziRra1zNjyrOxkRnzuQ0HtYtapd5USEn0UCMqljOKnDxMbjuktEE1onXmJj/ebHOg5XshBVgHvqaxedLdAA6HI+lcTErkJSdrDwLB/b0tI/OmXM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816701537409.2961132468913; Mon, 22 Jun 2020 02:05:01 -0700 (PDT) Received: from localhost ([::1]:58480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnINw-0006A2-6s for importer@patchew.org; Mon, 22 Jun 2020 05:05:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJJ-0000yw-G1 for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:13 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:31942 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJG-000505-Sg for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:13 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-Kp1m_MoeP0K4wZotjczQWg-1; Mon, 22 Jun 2020 05:00:06 -0400 Received: by mail-wr1-f71.google.com with SMTP id o25so8684411wro.16 for ; Mon, 22 Jun 2020 02:00:06 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id 63sm18437971wra.86.2020.06.22.02.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 02:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HTagnNvXYkUNj9C7eyjbQLy9uY/KGYgd5Bwrfq0B9ic=; b=aWjlhNGwC3a+Ssd/BnonYT8pF1abJe73X3qVIfgcncMKXinpvNaEzIcK/J4dYf1eSBGH+Q eyrx6N+t2ctRdhhbbzfi7tgaxSFZyIxwWzxin2rYh3URu/grf8FSEH7i6crk9QyKP4+DXC Oody2PaOlJGjBpsivTCAP60kI+cQqtU= X-MC-Unique: Kp1m_MoeP0K4wZotjczQWg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HTagnNvXYkUNj9C7eyjbQLy9uY/KGYgd5Bwrfq0B9ic=; b=CpElGjFhUKY8/8a+rpGaTgh8kHaiFLhI7xGVESpro47G9humJxMqpk0t98+ZVn7JM+ pyt5dVFvhviF3PJo9do1s9esuEdoDPPLd8UP6LWJqea3JOkd5Ic5e5Kfa6WdkXcsn72V w6ob+IyOwOKeOJB8R4pXSQhqIxtimvzVyYXQtONWUGHzjOxx4tQmCdMaTSSyFLe64HSp F4Lrx1MgU1eOETq3gVSkkWQScLUFY3BZeA5YXouLFJvMs9/amUnr9yF7RkePL/+9w8Ta KK5AeYHkfyRT1JoaVi4oo8tjdubI20XBCI+GYumFgVGw9xqPmJZsgE8sj1oh14Fiuonj ZcTw== X-Gm-Message-State: AOAM533KJJahOxkj+c76MwESBzpmuD+VmJ8vAWu+apsk3jT5709X1Ww8 8k9/jP+kywR+K//42FKR/4JyTYK5kOUJmipyMWO3zXSgizdWM3YJf9ldhYvlRgYzixQe5Ro1pqg HBkXSrZriTreH7XQ= X-Received: by 2002:a7b:c113:: with SMTP id w19mr18349509wmi.161.1592816404800; Mon, 22 Jun 2020 02:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrXXGzkXW5z2SWRuR1ev+oVZJxyDP4KDSBvAXaPJlJU37tudBdzcu8k5ra5esFhYAbY21c9A== X-Received: by 2002:a7b:c113:: with SMTP id w19mr18349481wmi.161.1592816404623; Mon, 22 Jun 2020 02:00:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 6/8] tests/acceptance: add record/replay test for ppc64 Date: Mon, 22 Jun 2020 10:59:32 +0200 Message-Id: <20200622085934.16441-7-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 03:17:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for ppc64 platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073591363.20809.15658672985367330140.stgit@pasha-ThinkPad-X= 280> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index 748c780575..b7acc4bc71 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -156,3 +156,19 @@ def test_arm_cubieboard_initrd(self): args=3D('-dtb', dtb_path, '-initrd', initrd_path, '-no-reboot')) + + def test_ppc64_pseries(self): + """ + :avocado: tags=3Darch:ppc64 + :avocado: tags=3Dmachine:pseries + """ + kernel_url =3D ('https://archives.fedoraproject.org/pub/archive' + '/fedora-secondary/releases/29/Everything/ppc64le/os' + '/ppc/ppc64/vmlinuz') + kernel_hash =3D '3fe04abfc852b66653b8c3c897a59a689270bc77' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + 'console= =3Dhvc0' + # icount is not good enough for PPC64 for complete boot yet + console_pattern =3D 'Kernel command line: %s' % kernel_command_line + self.run_rr(kernel_path, kernel_command_line, console_pattern) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816714; cv=none; d=zohomail.com; s=zohoarc; b=LosVAZgDLUekDU7CoAN8FLDwnCbszpbSlimi3af7yR/8kutTvGhQyywoGEW4cgJLSQqrp/Rwn10x6gF82S0BiFNdgEhK3kwFMbSvsynRsCrxrxXbgFJPCRzA7yTAHuEajNmzecD5A/yyUOPuIu7kI4HTrn9AfL2riEQBWlNJ098= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816714; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FTqbMuxpMcu2/xrwj2RQe3qWONh3lSFOLVKC3PN0oxk=; b=OgAGxNukz6UxD0INotmnpFDulxC0+u3xTOE9YLkXUsW+6r4g0g2Iow+5DW3zsCB33MI05Ouyc4ilRzfww/sXkTm04P3mFx28ocGZb70JTqPnLj3Aya8dln6IbwUhG9bbIuOzO1XwaHtFpK2cDb2KzbBDTHhAm9b2u3ivvBeIb/o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159281671494926.674494453541115; Mon, 22 Jun 2020 02:05:14 -0700 (PDT) Received: from localhost ([::1]:59582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnIO9-0006bD-NK for importer@patchew.org; Mon, 22 Jun 2020 05:05:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJL-00012B-Ma for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:16 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:56274 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJJ-00050V-R2 for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:15 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-155-suHbC7ajMQquBOiUp-mwrQ-1; Mon, 22 Jun 2020 05:00:11 -0400 Received: by mail-wm1-f69.google.com with SMTP id t127so7205488wmg.0 for ; Mon, 22 Jun 2020 02:00:11 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id y16sm17232343wro.71.2020.06.22.02.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 02:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FTqbMuxpMcu2/xrwj2RQe3qWONh3lSFOLVKC3PN0oxk=; b=C9K7uvKRD83DxMQSQjSvAQ83TH+D1k8tf8ZfBY6O0s42hbGkKaiCJIXT7dvb5pyDKqWYnp EKX5BLmcgNXLpkT8SkXs4iVdvUbZEuvvRTxQkB9hlNWw+tDp3FnIibksN3df1hVzlQOPD6 sXLcVneHMKYUOWTViHc8pavxPtPa9Wg= X-MC-Unique: suHbC7ajMQquBOiUp-mwrQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FTqbMuxpMcu2/xrwj2RQe3qWONh3lSFOLVKC3PN0oxk=; b=atJ5Xgq1C/2/6LXrDUJRT9YEz0dJWUFKuGxk7ksOPoCmFFotfC+CsBHtx0L9qHq4qs +D0jPe7sXqs84NgtRSMZ0TooenSTU1UdS+c5OcNh1gY7xOHXAXsOFGjeScl7o3HP7cNK 0kLR+GH1uXLkAgucGtsGbbJLPat/Dgb0i/dzn3bPp+Rmi4Jcqfgz/0HWDKjFJIE1T8+X SJGK0Ck9Ghgw9ehMUkI00t3oOi+fHoNhYKbLDjwB9fFA1biJgmOb5MwdvNIdgw55nR9v 8wU5gkKfoob+hoqtPGA4zN0sFFi6Q/DE2Zv3jT4Yn1ejc0m1JftNf4llbupe6n6s/fGR 9pIA== X-Gm-Message-State: AOAM531pyloYKo+cn1beAAzQ9nWVk4ina7QlYZbHZ5seVg+AWfd+zho6 uFQtCMRuGhUqbnvypT5VC5kHGxbTjhJ5nXxWlvwY+P6dBEvjcY/KAZCoH23WUNv4MRWKsa4zVg7 IZ1GVNkyQQCtYIwI= X-Received: by 2002:a5d:4d4d:: with SMTP id a13mr18358040wru.252.1592816409399; Mon, 22 Jun 2020 02:00:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Kt6t21MeHhquzrDBNBvtgdHpC+xdfQBX+lBKRXpKSrfNcQhIt3BwGBL4DcDXfhUgfK1DIw== X-Received: by 2002:a5d:4d4d:: with SMTP id a13mr18358019wru.252.1592816409209; Mon, 22 Jun 2020 02:00:09 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 7/8] tests/acceptance: add record/replay test for m68k Date: Mon, 22 Jun 2020 10:59:33 +0200 Message-Id: <20200622085934.16441-8-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 02:57:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for m68k platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Reviewed-by: Laurent Vivier Message-Id: <159073592033.20809.1838967871297177313.stgit@pasha-ThinkPad-X2= 80> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index b7acc4bc71..8ef4e499b7 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -172,3 +172,21 @@ def test_ppc64_pseries(self): # icount is not good enough for PPC64 for complete boot yet console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.run_rr(kernel_path, kernel_command_line, console_pattern) + + def test_m68k_q800(self): + """ + :avocado: tags=3Darch:m68k + :avocado: tags=3Dmachine:q800 + """ + deb_url =3D ('https://snapshot.debian.org/archive/debian-ports' + '/20191021T083923Z/pool-m68k/main' + '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.ude= b') + deb_hash =3D '044954bb9be4160a3ce81f8bc1b5e856b75cccd1' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinux-5.3.0-1-m68k') + + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0 vga=3Doff') + console_pattern =3D 'No filesystem could mount root' + self.run_rr(kernel_path, kernel_command_line, console_pattern) --=20 2.21.3 From nobody Sun Feb 8 15:53:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592816802; cv=none; d=zohomail.com; s=zohoarc; b=oGGAYCLFQsbgY4ByRR1R0e5RMzhUOrkaogwJP7am9Iq6QcE8zo52sxUCbMiBgowEC2cP3qQojF+ipNUdVAmQ1kcW1bG4dKv6oGZ7sfL0zMqfm3mZv1dvwzcKwtwAbnBAd/eAi3LCWdBNXZb4wGj1db/rBMnfWIzQY0oelN5F4OM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592816802; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jrZpj4Py1xiLY1rtAnx0jkZgOQgy8t7vHtv5n/ekpGI=; b=kHvTR50bFw3FIVsYcdBRfxhoxWl9px3BESdxlEydNDuWbmAea5wR1SdLHiPiHBHrRrvE3Oy22PpqEqwIPVSVfI/nR5LWbsrV3tY1ggsbo4ECkwHj+mgDd/lvwv9RoutgPJH6Alh16dqgCF+r01Ak7Cm6QwonGi3ciBptotuj5uU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592816802894777.4580804566205; Mon, 22 Jun 2020 02:06:42 -0700 (PDT) Received: from localhost ([::1]:36974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnIPZ-0000Ww-LB for importer@patchew.org; Mon, 22 Jun 2020 05:06:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnIJV-0001C9-1W for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:25 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:39810 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jnIJS-00052D-Fa for qemu-devel@nongnu.org; Mon, 22 Jun 2020 05:00:24 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-331-19htHHhCNbaVmpKMSuuqiw-1; Mon, 22 Jun 2020 05:00:15 -0400 Received: by mail-wr1-f70.google.com with SMTP id e7so10600579wrp.14 for ; Mon, 22 Jun 2020 02:00:15 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id w17sm17588115wra.42.2020.06.22.02.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 02:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592816420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jrZpj4Py1xiLY1rtAnx0jkZgOQgy8t7vHtv5n/ekpGI=; b=NtbIhYLIcKg1gC1DHoQRscVE+sRax1JdwBKoEJl4qhiPkDcmIhQQz5+KXZajAWPsSoaass LrChC+aMBh1rQByYVSVy3oOP4HIUUb7MtJVJkH2Yb5hyV3H2AYPdIRambKyyjZAv10+bdQ v8ezOPHL/KV41BhMNysuC8Xb3XY983Y= X-MC-Unique: 19htHHhCNbaVmpKMSuuqiw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jrZpj4Py1xiLY1rtAnx0jkZgOQgy8t7vHtv5n/ekpGI=; b=AJkDMjyef9Ai7N1iBnr01LRwF06w+8s0hxGdABCrVyrFKzGg97b8Uqmy3KuBGueFuA UBL8GHaoq+xKZ7w0LkKFrslBBQrMSuj30FOP9XseY0q/S4yRcz1lHMkdBHfnpqoUSDFA iRdUjMqNP+j672oPzLNTF2Q1VgWeNCA09i3oIrOIRojAclYKZqcqoRqI1k93bxmFtf1O E1pcIqPlsWWRUL1VPKKDafOe8uguEj8gMINYrmrIUmkodFsJ9CQuaMkaMsZHDSzsSNBa 5kUM/oENZJqe5JKAreC/82rKhQbEO6lbGRAAX3LKPJyeEjSCl7m2dVU0eHu6e2YWoyrC RDYA== X-Gm-Message-State: AOAM531Eewq3LAv0peuEp4fWNwc08i3eGw4blrimdv8SKtnqJWeCZ8iY uP8Bf5G8VsXRChYjitul97S4aRA9Yu0VT4W/VyTrkforywEE/w75ECF/07/Q2PtF5vjjnnOisVT v7ROMCLwktGjgfoM= X-Received: by 2002:a1c:2402:: with SMTP id k2mr13254579wmk.138.1592816414090; Mon, 22 Jun 2020 02:00:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx10XWHB101yUbLCFBmWf8v1FxiNXflTQJNkAI5Xov1hBBBnsl5c95DJiU4fAmptgXgMT/qKg== X-Received: by 2002:a1c:2402:: with SMTP id k2mr13254562wmk.138.1592816413869; Mon, 22 Jun 2020 02:00:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 8/8] tests/acceptance: record/replay tests with advcal images Date: Mon, 22 Jun 2020 10:59:34 +0200 Message-Id: <20200622085934.16441-9-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200622085934.16441-1-philmd@redhat.com> References: <20200622085934.16441-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 02:57:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wainer dos Santos Moschetta , Pavel Dovgalyuk , Pavel Dovgalyuk , Cleber Rosa , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Pavel Dovgalyuk This patch adds more record/replay tests with kernel images. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073592589.20809.5156301499042635614.stgit@pasha-ThinkPad-X2= 80> Reviewed-by: Philippe Mathieu-Daud=C3=A9 [PMD: Use os.path.join(), add avocado 'cpu' tags] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/replay_kernel.py | 108 ++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index 8ef4e499b7..60621417dd 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -190,3 +190,111 @@ def test_m68k_q800(self): 'console=3DttyS0 vga=3Doff') console_pattern =3D 'No filesystem could mount root' self.run_rr(kernel_path, kernel_command_line, console_pattern) + + def do_test_advcal_2018(self, file_path, kernel_name, args=3DNone): + archive.extract(file_path, self.workdir) + + for entry in os.scandir(self.workdir): + if entry.name.startswith('day') and entry.is_dir(): + kernel_path =3D os.path.join(entry.path, kernel_name) + break + + kernel_command_line =3D '' + console_pattern =3D 'QEMU advent calendar' + self.run_rr(kernel_path, kernel_command_line, console_pattern, + args=3Dargs) + + def test_arm_vexpressa9(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:vexpress-a9 + """ + tar_hash =3D '32b7677ce8b6f1471fb0059865f451169934245b' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day16.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + dtb_path =3D self.workdir + '/day16/vexpress-v2p-ca9.dtb' + self.do_test_advcal_2018(file_path, 'winter.zImage', + args=3D('-dtb', dtb_path)) + + def test_m68k_mcf5208evb(self): + """ + :avocado: tags=3Darch:m68k + :avocado: tags=3Dmachine:mcf5208evb + """ + tar_hash =3D 'ac688fd00561a2b6ce1359f9ff6aa2b98c9a570c' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day07.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'sanity-clause.elf') + + def test_microblaze_s3adsp1800(self): + """ + :avocado: tags=3Darch:microblaze + :avocado: tags=3Dmachine:petalogix-s3adsp1800 + """ + tar_hash =3D '08bf3e3bfb6b6c7ce1e54ab65d54e189f2caf13f' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day17.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'ballerina.bin') + + def test_ppc64_e500(self): + """ + :avocado: tags=3Darch:ppc64 + :avocado: tags=3Dmachine:ppce500 + :avocado: tags=3Dcpu:e5500 + """ + tar_hash =3D '6951d86d644b302898da2fd701739c9406527fe1' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day19.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'uImage', ('-cpu', 'e5500')) + + def test_ppc_g3beige(self): + """ + :avocado: tags=3Darch:ppc + :avocado: tags=3Dmachine:g3beige + """ + tar_hash =3D 'e0b872a5eb8fdc5bed19bd43ffe863900ebcedfc' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day15.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'invaders.elf', + args=3D('-M', 'graphics=3Doff')) + + def test_ppc_mac99(self): + """ + :avocado: tags=3Darch:ppc + :avocado: tags=3Dmachine:mac99 + """ + tar_hash =3D 'e0b872a5eb8fdc5bed19bd43ffe863900ebcedfc' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day15.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'invaders.elf', + args=3D('-M', 'graphics=3Doff')) + + def test_sparc_ss20(self): + """ + :avocado: tags=3Darch:sparc + :avocado: tags=3Dmachine:SS-20 + """ + tar_hash =3D 'b18550d5d61c7615d989a06edace051017726a9f' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day11.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'zImage.elf') + + def test_xtensa_lx60(self): + """ + :avocado: tags=3Darch:xtensa + :avocado: tags=3Dmachine:lx60 + :avocado: tags=3Dcpu:dc233c + """ + tar_hash =3D '49e88d9933742f0164b60839886c9739cb7a0d34' + tar_url =3D ('https://www.qemu-advent-calendar.org' + '/2018/download/day02.tar.xz') + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + self.do_test_advcal_2018(file_path, 'santas-sleigh-ride.elf', + args=3D('-cpu', 'dc233c')) --=20 2.21.3