From nobody Thu Dec 18 22:23:33 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582909660; cv=none; d=zohomail.com; s=zohoarc; b=ZsDtbU8xv9Wz5FGCEyXlAsFGokiZMU8Zf1ZUHyoIYex3vhU7UJIuwPTLiv9loA70U3zYOmvwCFFKWv2MmShFXY6LGakcscMYDHLI/NarawwxZGcqFXPpqXOxG3VUvWAz6pCQpxnr4+jlZCwnnKvhR3WolszNrE20Cnbn954sOFw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582909660; h=Content-Type:Content-Transfer-Encoding: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=7pnRJmXnO6IweO9cucbS1G2R/qlgmQQw2whsHVhkaZE=; b=j6u8eGT3BwBzSM1lDRspmbDXMsxi07YqaGQkvdj3/4K6GIoWJaiYbylk0aTY7fXiSMhcxzM0JM/V+kQs+kQuoL8oAiu/6ZQcBDe7K1pvnoA40YjIQsR3RYegQx2PEOy5FJW9HaLwmFdwbRcdWKqyPC1fJ6kNoEjnksyhFcY1Ef4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1582909660426365.68925787419255; Fri, 28 Feb 2020 09:07:40 -0800 (PST) Received: from localhost ([::1]:50952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7j6x-0005N7-5Q for importer@patchew.org; Fri, 28 Feb 2020 12:07:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56697) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7ifS-00084x-FB for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:39:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7ifR-00023B-54 for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:39:14 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:42252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7ifQ-00022m-US for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:39:13 -0500 Received: by mail-wr1-x42c.google.com with SMTP id p18so3638157wre.9 for ; Fri, 28 Feb 2020 08:39:12 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id c9sm13335214wrq.44.2020.02.28.08.39.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 08:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=7pnRJmXnO6IweO9cucbS1G2R/qlgmQQw2whsHVhkaZE=; b=UTzyJPNqpQqlyXniKbEloNDMOAKtEzXo39ufOq2/p2LTGqGhnK6MkV2V9fkPJD2r22 NPnwbwi97+oSRoYuogSJv9h5Bz8OpUuRd0iz352HrYMdrjmj8BTZT7MUPkyV3dcbY6zv ozosodw0hFBxX28fIwsufXWifPX3wpsBFSL2kpaFd/q8zm30NWdMvKdZHKEg2d8YcGUv bj/uNI3gvnUZn9O0iELpCdeWmnCgHoKtTrXmhXRulwklPVHFOXuRyZnrolYqI88VX6fU bSlvYasapLp45T7KuljWM6j+eDGsJ/Zzz4pZm/FeKO8JtpHY9JDvaP/aJQVgz0URSMOQ aOsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7pnRJmXnO6IweO9cucbS1G2R/qlgmQQw2whsHVhkaZE=; b=eF8AktvlFi+BKE+weRlq/GcOSyJ66RjiBjWC8GEL1THB1ggyDOGl5WeR4GeLNfNOdf nqOiegAfOD4rU18yIYdN05MiXq3VwVIQrC86YU/okFyPq+dg3WR4BzGuzxsWmFsMxPVM HG8Eb0ppDtSDKfsf11oXy3lvvUYK+vF6OeGvL6Jz6fWc5zBRw8NATxxt8uEbHp3ixdW5 fnNgV9Ur/1ymoyNsSjo4fFwzvRXpMRjrgc56OpXN58ub82qrnN27pKYJixVOj5rueDps xuQf/Kb3gsfNtogmBlh407UxX92U3n7yT5TnG2+o34/zZKq/C9cxFZhRyFVEo8jv4ZGV twaQ== X-Gm-Message-State: APjAAAUzsHHSs6xOm+cc3mupeFkbexC61kL/hTBk0CMWbaG1IXctbsaC RYRCPS9v8wjL0JfXtQzoy7JKhVESHCCysw== X-Google-Smtp-Source: APXvYqwc6DYlF7hCRuwxyonVI3wnlvADI2R3tbkx2C2e4xdIXmLcjGa4w9N0VITc7OjFlIc4ANA7Xw== X-Received: by 2002:adf:9521:: with SMTP id 30mr5484988wrs.349.1582907951611; Fri, 28 Feb 2020 08:39:11 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 25/33] tests/acceptance: Add a test for the N800 and N810 arm machines Date: Fri, 28 Feb 2020 16:38:32 +0000 Message-Id: <20200228163840.23585-26-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200228163840.23585-1-peter.maydell@linaro.org> References: <20200228163840.23585-1-peter.maydell@linaro.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::42c 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Thomas Huth Old kernels from the Meego project can be used to check that Linux is at least starting on these machines. Signed-off-by: Thomas Huth Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20200225172501.29609-2-philmd@redhat.com Message-Id: <20200129131920.22302-1-thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Peter Maydell Acked-by: Igor Mammedov --- MAINTAINERS | 1 + tests/acceptance/machine_arm_n8x0.py | 49 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 tests/acceptance/machine_arm_n8x0.py diff --git a/MAINTAINERS b/MAINTAINERS index b66c46dcb9f..264374adbe8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -686,6 +686,7 @@ F: hw/rtc/twl92230.c F: include/hw/display/blizzard.h F: include/hw/input/tsc2xxx.h F: include/hw/misc/cbus.h +F: tests/acceptance/machine_arm_n8x0.py =20 Palm M: Andrzej Zaborowski diff --git a/tests/acceptance/machine_arm_n8x0.py b/tests/acceptance/machin= e_arm_n8x0.py new file mode 100644 index 00000000000..e5741f2d8d1 --- /dev/null +++ b/tests/acceptance/machine_arm_n8x0.py @@ -0,0 +1,49 @@ +# Functional test that boots a Linux kernel and checks the console +# +# Copyright (c) 2020 Red Hat, Inc. +# +# Author: +# Thomas Huth +# +# 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 + +from avocado import skipUnless +from avocado_qemu import Test +from avocado_qemu import wait_for_console_pattern + +class N8x0Machine(Test): + """Boots the Linux kernel and checks that the console is operational""" + + timeout =3D 90 + + def __do_test_n8x0(self): + kernel_url =3D ('http://stskeeps.subnetmask.net/meego-n8x0/' + 'meego-arm-n8x0-1.0.80.20100712.1431-' + 'vmlinuz-2.6.35~rc4-129.1-n8x0') + kernel_hash =3D 'e9d5ab8d7548923a0061b6fbf601465e479ed269' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + self.vm.set_console(console_index=3D1) + self.vm.add_args('-kernel', kernel_path, + '-append', 'printk.time=3D0 console=3DttyS1') + self.vm.launch() + wait_for_console_pattern(self, 'TSC2005 driver initializing') + + @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code= ') + def test_n800(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:n800 + """ + self.__do_test_n8x0() + + @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code= ') + def test_n810(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:n810 + """ + self.__do_test_n8x0() --=20 2.20.1