From patchwork Fri Jun 22 00:44:31 2018 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: 933021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="srYwwGoY"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Bfxc5k1Pz9s47 for ; Fri, 22 Jun 2018 10:45:40 +1000 (AEST) Received: from localhost ([::1]:58157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWACo-0003pd-D3 for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 20:45:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAC2-0003nq-Cl for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWAC1-0000EO-HV for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:50 -0400 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:41233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWAC1-0000Dv-Cq for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:49 -0400 Received: by mail-qk0-x22a.google.com with SMTP id w23-v6so2847391qkb.8 for ; Thu, 21 Jun 2018 17:44:49 -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=I9J3kv0l4HE9gibRYCNULXpZjzjVD9rldphyWp2Eb1M=; b=srYwwGoYJuICvf5yTa0Ewb31tEi3mhdGRg5pC0vujrGJNQmKSEKCKj4pkDcyYX84nC ZAx0nFpNK2ffgerIXnBLyytI7c3DRMXeHuJRi2hjAVjbHO9rlpO1AmCqIDTK6jecCv3n yB3w5nhWCur5Helhy+Ll25WXOMiBG2DusnrVzWIuF8VqpC8CV6OyNhHhBeRiojTld63N Xk1/FUY7MYrCPTI/Xi8/O6qmkk3vGy2P6/AJF4N6fSbio9vtYFcYM8qVhSu3Y1VBMANS PbIyO3B7OeCpu/X/SOaDEeiIc3yga5+1zup71HZzy0et1tLT1f2nImpOrLrB0Vouu9tb /XwQ== 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=I9J3kv0l4HE9gibRYCNULXpZjzjVD9rldphyWp2Eb1M=; b=PX0FYgX4TlZZeyi58nklfmYK9Oj1lUtFXuNYSMruff1OOVYSwQk1vFaZ6ng9Znh+pu scbiTYreex/8qddYhTt9xt0he1bB7pkLXzuLjJn5wWONWMHsU09O89qwx2juRLxOGzYv egVH+1Fp3D0BesX9k6Enu/Tr7iOEclNyIUOAx2z8Kk7QPKmT+7CTCqY9chPux54+0+eK wWN2v8hhcdu65qtZaj2rSJ8vJh55+hVJTYw3LUxSeQVPEUhM9lblpZ06QXD7RpLSL3va cfIwtQbEPReVuaWj1K0Nh0Qq2Wm8iv5cNOU+EbcrqLErL3XDXNh2zFbuBf2Ss3Sy8mj1 E+5g== X-Gm-Message-State: APt69E3SBvx9aHyKNDW2rtbZu9CzzWoRYH+Ei8GI1cvkCZg5L5CEwHf7 SGKlnXBMr+lCxGNIBGMcyrE= X-Google-Smtp-Source: ADUXVKIlNQx5D2qovkjmYaS1jxaoj7pWrurq5MTV7AaVg9qT0OFmsZyBht8/jVr/ihLf8OOLyqosBA== X-Received: by 2002:a37:270b:: with SMTP id n11-v6mr23032940qkn.91.1529628288746; Thu, 21 Jun 2018 17:44:48 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:48 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:31 -0300 Message-Id: <20180622004435.10291-3-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22a Subject: [Qemu-devel] [PATCH v2 2/6] tests/acceptance: Rename the x86-64 specific BootLinuxConsole test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/boot_linux_console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 98324f7591..f6a34d75a5 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -13,7 +13,7 @@ import logging from avocado_qemu import Test -class BootLinuxConsole(Test): +class BootLinuxConsoleX86_64(Test): """ Boots a x86_64 Linux kernel and checks that the console is operational and the kernel command line is properly passed from QEMU to the kernel From patchwork Fri Jun 22 00:44:32 2018 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: 933024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O9thCvWv"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Bg1j34Hzz9s47 for ; Fri, 22 Jun 2018 10:49:13 +1000 (AEST) Received: from localhost ([::1]:58176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAGE-0006RL-VF for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 20:49:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAC4-0003ob-WE for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWAC3-0000F2-UN for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:53 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:42661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWAC3-0000Ey-PR for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:51 -0400 Received: by mail-qk0-x243.google.com with SMTP id u62-v6so313423qkf.9 for ; Thu, 21 Jun 2018 17:44:51 -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=jpf8UQsv1yucXFLy2m5fHdtuRc3Ir4dvw5KUh+ndw30=; b=O9thCvWvU4J6n6zVEz8r6c64tW8FlmDig7yGwHQ5gqchzFt/mwMbsFQiUvftflOd8+ wD5WU902t8LQT6rKDC2zx6E16eq0jdTpQ/TSrwtO51xAYve4iCs4fUhx2+dEvL6hb9yO Mk/I5eOi4ZuUGxEnMQ+9u850UTQ94uOSuo59Z0KVg5OPuc0hZRH+AxfgJB0TQI6IX6yJ j+JcMOUdPKVKOeYq3sYTFLzQQAwrx34/BIORjAoiGFOOFBY4DTvOmBgm5Cet8M9GMrLf dzxB2eVCkI5W9L7U4ZDwlduG26SnMsOK1vXUrJ6rKJUU51TMPFk8ZkXPn6U7364vBg7O Xt5Q== 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=jpf8UQsv1yucXFLy2m5fHdtuRc3Ir4dvw5KUh+ndw30=; b=HvCbpkX2mhbon5b/ArXJSx7r5sCylu+ykaTSghpAJodX0liSor/KO+LyOjo+4o1oFO lqGXWkcgh/m0YBMNWipTb+kWX0/yJlwI8KRk0bGsD7U2LDgtNWPh3x6bUcwLMUkdvD1t rISCdcDBys2LR/hJB+HVLkDNXOBaqQQeuIsvrH+1owSs6tTYGoEz93FIK49BETY6UBa7 8eqTxk88SXM9B8qamanzZr+GXrSqgnyeAtPV/1TEQCV+KFr3+Q0Haj1WP1Hp6Hg6IHnG wBBcqEkG3d8mQ1+s4p3aenxRgH76v9riUgUFPvICFVwaHh3F0TzH9dSJLxi+QUes1zSQ SDKQ== X-Gm-Message-State: APt69E3v0nvTDaxFaPZwipL+qso5GEM5E/WDOg86+/VQB6kmygndk5Il HikNI04X/zwZCDzgshYLEc8= X-Google-Smtp-Source: ADUXVKKxZtQxz6gds0GIY+tbLwsO3uz7wxJAxFLA0W72rc6n+FEK1vLLdRP5S7lBhTqM+glM2pA2wA== X-Received: by 2002:a37:ddd1:: with SMTP id u78-v6mr24273039qku.363.1529628291293; Thu, 21 Jun 2018 17:44:51 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:50 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:32 -0300 Message-Id: <20180622004435.10291-4-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH v2 3/6] tests/acceptance: Improve the Avocado tags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Introduce 'arch' and 'endian' namespaces. For example, all little-endian tests can be run using: $ avocado run -t endian:little tests/acceptance Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/boot_linux_console.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index f6a34d75a5..17dc8d58c1 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -19,7 +19,8 @@ class BootLinuxConsoleX86_64(Test): and the kernel command line is properly passed from QEMU to the kernel :avocado: enable - :avocado: tags=x86_64 + :avocado: tags=endian:little + :avocado: tags=arch:x86_64 """ timeout = 60 From patchwork Fri Jun 22 00:44:33 2018 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: 933026 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MIl1oXux"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Bg3x3sfqz9s47 for ; Fri, 22 Jun 2018 10:51:08 +1000 (AEST) Received: from localhost ([::1]:58194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAI5-00084G-K4 for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 20:51:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWACB-0003tA-Sr for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWAC6-0000Fk-U4 for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:59 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWAC6-0000Fe-Oi for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:54 -0400 Received: by mail-qk0-x242.google.com with SMTP id q70-v6so2864652qke.1 for ; Thu, 21 Jun 2018 17:44:54 -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=jkrhg1baaDLhvkWyteJO2bpXDayCy22+pa0PBnPBiUk=; b=MIl1oXuxAeVPeEBzLylMtybswXvhmkNgSgMkANx2VqL0LfYQqlvp5uuKoh9eZ8TInG ggq/fMS07fwrrVAtYDShrjK26u8HgCilrELcYBo4vCmfvB35NIEMDnVuE9NA4ZCQSmcG 7b1nIiPYCwkzXy916yQto74ESmWjUcmCC9/DheFhTWXioiYl83e+SkjoFDBejS1Rng/u R+vgt10Raza3XMvUIcbdC1nZYysl6yKTSbVKOV8N+HZh5j4iZeJ5kRPOlOypVcL22ZRm qYBDCG0PPv951gPkWVUrQPw2jhlSrZyiLeEmbl1yswKkJRFilBjbzIRaRTCphDoWLM7I doBg== 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=jkrhg1baaDLhvkWyteJO2bpXDayCy22+pa0PBnPBiUk=; b=fSx1ltR+f9CeuO8ZA6A2CncKihzBc5MF9rFVBtocgCD1sQtwm+SYT6Cler5U9VmXfC q5/3dvRtAoEsfpKY+6rUc/R91ZV+xe7wnZi5Tq6qf9XhPl2M8zNZ8eXOtlTd8Cu+sbik t4A0Lod3qlvqeigMGUfdfrm8cdTLC9pM7f5fLU7epEo/XbgugTRh9ggjm0sQeMG+stlY ABBmei+VHn8vSqf9tCtj9FmQuyL/alyb3Dl9hZHBrOtHScAs5Y4wCTXr4E6ZAQRG76Mp f+3qSXAO+M6QTw4JbDYMET1WvqJ/yxSxJdNcF/sqEjGzkPoC5hWA6zyXz7Ks0xTEdqeD OowQ== X-Gm-Message-State: APt69E3Tmr8T4j8qgHB2NsOd0oqjHYmtPknXtWBNe1ZUA781ueQ77CFM sYYW9sxJ0EU/0j0yCgCXuJQ= X-Google-Smtp-Source: ADUXVKLcmxxBvriyqlZoeTdFHLxUPwdlWy3vqReTV34VBqjPU3h5bScML6WTLfI7hsaAfMpDbf3XWw== X-Received: by 2002:a37:7644:: with SMTP id r65-v6mr23101928qkc.326.1529628294190; Thu, 21 Jun 2018 17:44:54 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:33 -0300 Message-Id: <20180622004435.10291-5-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [PATCH v2 4/6] tests/acceptance: Add a BootLinuxConsoleMips test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Similar to the BootLinuxConsoleX86_64 test: boot a Linux kernel on a Malta board and verify the serial is working. This test can be run using: $ avocado run -t endian:big tests/acceptance Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/boot_linux_console.py | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 17dc8d58c1..72cf5e943c 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -46,3 +46,41 @@ class BootLinuxConsoleX86_64(Test): break if 'Kernel panic - not syncing' in msg: self.fail("Kernel panic reached") + + +class BootLinuxConsoleMips(Test): + """ + Boots a mips Linux kernel and checks that the console is operational + and the kernel command line is properly passed from QEMU to the kernel + + :avocado: enable + :avocado: tags=endian:big + :avocado: tags=arch:mips + :avocado: tags=board:malta + """ + + arch = "mips" + timeout = 60 + + def test(self): + kernel_url = ('http://people.debian.org/~aurel32/qemu/mips/' + 'vmlinux-3.2.0-4-4kc-malta') + kernel_hash = '592e384a4edc16dade52a6cd5c785c637bcbc9ad' + kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) + + self.vm.set_machine('malta') + self.vm.set_console() + kernel_command_line = 'console=ttyS0 printk.time=0' + self.vm.add_args('-m', "64", + '-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console = self.vm.console_socket.makefile() + console_logger = logging.getLogger('console') + while True: + msg = console.readline() + console_logger.debug(msg.strip()) + if 'Kernel command line: %s' % kernel_command_line in msg: + break + if 'Kernel panic - not syncing' in msg: + self.fail("Kernel panic reached") From patchwork Fri Jun 22 00:44:34 2018 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: 933025 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="n4I5k7K+"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Bg1j4G8lz9s4b for ; Fri, 22 Jun 2018 10:49:13 +1000 (AEST) Received: from localhost ([::1]:58175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAGF-0006RF-BN for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 20:49:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWACB-0003tC-TH for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWAC9-0000GD-GM for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:59 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:33097) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWAC9-0000G5-C0 for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:57 -0400 Received: by mail-qk0-x243.google.com with SMTP id c131-v6so2863609qkb.0 for ; Thu, 21 Jun 2018 17:44:57 -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=a9a0tFgRdnfyxDjEIRmXxf2vSHRTw/mM5Fhho5eGCLk=; b=n4I5k7K+xr4vxnkWQ4CuAWz6woXH0raDmYBwuP8YWKEB/kH+6x07N3ACalpyLNkSXQ UkUcReadxFIL0E0IMJsQIvY0YT3/yW7yO75NmzQaGiMO3CjBfL10wMfZmgJfOgUUnsUw A4XR65Oe7E6xyyLgerTqkA1HXfUcQDTmHX+fOs8ay3beHfGY27i7dsY+atvFDtwggLmU PJ4nIVvwiYVwAekzxg13iPf2W8tPNqn0Ahy6uCLLhmTFdezpSsZlCUb5k9xe1HmyN+dO lDcmJlpbcc20dFYisFxMnmxuNuTbL6tktDp8ThPHA81RNCtsuZaNbaxP4LYy94w6zTXP qqMA== 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=a9a0tFgRdnfyxDjEIRmXxf2vSHRTw/mM5Fhho5eGCLk=; b=BheX6tRfoGAxyTrrQ9YTeANceyDbwvvm1deEYSLUtwIX6pB3o9U9aq+SDJtghX8i+X EGfhWqkYCLJzjJ7SPdllHFmarZobda9Q17SZJMxYO087xfG1W6uZzh/vPQA2P8Sm2vbK kYPYI8e992q6Jr748NjIHWNK9RyJFJ4K6R/edrrmbUtL9y2lEW6reFfo91RqYxHWbdk3 +mo+SAay4URTxAAPh2fT3tu1VIxeNIDktbHgIAPHfb9/71rUueGhDQwDSwJvigSmWjRp j8OMg+qmtCnufbqRiL/O3xPKHKk2nmWfgO01vPMqF39LLpdL7moxayIWVVkUIcOJDew7 nDmQ== X-Gm-Message-State: APt69E0Hzst8PJPaPh7RgzmwCEpuCYyc3ghO5MyNCZmRPhHReMQBOMC/ AAnva/vSkE7VOk7y3Vdu8W0= X-Google-Smtp-Source: ADUXVKK0QXBIVmq9QMzH4KkEmPdjiTP+1e4citXeNBZlSEigLuRA/Ij7gEJL2yDCPURRzftbV8BY2w== X-Received: by 2002:a37:646:: with SMTP id 67-v6mr22748280qkg.35.1529628296883; Thu, 21 Jun 2018 17:44:56 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:56 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:34 -0300 Message-Id: <20180622004435.10291-6-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [RFC PATCH v2 5/6] tests/acceptance: Add a kludge to not use the default console X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The board already instantiate the proper devices, we don't want to add extra devices but connect the chardev to one of the serial already available. Signed-off-by: Philippe Mathieu-Daudé --- scripts/qemu.py | 6 ++++-- tests/acceptance/boot_linux_console.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/qemu.py b/scripts/qemu.py index f099ce7278..7a975f4538 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -211,8 +211,10 @@ class QEMUMachine(object): self._name + "-console.sock") chardev = ('socket,id=console,path=%s,server,nowait' % self._console_address) - device = '%s,chardev=console' % self._console_device_type - args.extend(['-chardev', chardev, '-device', device]) + args.extend(['-chardev', chardev]) + if len(self._console_device_type): + device = '%s,chardev=console' % self._console_device_type + args.extend(['-device', device]) return args def _pre_launch(self): diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 72cf5e943c..510742c4c7 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -69,9 +69,10 @@ class BootLinuxConsoleMips(Test): kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) self.vm.set_machine('malta') - self.vm.set_console() + self.vm.set_console("") # FIXME this disable isa-serial to use -serial kernel_command_line = 'console=ttyS0 printk.time=0' self.vm.add_args('-m', "64", + '-serial', "chardev:console", # FIXME ... here. '-kernel', kernel_path, '-append', kernel_command_line) self.vm.launch() From patchwork Fri Jun 22 00:44:35 2018 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: 933023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="s1MC9DL4"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Bfz93Lvcz9s2R for ; Fri, 22 Jun 2018 10:47:01 +1000 (AEST) Received: from localhost ([::1]:58164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAE7-0004nJ-2z for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 20:46:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWACD-0003ub-73 for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWACC-0000Gi-3I for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:01 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:36984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWACB-0000GT-VH for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:45:00 -0400 Received: by mail-qk0-x233.google.com with SMTP id j12-v6so2852527qkk.4 for ; Thu, 21 Jun 2018 17:44:59 -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=E4KTZ8x4qWDw0x0sEN1PtoHDlL8X58vAym9HyExF+SA=; b=s1MC9DL4+1PXCkgtevUOBQl5gduuC0dZQsdi+wR+ODfeifvtTQMTnRg4rXj+dCOIKK uynHUspcQk/QaJIGr3+dEhjZtfibUr9OmfPhZ0/zIThS3uG/9E9Ezic7vj3OVDtnLJa+ aVVQbfgv0dw8KWbo382cWn3IFyYqEypuIAYKOv+zDXCEgpVfgY8mNrdo2jLqOUZQ6gSm FvsQFLTQ8G0hHAD3zINLNzfYlNjeFyfnN4Jz0u078RmXxoAmn7iJBpWmCmseiUcdVxXG S7gROllCeXvuhE66brWTxChCd3J48vDmHbsFqGeyY42JbcmFyC+8UOfrwEpU3gTCmMt9 DyDQ== 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=E4KTZ8x4qWDw0x0sEN1PtoHDlL8X58vAym9HyExF+SA=; b=s2jSQtnqvWfr4Ad9NGLK8kPp5isyDFQG/6OGPhafXRR1xRol/oGyY6bM0db8LCrYT/ eg9eFcBNTLlDpGSw82lGbPC8CIUjQ2w7ymfqJDQtwXLmRTcaJiM+SVE6lKqZ2IPuF3WG +7wGWAXaduQ+KrYZfT39nCR83ZsLY4K227qe9GWyLhABSbrsj3zzG0makHQtMqN4bgA1 JM1l7dnjixeVLmZny8EOz6bF8nnTE22bx8ntqUVLSzeqQBfSeZqT+hVL/b3p1FDkMPl4 SjT93wluOW68uqr7Q40fPlTJw9pQJMY6X1/3crKcKchEMKvjd/inys+r76YC84L90945 wV4g== X-Gm-Message-State: APt69E1m/jcseKLFfhUiPZaW10ny7ynfaqn29v9Oy7Vf4QfeQowK6VmE 9l9wkQuISJ66H4Ns4vYbtU4= X-Google-Smtp-Source: ADUXVKKsrYdhaGUznamOH2wnwL9EL1X3EEfQPoJUXNvqclvOWgTeDMkqTGlBKbX5jtAC+Nph32ESbA== X-Received: by 2002:a37:2b01:: with SMTP id r1-v6mr5529183qkh.349.1529628299401; Thu, 21 Jun 2018 17:44:59 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id b14-v6sm3891653qtp.26.2018.06.21.17.44.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:58 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:35 -0300 Message-Id: <20180622004435.10291-7-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622004435.10291-1-f4bug@amsat.org> References: <20180622004435.10291-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::233 Subject: [Qemu-devel] [PATCH v2 6/6] travis: Add Avocado tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- https://travis-ci.org/philmd/qemu/jobs/395266626 ... LINK x86_64-softmmu/qemu-system-x86_64 JOB ID : a3a56af3c02d193e862ce660aae1d9c72926dcb6 JOB LOG : /home/travis/avocado/job-results/job-2018-06-21T23.49-a3a56af/job.log (1/7) tests/acceptance/boot_linux_console.py:BootLinuxConsoleX86_64.test: PASS (3.89 s) (2/7) tests/acceptance/boot_linux_console.py:BootLinuxConsoleMips.test: PASS (1.83 s) (3/7) tests/acceptance/version.py:Version.test_qmp_human_info_version: PASS (0.05 s) (4/7) tests/acceptance/vnc.py:Vnc.test_no_vnc: PASS (0.04 s) (5/7) tests/acceptance/vnc.py:Vnc.test_no_vnc_change_password: PASS (0.04 s) (6/7) tests/acceptance/vnc.py:Vnc.test_vnc_change_password_requires_a_password: PASS (0.05 s) (7/7) tests/acceptance/vnc.py:Vnc.test_vnc_change_password: PASS (0.05 s) RESULTS : PASS 7 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 JOB TIME : 6.21 s Done. Your build exited with 0. Job ran for 5 min 34 sec --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index fabfe9ec34..7b224add2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -153,3 +153,11 @@ matrix: - TEST_CMD="" before_script: - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; } + # Avocado tests + - env: CONFIG="--target-list=x86_64-softmmu,mips-softmmu --enable-trace-backends=nop --disable-tools --disable-docs" + TEST_CMD="avocado run tests/acceptance" + python: + - "3.6" + before_script: + - pip install --user avocado-framework + - ./configure ${CONFIG} || { cat config.log && exit 1; }