From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:6d5:0:0:0:0:0 with SMTP id 204csp2501358lfg; Mon, 8 Mar 2021 22:20:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/wnT42wk8RRhJHLiIIw+INx9Tszd5hl4m4DTVII0nFLjEB/EoLoao4E8FpcLqGVvq/XsR X-Received: by 2002:a05:6e02:1544:: with SMTP id j4mr23704033ilu.29.1615270849041; Mon, 08 Mar 2021 22:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615270849; cv=none; d=google.com; s=arc-20160816; b=G7U2eAi/f1VEXeC0YWv0WggfZJwO4JGmU0ORGUM5g9OI70tIHeFqv9A2xUmmyd9VFN 4aAaFoWNkylpp+cgUXfM6qVD7UYq5ZE8ZFeqU31EtTRZajK0OItNyBt3emwi7rs0YrY8 zxMPivz8ufoBLcL+MMDhyitUz2JCVHklfUlLB4vPzc+oLiYGnK7ZcrMkIs7v+65spFWE 3Shf11SUE1S6ITGxPyM3X1+82wohlc9D7JNE9goJIs3di5pkKmy+4ct9+queJlQ9bbK+ 4sPJA3NBjcwFuhJ1SVaJGliNt4Umh655TUD9Wcm7WEc4HgBxbmHx8QdUp5mEIAu81Q3j WGBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=miQeKNkvU8lnqhe4eX7n0EAYZqmKfdLV68+1Zj20kXw=; b=MP6wArecaUeFS9TLYS3f2Aw84mWpI9ZF494+QBe0eg5hM87OP/2QB6Gd/5J4zUbDZp rsv6eV7SZYZWtYmhMXIk3c6b1ObSqvjj4UMHiLAgLwEQU58f6p8uyTGXqaBYubKfj72Z fHwNLOgyBOo4v1SdgxDmVObNM6GWV/pjsYqYCkQqCTnI/sc7C9JXvePyFDLHNdJJwgT9 wYMHSc3wTCt0OPB0VfyA8hfmqsiheZIKqJJLgT85PzElIT1mmAVh4flItwS49iltgoFh rpV8vVJbO9dJrda4CjnGx/OVqBszRY4Wkxf93+NqeUwNAhAi6wi68sM95KdG067MxhuJ 3JgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@jms.id.au header.s=google header.b=YvfDI6F1; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k15si13108857jan.49.2021.03.08.22.20.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Mar 2021 22:20:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@jms.id.au header.s=google header.b=YvfDI6F1; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:46904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJVjc-0008D0-89 for alex.bennee@linaro.org; Tue, 09 Mar 2021 01:20:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJVie-0008Co-O6; Tue, 09 Mar 2021 01:19:48 -0500 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:46669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJVic-0007UH-Ln; Tue, 09 Mar 2021 01:19:48 -0500 Received: by mail-qv1-xf2e.google.com with SMTP id 15so5873978qvp.13; Mon, 08 Mar 2021 22:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=miQeKNkvU8lnqhe4eX7n0EAYZqmKfdLV68+1Zj20kXw=; b=YvfDI6F1dsvxuSVYQYq0yOCc1BMuTN424Owb4vdEY9K9PbwCpWYO3o3uZaPekIOLul Yv7CQNxtuk/R/ygn8okmoJzzK6Z0dG7G0mmPI91+1ZLxClnRUSe+9zGFcySA5ZTJLOVi 1pCMAiYtuozU9Ke56WOytDsp5n80R1gU9fENw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=miQeKNkvU8lnqhe4eX7n0EAYZqmKfdLV68+1Zj20kXw=; b=W+HeYEuoUd6ko8BMB1Ka1CUsK3XB+5H90wQCZIho4QqcysX4KoYU788uvQf/ifzXSJ eQj46bab8GLcttaiXb/CJ9YrqaShOxsZJFVORMcntBntqs029qwYm5LulV9uiH02AHPo WYoL7guiOiXc8tA+ZiinMPJC4AHoGEpFCZgPK6QR1i6IIotnE50UuuC8NnxJjRGuoqvD 5Kx7hmHurpSK9Nf3ZMUDDc2+268XVFqEBTrHMd0Ya5wMENXMms3kCz2ira06w07l//zI B3vDEkkMMURE6yyl/Fz5Tqj65u+dbKbpbYMjJc6XS/ZlCcS0EiS0U4vQgNwE+z54SpOf dTMQ== X-Gm-Message-State: AOAM531+b6ZkSHNc/nK1sKhddismcy/5Bur91o1Jdawh4+SlJxPtvhB3 aHZkJG5XQb6INRIVtTt+PEjZ88jm7QbS0Uqp524= X-Received: by 2002:a0c:b894:: with SMTP id y20mr24547768qvf.43.1615270784686; Mon, 08 Mar 2021 22:19:44 -0800 (PST) MIME-Version: 1.0 References: <20210304123951.163411-1-joel@jms.id.au> <20210304123951.163411-3-joel@jms.id.au> <5e6691b6-1cdc-8d66-25e7-4df1be63be46@redhat.com> In-Reply-To: <5e6691b6-1cdc-8d66-25e7-4df1be63be46@redhat.com> From: Joel Stanley Date: Tue, 9 Mar 2021 06:19:31 +0000 Message-ID: Subject: Re: [PATCH v2 2/2] tests/acceptance: Test ast2600 machine To: Wainer dos Santos Moschetta Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=joel.stan@gmail.com; helo=mail-qv1-xf2e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Andrew Jeffery , QEMU Developers , qemu-arm , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Cleber Rosa , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: hQQj+be2C91Y On Fri, 5 Mar 2021 at 20:46, Wainer dos Santos Moschetta wrote: > > Hi, > > On 3/4/21 9:39 AM, Joel Stanley wrote: > > This tests a Debian multi-soc arm32 Linux kernel on the AST2600 based > > Tacoma BMC machine. > > > > There is no root file system so the test terminates when boot reaches > > the stage where it attempts and fails to mount something. > > > > Signed-off-by: Joel Stanley > > --- > > v2: Update expected strings so test passes > > --- > > tests/acceptance/boot_linux_console.py | 26 ++++++++++++++++++++++++++ > > 1 file changed, 26 insertions(+) > > > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py > > index 2f46a08fdc10..4f1df69bc75c 100644 > > --- a/tests/acceptance/boot_linux_console.py > > +++ b/tests/acceptance/boot_linux_console.py > > @@ -1094,6 +1094,32 @@ def do_test_arm_aspeed(self, image): > > # self.wait_for_console_pattern("login:") > > self.vm.shutdown() > > > > + def test_arm_ast2600_debian(self): > > + """ > > + :avocado: tags=arch:arm > > + :avocado: tags=machine:tacoma-bmc > > + """ > > + deb_url = ('http://snapshot.debian.org/archive/debian/' > > + '20210302T203551Z/' > > + 'pool/main/l/linux/' > > + 'linux-image-5.10.0-3-armmp_5.10.13-1_armhf.deb') > > + deb_hash = 'db40d32fe39255d05482bea48d72467b67d6225bb2a2a4d6f618cb8976f1e09e' > > + deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash, > > + algorithm='sha256') > > + kernel_path = self.extract_from_deb(deb_path, '/boot/vmlinuz-5.10.0-3-armmp') > > + dtb_path = self.extract_from_deb(deb_path, > > + '/usr/lib/linux-image-5.10.0-3-armmp/aspeed-bmc-opp-tacoma.dtb') > > + > > + self.vm.set_console() > > + self.vm.add_args('-kernel', kernel_path, > > + '-dtb', dtb_path, > > + '-net', 'nic') > > + self.vm.launch() > > + self.wait_for_console_pattern("Booting Linux on physical CPU 0xf00") > > + self.wait_for_console_pattern("SMP: Total of 2 processors activated") > > Above check isn't reliable. Here the VM started with smp 1, therefore > the test failed as: We should reliably pass that check once this fix has been merged: https://lore.kernel.org/qemu-devel/20210303010505.635621-1-joel@jms.id.au/T/ Having that line included is helpful, as it tests the smp boot stub functionality in our emulated machine. > > FAIL: Failure message found in console: Kernel panic - not syncing > > > + self.wait_for_console_pattern("No filesystem could mount root") > > + self.vm.shutdown() > > You don't need to shutdown the VM as the test's tearDown() does that for > you. Thanks, I'll send a v2 with those removed. > > Thanks! > > - Wainer > > > + > > def test_m68k_mcf5208evb(self): > > """ > > :avocado: tags=arch:m68k >