From nobody Tue Feb 10 09:57:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) client-ip=209.85.221.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1625233004; cv=none; d=zohomail.com; s=zohoarc; b=LMjzfp+XH4Wri6vXUsZgwBoKMG3YhkKO6J4Vtp9O+PigOxI4nsHtu9CTxyVHocYa2fJnkwDStjwFY+02BZss0fBgjy+a+BdxvN9StQFlWGIxszmf6Wp9oWpijQKOZeJ2t7Pu07KLguP0SUOoiut3Ba7fA0zBGEm9aI8rqEmisoY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625233004; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BdMlioqEm9E1wpS8AcjxouwS36MURC9LLrc7wkl7cFg=; b=g8d/DY+hA0yhCCPSkK5OWGKI66esUu2d5zuqoI8XFhURqtJ00x8qSzjK2/yKnpqow0Kqpyc7/opfgybv8HXbU6Tx0n+09bA5d4XRSOr2yH7JEVBqSGUIS14CD1bo6IlmDPTj6VeJq+sVfl8Sgg3+4UTMJWA0SoltMlJx0xY27KU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.zohomail.com with SMTPS id 162523300459123.336594122268934; Fri, 2 Jul 2021 06:36:44 -0700 (PDT) Received: by mail-wr1-f51.google.com with SMTP id i94so12522344wri.4 for ; Fri, 02 Jul 2021 06:36:44 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.Ascou-CH1 (pop.92-184-108-23.mobile.abo.orange.fr. [92.184.108.23]) by smtp.gmail.com with ESMTPSA id y20sm12436214wmi.31.2021.07.02.06.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 06:36:42 -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=BdMlioqEm9E1wpS8AcjxouwS36MURC9LLrc7wkl7cFg=; b=Hn5bncr1Yy/a6wC3znuBznBdEnu5+Zw/DHeB0EvgfWv9hMSdx//p1wZyVZn83eEb7H Lt6y9gme/wmxqyS8Iraekg1LqjkZrRBhBLWJQr6TzNDdXK7uz29sM4WvWVDwIW7jOvAJ hjnqBOpnl8XTlfAi8ItPRVZWoU1iITjgCCmtpcSLVpEwaFS7yKumDVkw6KbTunXvIM3F EaCgaMax1FL1WtH0eZsvqIDe/s+rGfaByHYb2n8nIh9zSyu98dcWklFMpJaE1KRM51Xi UT8kUH47lXttYjzwLga2EtVCwzE4ovLQWbIRGk5KtMq4XmcBPtT2no4bKoZikeTcWTXI Jq1Q== 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=BdMlioqEm9E1wpS8AcjxouwS36MURC9LLrc7wkl7cFg=; b=p3Zco+yZuBUovs1IsEaOgK3l9sXgNW5TSdc+7X8JXjp0wdfSevfQSslZCe5kecHI+i lNxhKwKOd+zSdnwxYcOoxPoUyjrhVP5Xt0aY44LMoak3eyryBD2AcBc7lvqcL1YV9IWO Mxl+qfBzzM1As+ZrWsiEcwMmuVGP/CxVaIf+CwvmlyV0WvciQD80oPz7/YlmDVofAcuH gFP0HGJyMYIq+OD1b21aSB1mknhRombrNeEbkiHxXstl31WO3XtowD6BcskdkwmvCeyx jRB5Ao9xPkZUfRVcxeycQbJyWo5nx78EsBlCBdBJl/vsnvUrIPfohPm804WvBp9FVbg6 yGuA== X-Gm-Message-State: AOAM533EK8pTB2Y4ixCcZRjkBeyUGfVCTjVAAZ+BF6xgF0PoR4Awf0G9 vCrwfVrkNcU6PpPjR2XoZRk= X-Google-Smtp-Source: ABdhPJyIOu/wp4EKqCmpmGJGt+SudUyihsDI2H+sfWnF3Cm4Fn6SAebiKHnda5UW+Dc57i/VJKTv+g== X-Received: by 2002:a5d:6846:: with SMTP id o6mr5825427wrw.89.1625233002810; Fri, 02 Jul 2021 06:36:42 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta Subject: [PULL 07/18] tests/acceptance: Test Linux on the Fuloong 2E machine Date: Fri, 2 Jul 2021 15:35:46 +0200 Message-Id: <20210702133557.60317-8-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210702133557.60317-1-f4bug@amsat.org> References: <20210702133557.60317-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1625233005309100001 Test the kernel from Lemote rescue image: http://dev.lemote.com/files/resource/download/rescue/rescue-yl Once downloaded, set the RESCUE_YL_PATH environment variable to point to the downloaded image and test as: $ RESCUE_YL_PATH=3D~/images/fuloong2e/rescue-yl \ AVOCADO_ALLOW_UNTRUSTED_CODE=3D1 \ avocado --show=3Dapp,console run tests/acceptance/machine_mips_fuloong2= e.py Fetching asset from tests/acceptance/machine_mips_fuloong2e.py:MipsFuloon= g2e.test_linux_kernel_isa_serial (1/1) tests/acceptance/machine_mips_fuloong2e.py:MipsFuloong2e.test_linu= x_kernel_isa_serial: console: Linux version 2.6.27.7lemote (root@debian) (gcc version 4.1.3 20= 080623 (prerelease) (Debian 4.1.2-23)) #6 Fri Dec 12 00:11:25 CST 2008 console: busclock=3D33000000, cpuclock=3D-2145008360,memsize=3D256,highme= msize=3D0 console: console [early0] enabled console: CPU revision is: 00006302 (ICT Loongson-2) PASS (0.16 s) JOB TIME : 0.51 s Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta Message-Id: <20210624202747.1433023-5-f4bug@amsat.org> --- MAINTAINERS | 1 + tests/acceptance/machine_mips_fuloong2e.py | 42 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/acceptance/machine_mips_fuloong2e.py diff --git a/MAINTAINERS b/MAINTAINERS index c663dfe4d76..cb8f3ea2c2e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1178,6 +1178,7 @@ F: hw/isa/vt82c686.c F: hw/pci-host/bonito.c F: hw/usb/vt82c686-uhci-pci.c F: include/hw/isa/vt82c686.h +F: tests/acceptance/machine_mips_fuloong2e.py =20 Loongson-3 virtual platforms M: Huacai Chen diff --git a/tests/acceptance/machine_mips_fuloong2e.py b/tests/acceptance/= machine_mips_fuloong2e.py new file mode 100644 index 00000000000..0ac285e2af1 --- /dev/null +++ b/tests/acceptance/machine_mips_fuloong2e.py @@ -0,0 +1,42 @@ +# Functional tests for the Lemote Fuloong-2E machine. +# +# Copyright (c) 2019 Philippe Mathieu-Daud=C3=A9 +# +# This work is licensed under the terms of the GNU GPL, version 2 or later. +# See the COPYING file in the top-level directory. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os + +from avocado import skipUnless +from avocado_qemu import Test +from avocado_qemu import wait_for_console_pattern + +class MipsFuloong2e(Test): + + timeout =3D 60 + + @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code= ') + @skipUnless(os.getenv('RESCUE_YL_PATH'), 'RESCUE_YL_PATH not available= ') + def test_linux_kernel_isa_serial(self): + """ + :avocado: tags=3Darch:mips64el + :avocado: tags=3Dmachine:fuloong2e + :avocado: tags=3Dendian:little + :avocado: tags=3Ddevice:bonito64 + :avocado: tags=3Ddevice:via686b + """ + # Recovery system for the Yeeloong laptop + # (enough to test the fuloong2e southbridge, accessing its ISA bus) + # http://dev.lemote.com/files/resource/download/rescue/rescue-yl + kernel_hash =3D 'ec4d1bd89a8439c41033ca63db60160cc6d6f09a' + kernel_path =3D self.fetch_asset('file://' + os.getenv('RESCUE_YL_= PATH'), + asset_hash=3Dkernel_hash) + + self.vm.set_console() + self.vm.add_args('-kernel', kernel_path) + self.vm.launch() + wait_for_console_pattern(self, 'Linux version 2.6.27.7lemote') + cpu_revision =3D 'CPU revision is: 00006302 (ICT Loongson-2)' + wait_for_console_pattern(self, cpu_revision) --=20 2.31.1