From nobody Tue Feb 10 20:07:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) client-ip=209.85.128.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1624566490; cv=none; d=zohomail.com; s=zohoarc; b=GD5eqEpfxt57xYsGp3J9D5nqnNG54VKILnwcvWBz2I3C4I7yWxu9h/fnwaVFVxrWPSqcUS/YmZ8AyZ+QLwIM+j6qCMvpXUeDHRhb44N+CrFV+RIl/W8Stsrx7ntVVkC1mFwYoCnVe5a2FnF5woeGzJf3seCAvCJd3+mA6DF+800= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624566490; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Adhypnk7BG1yfQh4oI+8s5/C55cxVDofX6w8rqZ/nYQ=; b=FzS6cV4NSKngVPbED2tSEpOUOJbK20UGM8kUFZLoT80PTrksdbmtZj+QA1kgN2cCyxUlIvG5U5PH+2jJaUmRalil8CDAgPBFRH/fDU6KZwoyeb2b3mALu64CJrZkPwCAoT8osqjgHnHab3dyhB7MMDkLW/N02LGNqb5X1s8T4GE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.zohomail.com with SMTPS id 1624566490539798.4056484611881; Thu, 24 Jun 2021 13:28:10 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id r3so311512wmq.1 for ; Thu, 24 Jun 2021 13:28:09 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id z9sm9545609wmf.43.2021.06.24.13.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 13:28:08 -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=Adhypnk7BG1yfQh4oI+8s5/C55cxVDofX6w8rqZ/nYQ=; b=uvT6nxwGH/9Bz0rq9fnd5TaGA0Wxtwdzx8cJYVXq4rfEo+ZdzF9Q0aEJujTplkUd+w RmepZyeVwnND78PNUvbs5blMNGqsAtg5JPg7nymQ+48vkps+G5FTtTOl+KIXmOOq+9jB 3kBDZMu8EeccuMbBR04IcdkGkOE4VmNuK7obsxgW7r2T54KR9BvZKtqecWmCsHJx4qu+ dKVJz2rU3sQqokNUqHolwlQEup/duFYZLVg78hVLflAIx3D0u3Sf2ZZQ+i3G9KL05lgA oe3b5dr8gExV3UkgSu/8uPu6Ht4YwQKAgFmrNdndtTqc01rxRNJaQExWtG21T9jjzvBo zLlA== 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=Adhypnk7BG1yfQh4oI+8s5/C55cxVDofX6w8rqZ/nYQ=; b=FdWprY/nHlVQfClqhOPgkaqeFqyDVV2g6QXX87JJ8pWB+vPhIJBcGXJIgX9brGDV8F KlIjl0DOuupZilccdpBd0oBa/CgYyUtP1j3Ey2b8Gka/8CHcCQU5Axf51OWLDxZSL67X TBRNkO0+ovP7zz1uJigr8Njhj2LX9YKJ9HJjO9rJeEOIR8Lc5em8OoBeYBpctRoIIUZz 98KkRsyuCzKxL0i17yELMoXo0EFtff79tXoKS49+LUOtF2VLOznIpvoIFmRhfkYiXFZ0 xqA8YNbA/9wR+VZGiC+XFgCUKvXfImDqEod5LmSG9hQ3xq+oPFZ9G3i3Y+ecs9baXAIy FNYw== X-Gm-Message-State: AOAM533YfJZdNOfmU47IVxazkegDe6lABnZhKsBspTnd3yVuF1jIkwTg x0VqcB0R+uQtJpprH8ikqvQ= X-Google-Smtp-Source: ABdhPJxbfmvU2ncizXBabK7KltNeOWnY/t46G7Se/Iz2ctUESHtz82kNTmexz3Wz0Fb8eazIK8lRPg== X-Received: by 2002:a1c:4b05:: with SMTP id y5mr6518661wma.5.1624566488830; Thu, 24 Jun 2021 13:28:08 -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: Wainer dos Santos Moschetta , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Cleber Rosa , Huacai Chen , Jiaxun Yang Subject: [PATCH 4/5] tests/acceptance: Test Linux on the Fuloong 2E machine Date: Thu, 24 Jun 2021 22:27:46 +0200 Message-Id: <20210624202747.1433023-5-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210624202747.1433023-1-f4bug@amsat.org> References: <20210624202747.1433023-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) 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 --- 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 1a041eaf864..1c515b4ba14 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1176,6 +1176,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