From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628445779501.0660603152511; Thu, 21 Jun 2018 17:47:25 -0700 (PDT) Received: from localhost ([::1]:58165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAER-00054z-P1 for importer@patchew.org; Thu, 21 Jun 2018 20:47:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAC1-0003mR-CY for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWABy-0000Dc-Qb for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:49 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:36555) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWABy-0000DU-Ki for qemu-devel@nongnu.org; Thu, 21 Jun 2018 20:44:46 -0400 Received: by mail-qk0-x243.google.com with SMTP id a195-v6so2856719qkg.3 for ; Thu, 21 Jun 2018 17:44:46 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:44:45 -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=GFG/Hx66WsJ3IG9o67IU+jU3A/U51YN04exXJDQzsGU=; b=dIXFIYx4/zOe/PBYsypVAcRHcsckyJ2Pdbv70HCKrPwzh9U1ft5fcXEUIwzkpmC79z MgdhLzo6gT/xrgmkJwlyXcVbPTAtJzsyCYCOJipjBSLGUrqVRX2qBYNpHg4eV1ADWzsH 5FwLhN1cEclXLMAvNeP9arddzZ8WwDJpOWaSh/ih7LfHDIaJX/2oVM7gEB2CGYzHcRSR 8pmd/Gn3r0++52Pk+KB7fY2x4wM7vIiXtXG7hUIKNkO9xsUL1wr8Zljzn5ooXsFTEIVG EeywuL+mFk18lHiJkawOY/XUAPN3260Cx2eRgOL0zp6SFgTDWmIdp6DwCZ++dNEnhLga 60nw== 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=GFG/Hx66WsJ3IG9o67IU+jU3A/U51YN04exXJDQzsGU=; b=iyoR56MD4/8PlXKebh2Ef3/WarXC4phIeBUFHXhqSsdPHKGTUz1fUK/qzOx1a51//X NQHJnnECTfwBhCEIA1ir1XcPkrYp1TXcvbx40hVKkV1KjgMcKRR5uM0cdTUIs19O54gC W3VyYZxetins5OhRDUaKujHtDrNPHeDonIRkTJ7arhKvdE1c5noGiVmN+KoBtSCXvZch /frehRech56xTBNR0Ur4OcnaqiMD3C+Z+2e17R3eFGqXOcGHEEuu9btRNLSQMGPV65TP KgsgdCYz/C24yplihTJRXIhWBcbS3dQcgDN/y7sg4y1ZcCpEX2buQqOHGKp+49/BhdMX Bbuw== X-Gm-Message-State: APt69E04x/2IoMrBVf55DKGwlPmaPsNBzRBWHqtvf6Pk4NlE4cx1wSu7 akHQdLgT5vVIsxD1+rSxt+E= X-Google-Smtp-Source: ADUXVKL+VvVMnSSdUCZyQGf3fNsHFsZghvuthh2kG5dzZR5rtNIRel8EuwjdPmtgGqi0LyENZE06Ig== X-Received: by 2002:a37:66c5:: with SMTP id a188-v6mr23741989qkc.201.1529628286084; Thu, 21 Jun 2018 17:44:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , Eduardo Habkost Date: Thu, 21 Jun 2018 21:44:30 -0300 Message-Id: <20180622004435.10291-2-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 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: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [RFC PATCH v2 1/6] avocado: Add a Test.arch property 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Tests can change this property to run tests in other architectures than the host one. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/avocado_qemu/__init__.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index 1e54fd5932..6e9601f5e9 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -13,6 +13,7 @@ import sys =20 import avocado =20 +HOST_ARCH =3D os.uname()[4] SRC_ROOT_DIR =3D os.path.dirname(os.path.dirname(os.path.dirname(__file__)= )) SRC_ROOT_DIR =3D os.path.abspath(os.path.dirname(SRC_ROOT_DIR)) sys.path.append(os.path.join(SRC_ROOT_DIR, 'scripts')) @@ -23,12 +24,11 @@ def is_readable_executable_file(path): return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK) =20 =20 -def pick_default_qemu_bin(): +def pick_default_qemu_bin(arch): """ Picks the path of a QEMU binary, starting either in the current working directory or in the source tree root directory. """ - arch =3D os.uname()[4] qemu_bin_relative_path =3D os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path): @@ -41,10 +41,19 @@ def pick_default_qemu_bin(): =20 =20 class Test(avocado.Test): + _arch =3D HOST_ARCH + + @property + def arch(self): + """ + Returns the architecture required to run the current test + """ + return self._arch + def setUp(self): self.vm =3D None - self.qemu_bin =3D self.params.get('qemu_bin', - default=3Dpick_default_qemu_bin()) + qemu_bin =3D pick_default_qemu_bin(self.arch) + self.qemu_bin =3D self.params.get('qemu_bin', default=3Dqemu_bin) if self.qemu_bin is None: self.cancel("No QEMU binary defined or found in the source tre= e") self.vm =3D QEMUMachine(self.qemu_bin) --=20 2.18.0.rc2 From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 15296284431661003.6545412726873; Thu, 21 Jun 2018 17:47:23 -0700 (PDT) Received: from localhost ([::1]:58167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAEU-00058T-F3 for importer@patchew.org; Thu, 21 Jun 2018 20:47:22 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=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 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: 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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 =20 =20 -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 --=20 2.18.0.rc2 From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628614507714.5448752441057; Thu, 21 Jun 2018 17:50:14 -0700 (PDT) Received: from localhost ([::1]:58185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAHF-0007M7-TX for importer@patchew.org; Thu, 21 Jun 2018 20:50:13 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=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 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: 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9 --- 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 =20 :avocado: enable - :avocado: tags=3Dx86_64 + :avocado: tags=3Dendian:little + :avocado: tags=3Darch:x86_64 """ =20 timeout =3D 60 --=20 2.18.0.rc2 From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628701231689.3813560831186; Thu, 21 Jun 2018 17:51:41 -0700 (PDT) Received: from localhost ([::1]:58196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAIe-0008N6-IX for importer@patchew.org; Thu, 21 Jun 2018 20:51:40 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=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 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: 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=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9 --- 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=3Dendian:big + :avocado: tags=3Darch:mips + :avocado: tags=3Dboard:malta + """ + + arch =3D "mips" + timeout =3D 60 + + def test(self): + kernel_url =3D ('http://people.debian.org/~aurel32/qemu/mips/' + 'vmlinux-3.2.0-4-4kc-malta') + kernel_hash =3D '592e384a4edc16dade52a6cd5c785c637bcbc9ad' + kernel_path =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) + + self.vm.set_machine('malta') + self.vm.set_console() + kernel_command_line =3D 'console=3DttyS0 printk.time=3D0' + self.vm.add_args('-m', "64", + '-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console =3D self.vm.console_socket.makefile() + console_logger =3D logging.getLogger('console') + while True: + msg =3D 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") --=20 2.18.0.rc2 From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628613983839.1520933152935; Thu, 21 Jun 2018 17:50:13 -0700 (PDT) Received: from localhost ([::1]:58184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAHF-0007Lg-8R for importer@patchew.org; Thu, 21 Jun 2018 20:50:13 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=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 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: 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9 --- 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.so= ck") chardev =3D ('socket,id=3Dconsole,path=3D%s,server,nowait' % self._console_address) - device =3D '%s,chardev=3Dconsole' % self._console_device_type - args.extend(['-chardev', chardev, '-device', device]) + args.extend(['-chardev', chardev]) + if len(self._console_device_type): + device =3D '%s,chardev=3Dconsole' % self._console_device_t= ype + args.extend(['-device', device]) return args =20 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 =3D self.fetch_asset(kernel_url, asset_hash=3Dkernel_h= ash) =20 self.vm.set_machine('malta') - self.vm.set_console() + self.vm.set_console("") # FIXME this disable isa-serial to use -se= rial kernel_command_line =3D 'console=3DttyS0 printk.time=3D0' self.vm.add_args('-m', "64", + '-serial', "chardev:console", # FIXME ... here. '-kernel', kernel_path, '-append', kernel_command_line) self.vm.launch() --=20 2.18.0.rc2 From nobody Sun Apr 28 15:28:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529628514910897.8957128149799; Thu, 21 Jun 2018 17:48:34 -0700 (PDT) Received: from localhost ([::1]:58169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWAFe-00063v-85 for importer@patchew.org; Thu, 21 Jun 2018 20:48:34 -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) 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) 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=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 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: 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=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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: P= ASS (1.83 s) (3/7) tests/acceptance/version.py:Version.test_qmp_human_info_version: PA= SS (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_pass= word: 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 | CA= NCEL 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=3D"" before_script: - ./configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -fsanitize=3Dthr= ead -fuse-ld=3Dgold" || { cat config.log && exit 1; } + # Avocado tests + - env: CONFIG=3D"--target-list=3Dx86_64-softmmu,mips-softmmu --enable-= trace-backends=3Dnop --disable-tools --disable-docs" + TEST_CMD=3D"avocado run tests/acceptance" + python: + - "3.6" + before_script: + - pip install --user avocado-framework + - ./configure ${CONFIG} || { cat config.log && exit 1; } --=20 2.18.0.rc2