From patchwork Thu Jun 11 11:43:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11599815 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3EAC590 for ; Thu, 11 Jun 2020 11:48:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13FB12072F for ; Thu, 11 Jun 2020 11:48:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aHj0uPxZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13FB12072F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:39354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjLhA-0000qd-AA for patchwork-qemu-devel@patchwork.kernel.org; Thu, 11 Jun 2020 07:48:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjLcU-00024b-Rm; Thu, 11 Jun 2020 07:43:42 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:38639) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjLcT-0001sA-FU; Thu, 11 Jun 2020 07:43:42 -0400 Received: by mail-wr1-x443.google.com with SMTP id e1so5818350wrt.5; Thu, 11 Jun 2020 04:43:30 -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=w8hUc/1TWyX+gQCAaNVvAefQWKI4RgRqWbvHS2ef4jA=; b=aHj0uPxZJDs49XH+xcXx/iLbO9Ht/88aOwL5hdo5+rINDauqz6od5xCx5cQmTXU2Gw o/xjCD8IbOY952Oy+DDnQbxYirJ6l/9hzdDhDzIwdLbApM1Sh+2VGPGVzWF5Z2TzPbpU OYmUjHdIFcW354YU092CNIynHGeB7pG55g+c/5MhpUkSmzyhOBQhOrX3eQhZFvpUmjwp 6VfRSZTysiBolw1JUcWU6WENs902FMmJhrMWTSUXHLVvIGRoXSIiB1iV7dW2jCZQdUoI ctNIsh4MfJwqBbGCrMtj2tezWc3QBN0G8UvXiHw83O/8S0UHh30XV11aTXZTvmET2Xpk +PRw== 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=w8hUc/1TWyX+gQCAaNVvAefQWKI4RgRqWbvHS2ef4jA=; b=pLSkizUd8AXIdkqAui1vQltkctGadaHBQvLM2ts6tZRnGU4Ar4ipFTU3CwsbLx/hwz MhfkoQZBP3kHr7JN2KSLaaciap94CIL9BB1UdLw/AJoUNjWaKhV6OkU13vGgZUP87Mt8 LMdSTpcFii2ZTDovqTtTFUCI0wBbAajVCeWYU9MMeWXYc5qwbRHyi6ue3ZgJrE7juSfr 4aZR0TntNOrbh4Elh4whNjozTsrSoODiXWznx+XpUDI1pK6xk2n3bVyu8g6Ph0ZJie7y 6TT6JNNU4wlTwhMiygyqErHdxXs3oU/SqQIqEbWAjmOxkDNR9UuUs5Aqn1jQpgBLHp2e rKJA== X-Gm-Message-State: AOAM532jBCxVgZ//UL4pSj0Mur/o3R8Oet1U197oNKXGH96+bo3j/s3y bhovdmxtRcG5+OiHhQ3zv+nKQ/5+ X-Google-Smtp-Source: ABdhPJzjKwDoNQlBzccHESMWkb2nPVkZvvdPYuIDeH+i23r4vQBKWb7RsrMVg+hkrisXd0t8ThbipQ== X-Received: by 2002:a5d:4ec3:: with SMTP id s3mr9746159wrv.103.1591875809199; Thu, 11 Jun 2020 04:43:29 -0700 (PDT) Received: from x1w.redhat.com (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id h29sm4832863wrc.78.2020.06.11.04.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 04:43:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 6/7] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Date: Thu, 11 Jun 2020 13:43:16 +0200 Message-Id: <20200611114317.13044-7-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200611114317.13044-1-f4bug@amsat.org> References: <20200611114317.13044-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::443; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x443.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: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Fam Zheng , Thomas Huth , Yoshinori Sato , qemu-trivial@nongnu.org, Magnus Damm , Michael Tokarev , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Now that we can select the second serial console in the acceptance tests (see commit 746f244d9720 "Allow to use other serial consoles than default"), we can also test the sh4 image from the QEMU advent calendar 2018. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20200515164337.4899-1-thuth@redhat.com> [PMD: Split .travis.yml change in separate patch] Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/boot_linux_console.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 3f3aa0c854..3d02519660 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -858,12 +858,12 @@ def test_m68k_q800(self): console_pattern = 'No filesystem could mount root' self.wait_for_console_pattern(console_pattern) - def do_test_advcal_2018(self, day, tar_hash, kernel_name): + def do_test_advcal_2018(self, day, tar_hash, kernel_name, console=0): tar_url = ('https://www.qemu-advent-calendar.org' '/2018/download/day' + day + '.tar.xz') file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) archive.extract(file_path, self.workdir) - self.vm.set_console() + self.vm.set_console(console_index=console) self.vm.add_args('-kernel', self.workdir + '/day' + day + '/' + kernel_name) self.vm.launch() @@ -937,6 +937,15 @@ def test_ppc_mac99(self): self.vm.add_args('-M', 'graphics=off') self.do_test_advcal_2018('15', tar_hash, 'invaders.elf') + def test_sh4_r2d(self): + """ + :avocado: tags=arch:sh4 + :avocado: tags=machine:r2d + """ + tar_hash = 'fe06a4fd8ccbf2e27928d64472939d47829d4c7e' + self.vm.add_args('-append', 'console=ttySC1') + self.do_test_advcal_2018('09', tar_hash, 'zImage', console=1) + def test_sparc_ss20(self): """ :avocado: tags=arch:sparc