From nobody Mon Nov 10 19:43:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1558390206; cv=none; d=zoho.com; s=zohoarc; b=jEMFns4GRHYDa4ZZ0FW/7NFT6x+sIQb/luT81LNvRd0zCJxuReX/qF4iRf+lHh0Pi81G+FBvWxbFXhkIxS0PBwVtEeG2Bx/PzDVXTUM5qgZd1rKehQbHONdO9viDxgPZ1YRW6EeDauLnC9GXLTvdSGGT5rQofC5A4oS7+Sklmzs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558390206; 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:ARC-Authentication-Results; bh=RpBHMO/Gvr5r85Ip4+FKU+7BM1/SoeQOc8XHwm4/D0g=; b=a6NdVPtH8/xO8aDfq29IkLTX3jSDOSORMsm5fV+o4hB0uzcyFVSpN40aKL6Q1uVGqyhRZVRfXeY2s7d+5HtTBPIuqnRPIctTMBDwl+HelpWXbbRUIMFqBAAKWGvrNk1gQAvi400tMZZtbnNn70X/9e+Z5Z3gWAiuya9U/CamphM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558390206823967.9893904443825; Mon, 20 May 2019 15:10:06 -0700 (PDT) Received: from localhost ([127.0.0.1]:42709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSqTn-0004As-TQ for importer@patchew.org; Mon, 20 May 2019 18:09:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSqQc-00024v-04 for qemu-devel@nongnu.org; Mon, 20 May 2019 18:06:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSqQa-0007xT-RI for qemu-devel@nongnu.org; Mon, 20 May 2019 18:06:41 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:41300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSqQa-0007wy-Kk; Mon, 20 May 2019 18:06:40 -0400 Received: by mail-wr1-x444.google.com with SMTP id g12so15977819wro.8; Mon, 20 May 2019 15:06:40 -0700 (PDT) Received: from x1.local (228.red-83-52-173.dynamicip.rima-tde.net. [83.52.173.228]) by smtp.gmail.com with ESMTPSA id y40sm35462259wrd.96.2019.05.20.15.06.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 15:06:38 -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=RpBHMO/Gvr5r85Ip4+FKU+7BM1/SoeQOc8XHwm4/D0g=; b=TSNh9kfK2W24a9/vQGROiYNRLUY5Bym/pTjTsuWSJTWNks9wAt6zTNxoGz1rlGJj25 dHy/ZUTUzuHq4UOZjaGXLM+o8X7CyKAZ2XyirfmbR9wSMPY0/becDhS8PJQDwGCeQrEd j8P38uWwjwXxMRc2fWvuZIWsSCDeyyE87uz+06jxN5Du18SZky3dikem+bdsNrZBYmh0 5wV+nbhCN+knApE9WEKjQOPg8lHUseUO5FoZG0YmvtU+Xn2Q6aTsNzumhhUUKHmqFHjR rq47KLccsXEwTb5cUIOPeQKQZD2JR4Nb4SxlPQffFlqsb5S6RnNd5td5ulAH/fxEzSeL wpQw== 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=RpBHMO/Gvr5r85Ip4+FKU+7BM1/SoeQOc8XHwm4/D0g=; b=AUvx+TwFPvSWt7fxIcbKzQ0mwDg4LNmG5Q8trElaWXnNBDx/MgsT0e3Cw9VQO9suda RKoUa10G2phqu2mwHIN8Gw6sTG0i6ZcoQzYk6ZiyTGLnZ94lBTEwXxiy2doxb9YV37Xk Q4r0ascD2nPIS7GfdcvlFGSyNkSS+eRkXdivD8oYOjCBb89R+WaQnVh4UiFAPl+JcfjP v0yPlsSqIWQL5EjTL5laUTA0KeXFJXWPdsDp2OKgP3i9RtIWXctlEwk+JkrtJsFeaMkS VGV7qg6+E09rKF30Q+05Kyo1UDJvixoCC2chmaN0YU7DM6zy13fSJog6uCskTO6OqAx+ NJXQ== X-Gm-Message-State: APjAAAW9+J+kfJR4xSYYkNO4fUNWeKxj94KbpTnyVq7++qlFQUiaGUAT pLMiNOLeHs+n3Uj/rKb1vWWTy7c0fZg= X-Google-Smtp-Source: APXvYqzjcQRuNzXxvdxg6ptiMtc/NAmGolAko3ei6E4Z7Wf9NAvIKTj0RhKyt+Gf4fujcPmVSGZfEA== X-Received: by 2002:a5d:4211:: with SMTP id n17mr500695wrq.131.1558389999544; Mon, 20 May 2019 15:06:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 21 May 2019 00:06:35 +0200 Message-Id: <20190520220635.10961-3-f4bug@amsat.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190520220635.10961-1-f4bug@amsat.org> References: <20190520220635.10961-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: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH 2/2] BootLinuxConsoleTest: Test the SmartFusion2 board 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: Peter Maydell , Eduardo Habkost , Alistair Francis , Caio Carrara , Subbaraya Sundeep , qemu-arm@nongnu.org, Cleber Rosa , =?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) Similar to the x86_64/pc test, it boots a Linux kernel on an Emcraft board and verify the serial is working. If ARM is a target being built, "make check-acceptance" will automatically include this test by the use of the "arch:arm" tags. Alternatively, this test can be run using: $ avocado run -t arch:arm tests/acceptance $ avocado run -t machine:emcraft-sf2 tests/acceptance Based on the recommended test setup from Subbaraya Sundeep: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg03810.html Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Tested-by: Cleber Rosa --- tests/acceptance/boot_linux_console.py | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index f593f3858e..844cb80bb5 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -178,6 +178,33 @@ class BootLinuxConsole(Test): console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) =20 + def test_arm_emcraft_sf2(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:emcraft-sf2 + :avocado: tags=3Dendian:little + """ + uboot_url =3D ('https://raw.githubusercontent.com/' + 'Subbaraya-Sundeep/qemu-test-binaries/' + 'fa030bd77a014a0b8e360d3b7011df89283a2f0b/u-boot') + uboot_hash =3D 'abba5d9c24cdd2d49cdc2a8aa92976cf20737eff' + uboot_path =3D self.fetch_asset(uboot_url, asset_hash=3Duboot_hash) + spi_url =3D ('https://raw.githubusercontent.com/' + 'Subbaraya-Sundeep/qemu-test-binaries/' + 'fa030bd77a014a0b8e360d3b7011df89283a2f0b/spi.bin') + spi_hash =3D '85f698329d38de63aea6e884a86fbde70890a78a' + spi_path =3D self.fetch_asset(spi_url, asset_hash=3Dspi_hash) + + self.vm.set_machine('emcraft-sf2') + self.vm.set_console() + kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + self.vm.add_args('-kernel', uboot_path, + '-append', kernel_command_line, + '-drive', 'file=3D' + spi_path + ',if=3Dmtd,forma= t=3Draw', + '-no-reboot') + self.vm.launch() + self.wait_for_console_pattern('init started: BusyBox') + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.19.1