From nobody Mon Feb 9 16:19:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1561636550; cv=none; d=zoho.com; s=zohoarc; b=HH0AW1cDztza8u4qClJwETFpQ3onFYBtTfdb+6vVYtbHT18O97yaZJSQCYnANp1SGzM5XYkUj4Um72gY/bku2DP6j4mdSy2FKT+CX4hXkK2aKygqs+M2ABRTynCjitDQQYLpyz8SiMwb1AMGyWL/Nv73p6R2lxrN3/Woxr4lRcg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561636550; h=Content-Type: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:ARC-Authentication-Results; bh=7Kaojq+JVYsXMPIVtQoIpSEKIUgt3q0HMeJqgC9HTsI=; b=K4PQyQwbKtu9oxTOzl6MUqO6rnwZ/7+3rb7mplHvTXdk/Yuzi4n9gQaaO3+qVvpYR32GrTfWS8xYOHJEQNOuTSU09xLOTxPs4XgfEV4vVXyGee0TlqLmhgmTaNXPs3BanmbXVUXrZA4rucjVuWBNnUp20hbDThaxbiNG3W6bfeI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1561636550053824.6995779398842; Thu, 27 Jun 2019 04:55:50 -0700 (PDT) Received: from localhost ([::1]:49172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgT0D-0000EU-So for importer@patchew.org; Thu, 27 Jun 2019 07:55:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38708) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgSyB-0007CJ-Ah for qemu-devel@nongnu.org; Thu, 27 Jun 2019 07:53:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgSy9-000145-Ln for qemu-devel@nongnu.org; Thu, 27 Jun 2019 07:53:39 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:50559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgSy9-000130-F4 for qemu-devel@nongnu.org; Thu, 27 Jun 2019 07:53:37 -0400 Received: by mail-wm1-x344.google.com with SMTP id c66so5441977wmf.0 for ; Thu, 27 Jun 2019 04:53:37 -0700 (PDT) Received: from x1.local (183.red-88-21-202.staticip.rima-tde.net. [88.21.202.183]) by smtp.gmail.com with ESMTPSA id o126sm6196408wmo.1.2019.06.27.04.53.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 04:53:35 -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=7Kaojq+JVYsXMPIVtQoIpSEKIUgt3q0HMeJqgC9HTsI=; b=gvjC/PjXran5Lc6W1YhS2STDcvjGC9M6M7vdGtzdzeT7I7/rAXXnwW8xx54gor/dRs KQlh0P4rBK1iLb2iQoahmA2le6rwlsucyqNBESfIuZGJlvrw+8FsRb4Q5io6Pw70RGsN DgqfNDVIzm4WyURTyRowf0b+7wp/cZ4Qk1WkIf2625e82Ai+jhEMndkuNhatuHNt5hBz IC1cUEbF9o+ZwsUdNWGVRXuwd6V+bjx20zJ1KSHnsLCmUK6ycUv5Iw/xwgY2ZU/EXUW0 KXleepvh1nwdMhNxPHvUbmePHTFDprOi9qQbsXS6yZ2tN/fdfW96Stai0InzCWja/7EQ i5Rw== 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=7Kaojq+JVYsXMPIVtQoIpSEKIUgt3q0HMeJqgC9HTsI=; b=lEeV/5ZYxVgqJDiQuduiGgbQn7pdZenjnZyzp1h+wy8yB00v6rOmVpriXy5i7Aen9p zkpE2EyAjpyyj1iu+TM7cco3LCV6k8r68fQ0hnd22mQUsBrkT4KMFKs0OzTdvmSgAnju tukqZEiEx7XCbzr1sW4vC0SfGu6Jg1BSnCpiVpkSu/UyfLOeP84Yip2aTfxxiZ4clmJ8 XDDMCA6oeL41UpQcUxCDrIWQ44wSzJcEuP4RKtROfVy0PX4kV7PB5EEWpjTIfEjSpd4a wSVQc6RBiFHC8rZiPAi+cuFxYY4qq1FRaOdmAeLajuufnQ0m4NxvR4Tb7oB5mV5lLNh/ roMg== X-Gm-Message-State: APjAAAVkJytJ+epQc/lEHHTz99rXDlg0jaIo68B18uGhL3G5qK/56mXi qnUk8wk/mGAE7TmBWZ4qJDAe2BuN X-Google-Smtp-Source: APXvYqyF3GA5C5LZakVVi5cf7TS5DBmzSWiSNjQL5lHwDl8fjibYqM5GcnyM0q/qp4GSAftalacaOQ== X-Received: by 2002:a1c:6585:: with SMTP id z127mr3184776wmb.25.1561636416139; Thu, 27 Jun 2019 04:53:36 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Thu, 27 Jun 2019 13:53:30 +0200 Message-Id: <20190627115331.2373-3-f4bug@amsat.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190627115331.2373-1-f4bug@amsat.org> References: <20190627115331.2373-1-f4bug@amsat.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::344 Subject: [Qemu-devel] [PATCH 2/3] tests/acceptance: Add test that boots Linux up to BusyBox on Leon3 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: Fam Zheng , Eduardo Habkost , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fabien Chouteau , KONRAD Frederic , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Gaisler provides convenient images: https://www.gaisler.com/index.php/downloads/linux HOWTO build: https://www.gaisler.com/index.php/products/operating-systems/linux Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/machine_sparc_leon3.py | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests/acceptance/machine_sparc_leon3.py b/tests/acceptance/mac= hine_sparc_leon3.py index 0bbae44f85..b3039b5d30 100644 --- a/tests/acceptance/machine_sparc_leon3.py +++ b/tests/acceptance/machine_sparc_leon3.py @@ -37,6 +37,11 @@ class Leon3Machine(Test): fail =3D 'Failure message found in console: %s' % failure_= message self.fail(fail) =20 + def exec_command_and_wait_for_pattern(self, command, success_message): + command +=3D '\n' + self.vm.console_socket.sendall(command.encode()) + self.wait_for_console_pattern(success_message) + def test_leon3_helenos_uimage(self): """ :avocado: tags=3Darch:sparc @@ -56,3 +61,29 @@ class Leon3Machine(Test): =20 self.wait_for_console_pattern('Copyright (c) 2001-2014 HelenOS pro= ject') self.wait_for_console_pattern('Booting the kernel ...') + + def test_leon3_linux_kernel_4_9_busybox(self): + """ + :avocado: tags=3Darch:sparc + :avocado: tags=3Dmachine:leon3 + """ + kernel_url =3D ('https://www.gaisler.com/anonftp/linux/linux-4/ima= ges/' + 'leon-linux-4.9/leon-linux-4.9-1.0/up/image.ram') + kernel_hash =3D '289bd1bcca10cda76d0ef2264a8657adc251f5f5' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + self.vm.set_machine('leon3_generic') + self.vm.set_console() + self.vm.add_args('-kernel', kernel_path) + + self.vm.launch() + + self.wait_for_console_pattern('TYPE: Leon3 System-on-a-Chip') + + self.wait_for_console_pattern('Welcome to Buildroot') + + self.wait_for_console_pattern('buildroot login:') + self.exec_command_and_wait_for_pattern('root', '#') + uname =3D 'Linux buildroot 4.9.54-00018-g62dab2c #2 ' \ + 'Wed Oct 18 09:45:51 CEST 2017 sparc GNU/Linux' + self.exec_command_and_wait_for_pattern('uname -a', uname) --=20 2.19.1