From nobody Sat Nov 16 16:55:28 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1605112423; cv=none; d=zohomail.com; s=zohoarc; b=mTLzn/LyGU/QbJ8S8KYZ7mAuc8HKvDHDw7iwhkeyMXDZVgfsfOtBweaG2RBGj7aVlgUho8HsreXdtKqApUOn75FZHo+pQqgO3KL2leeY56hZsqAdr4R4GXWKAUvnc3fluFO4FbE0K4pMuAkRxnSletay35WZBofJO8r0pF4ITXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605112423; h=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; bh=Zi75fku0OFNQzErpcH7q/kQ/tyIaSHtSE/ulFmYsCsM=; b=in5CvswErUNjg8ZRn7heV2J51uF65e5xlo/9k2yPzcdK7jJvqhzvQzy65lpbOjwYAEKq82lOEqJBeOjxVEDSWcDIElTG0sHAAEllwe2dZ6vZDYvfQjsyfQitALG4fynAdqrOVRGeuZz3K9oWOOEhBd0rUVu4OwIigKWZfyYYz18= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail 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 1605112423564690.499246726821; Wed, 11 Nov 2020 08:33:43 -0800 (PST) Received: from localhost ([::1]:45664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kct42-0005mM-Ac for importer@patchew.org; Wed, 11 Nov 2020 11:33:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcspJ-0000ud-Lf for qemu-devel@nongnu.org; Wed, 11 Nov 2020 11:18:29 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:40327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcspH-00081l-4j for qemu-devel@nongnu.org; Wed, 11 Nov 2020 11:18:29 -0500 Received: by mail-wr1-x42e.google.com with SMTP id 33so3077122wrl.7 for ; Wed, 11 Nov 2020 08:18:26 -0800 (PST) Received: from cmiranda-laptop.localdomain (bl19-104-46.dsl.telepac.pt. [2.80.104.46]) by smtp.gmail.com with ESMTPSA id s188sm3115178wmf.45.2020.11.11.08.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 08:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zi75fku0OFNQzErpcH7q/kQ/tyIaSHtSE/ulFmYsCsM=; b=fMfpb5NoiKVpBGPNWQ/PoXL0vwEFXbv60aSeDqpinj/2spVel/IoDNZ3J5UXe2PfOu fLBiTlEtdbp5ZqDz5mUfCFSxJLTxWGX6mjudCR4OUpPWc0tvYkx/fjqPOmaZaGvvZBiA idBqLc6m5oAyfWf4gw9SHRPuW+PwltrKa7pftbGlq3S7Z9aXLXReKY3FrkWroIOTKMHZ uhtSxNF7Q/+36A+4/NSeb9MUacyA6axwvbxJA18OF1vqsvpDMeZHywaoYT4QrHCXbmKe iijsthSP9xy8k9PZQy9nQKshcUsLxtfohWK+rtr+6OvnswNdTt5wd0suGU+cTk1Wus/O AJZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zi75fku0OFNQzErpcH7q/kQ/tyIaSHtSE/ulFmYsCsM=; b=ZHDeC4meqBWXQOMkZezs6aSoz7Re8z5G7iOFaSXSKG+cqvDlhmgKFSKat7qleOB8XW uA4+xNqtTY2uvjWbNUSbdUFRwKY+yeAzO7fbWlIuPWS0B7YM2IqTeo3KKQRh+0HL8iaP 6g6bCoiCwYDplXC6nY6nH1m7w8PWEf356lPRBiCjD7N0ySz/sb/51Xu0xiKW+Qw6o48C Ap87Ah1HZSwCLtk9ohyObK/Vi7zug4U4mFGUcoGiYoe2fnwZ+IFuxEC33lWG6qRPQsz/ KZugI97LZFyQ1mxXYQYWFgld6sw83r8ZS8wlG7YNyLJd5nMaUQpph25acNkQQFEH6rTi AdOw== X-Gm-Message-State: AOAM533oQ0wquTzA1lmCPN0ABkWivXl0UzKqPnuiRPGUDuDJgiXaASFf JMeEe53i92XbDq7OHzRB3czRvWUZlgTLxQ== X-Google-Smtp-Source: ABdhPJyRlv9JNsAqkclndDNJ0ZTWBY0JlxAxgOhJlRffnW+s3lLjmYKn02w6wlF+s1MCYLT/o0cDhg== X-Received: by 2002:adf:9104:: with SMTP id j4mr17993239wrj.198.1605111505451; Wed, 11 Nov 2020 08:18:25 -0800 (PST) From: cupertinomiranda@gmail.com To: qemu-devel@nongnu.org Subject: [PATCH 15/15] tests/acceptance: ARC: Add linux boot testing. Date: Wed, 11 Nov 2020 16:17:58 +0000 Message-Id: <20201111161758.9636-16-cupertinomiranda@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201111161758.9636-1-cupertinomiranda@gmail.com> References: <20201111161758.9636-1-cupertinomiranda@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=cupertinomiranda@gmail.com; helo=mail-wr1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: Claudiu Zissulescu , Cupertino Miranda , Shahab Vahedi , Shahab Vahedi , Cupertino Miranda , linux-snps-arc@lists.infradead.org, Claudiu Zissulescu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Cupertino Miranda Just an acceptance test with ARC Linux booting. Signed-off-by: Cupertino Miranda --- tests/acceptance/boot_linux_console.py | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 8f433a67f8..3eae551905 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -137,6 +137,26 @@ class BootLinuxConsole(LinuxKernelTest): console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) =20 + def test_mips_malta(self): + """ + :avocado: tags=3Darch:arc + """ + deb_url =3D ('http://snapshot.debian.org/archive/debian/' + '20130217T032700Z/pool/main/l/linux-2.6/' + 'linux-image-2.6.32-5-4kc-malta_2.6.32-48_mips.deb') + deb_hash =3D 'a8cfc28ad8f45f54811fc6cf74fc43ffcfe0ba04' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinux-archs') + + self.vm.set_console() + kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + 'console= =3DttyS0' + self.vm.add_args('-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console_pattern =3D 'Kernel command line: %s' % kernel_command_line + self.wait_for_console_pattern(console_pattern) + def test_mips64el_malta(self): """ This test requires the ar tool to extract "data.tar.gz" from @@ -973,6 +993,17 @@ class BootLinuxConsole(LinuxKernelTest): console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) =20 + def do_test_arc(self, kernel_name, console=3D0): + tar_url =3D ('https://github.com/cupertinomiranda/arc-qemu-resourc= es/archive/master.tar.gz') + file_path =3D self.fetch_asset(tar_url) + archive.extract(file_path, self.workdir) + + self.vm.set_console(console_index=3Dconsole) + self.vm.add_args('-kernel', + self.workdir + '/' + kernel_name) + self.vm.launch() + self.wait_for_console_pattern('QEMU advent calendar') + def test_m68k_q800(self): """ :avocado: tags=3Darch:m68k @@ -1101,3 +1132,27 @@ class BootLinuxConsole(LinuxKernelTest): tar_hash =3D '49e88d9933742f0164b60839886c9739cb7a0d34' self.vm.add_args('-cpu', 'dc233c') self.do_test_advcal_2018('02', tar_hash, 'santas-sleigh-ride.elf') + + timeout =3D 240 + def test_arc_virt(self): + """ + :avocado: tags=3Darch:arc + :avocado: tags=3Dmachine:virt + """ + + tar_url =3D ('https://github.com/cupertinomiranda/' + 'arc-qemu-resources/archive/master.tar.gz') + file_path =3D self.fetch_asset(tar_url) + archive.extract(file_path, self.workdir) + + kernel_path =3D self.workdir + '/arc-qemu-resources-master/vmlinux= _archs' + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE) + self.vm.add_args('-kernel', kernel_path) + self.vm.add_args('-device', 'virtio-net-device,netdev=3Dnet0') + self.vm.add_args('-netdev', 'user,id=3Dnet0,hostfwd=3Dtcp::5558-:2= 1,hostfwd=3Dtcp::5557-:23') + self.vm.launch() + + console_pattern =3D 'Welcome to Buildroot' + self.wait_for_console_pattern(console_pattern) --=20 2.20.1