From nobody Wed Feb 11 07:26:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628701231689.3813560831186; Thu, 21 Jun 2018 17:51:41 -0700 (PDT) Received: from localhost ([::1]:58196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAIe-0008N6-IX for importer@patchew.org; Thu, 21 Jun 2018 20:51:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWACB-0003tA-Sr for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWAC6-0000Fk-U4 for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:59 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWAC6-0000Fe-Oi for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:54 -0400 Received: by mail-qk0-x242.google.com with SMTP id q70-v6so2864652qke.1 for ; Thu, 21 Jun 2018 17:44:54 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jkrhg1baaDLhvkWyteJO2bpXDayCy22+pa0PBnPBiUk=; b=MIl1oXuxAeVPeEBzLylMtybswXvhmkNgSgMkANx2VqL0LfYQqlvp5uuKoh9eZ8TInG ggq/fMS07fwrrVAtYDShrjK26u8HgCilrELcYBo4vCmfvB35NIEMDnVuE9NA4ZCQSmcG 7b1nIiPYCwkzXy916yQto74ESmWjUcmCC9/DheFhTWXioiYl83e+SkjoFDBejS1Rng/u R+vgt10Raza3XMvUIcbdC1nZYysl6yKTSbVKOV8N+HZh5j4iZeJ5kRPOlOypVcL22ZRm qYBDCG0PPv951gPkWVUrQPw2jhlSrZyiLeEmbl1yswKkJRFilBjbzIRaRTCphDoWLM7I doBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=jkrhg1baaDLhvkWyteJO2bpXDayCy22+pa0PBnPBiUk=; b=fSx1ltR+f9CeuO8ZA6A2CncKihzBc5MF9rFVBtocgCD1sQtwm+SYT6Cler5U9VmXfC q5/3dvRtAoEsfpKY+6rUc/R91ZV+xe7wnZi5Tq6qf9XhPl2M8zNZ8eXOtlTd8Cu+sbik t4A0Lod3qlvqeigMGUfdfrm8cdTLC9pM7f5fLU7epEo/XbgugTRh9ggjm0sQeMG+stlY ABBmei+VHn8vSqf9tCtj9FmQuyL/alyb3Dl9hZHBrOtHScAs5Y4wCTXr4E6ZAQRG76Mp f+3qSXAO+M6QTw4JbDYMET1WvqJ/yxSxJdNcF/sqEjGzkPoC5hWA6zyXz7Ks0xTEdqeD OowQ== X-Gm-Message-State: APt69E3Tmr8T4j8qgHB2NsOd0oqjHYmtPknXtWBNe1ZUA781ueQ77CFM sYYW9sxJ0EU/0j0yCgCXuJQ= X-Google-Smtp-Source: ADUXVKLcmxxBvriyqlZoeTdFHLxUPwdlWy3vqReTV34VBqjPU3h5bScML6WTLfI7hsaAfMpDbf3XWw== X-Received: by 2002:a37:7644:: with SMTP id r65-v6mr23101928qkc.326.1529628294190; Thu, 21 Jun 2018 17:44:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:33 -0300 Message-Id: <20180622004435.10291-5-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [PATCH v2 4/6] tests/acceptance: Add a BootLinuxConsoleMips test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Similar to the BootLinuxConsoleX86_64 test: boot a Linux kernel on a Malta board and verify the serial is working. This test can be run using: $ avocado run -t endian:big tests/acceptance Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/boot_linux_console.py | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 17dc8d58c1..72cf5e943c 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -46,3 +46,41 @@ class BootLinuxConsoleX86_64(Test): break if 'Kernel panic - not syncing' in msg: self.fail("Kernel panic reached") + + +class BootLinuxConsoleMips(Test): + """ + Boots a mips Linux kernel and checks that the console is operational + and the kernel command line is properly passed from QEMU to the kernel + + :avocado: enable + :avocado: tags=3Dendian:big + :avocado: tags=3Darch:mips + :avocado: tags=3Dboard:malta + """ + + arch =3D "mips" + timeout =3D 60 + + def test(self): + kernel_url =3D ('http://people.debian.org/~aurel32/qemu/mips/' + 'vmlinux-3.2.0-4-4kc-malta') + kernel_hash =3D '592e384a4edc16dade52a6cd5c785c637bcbc9ad' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + self.vm.set_machine('malta') + self.vm.set_console() + kernel_command_line =3D 'console=3DttyS0 printk.time=3D0' + self.vm.add_args('-m', "64", + '-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console =3D self.vm.console_socket.makefile() + console_logger =3D logging.getLogger('console') + while True: + msg =3D console.readline() + console_logger.debug(msg.strip()) + if 'Kernel command line: %s' % kernel_command_line in msg: + break + if 'Kernel panic - not syncing' in msg: + self.fail("Kernel panic reached") --=20 2.18.0.rc2