From patchwork Thu Sep 20 05:51:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 11523 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D085024112 for ; Thu, 20 Sep 2012 05:51:17 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 67E65A191E0 for ; Thu, 20 Sep 2012 05:51:15 +0000 (UTC) Received: by ieje10 with SMTP id e10so2338560iej.11 for ; Wed, 19 Sep 2012 22:51:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=zLdZFiBr+dae3qMElJ6ujHWDPQJynzKkc/b7wlo0bIs=; b=fGXlTLGgi9VDFiGDpUqLZuCwhSyf/RXAfjHG0lcIA7Auy+yl6df9qjVe0or24eXx/w 08/mmrGCE8uP4LfWxwhRJncuzhink/6g0QlWl5tq2NjKYdIYqVTMtiQTd3Yty4ZLrGg2 sKUiwyEZj7sThohhBNEXPPVZM4aWUYQwX/M2mvJbftDzWEEdMj/oBUZjgJos/bgVNGeT xBGXu5dlDEOAUiXhnFBgFUZL5yOW1CVKhey6eILlR0Z2OkqlV7l6DUPdJ8UjTApBZ0RP +h88sXzerTEJ4nii/pHWO8n79g7EjLQH7MdhaDcD6yBMBk+eZlN2KRxwjTac38fpiMTq 8E7g== Received: by 10.50.154.227 with SMTP id vr3mr1085361igb.43.1348120274755; Wed, 19 Sep 2012 22:51:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp59353igc; Wed, 19 Sep 2012 22:51:14 -0700 (PDT) Received: by 10.180.102.164 with SMTP id fp4mr3426094wib.13.1348120273348; Wed, 19 Sep 2012 22:51:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id t33si6335318wen.9.2012.09.19.22.51.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Sep 2012 22:51:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TEZfM-0000UF-N5 for ; Thu, 20 Sep 2012 05:51:12 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 968F4E22AC for ; Thu, 20 Sep 2012 05:51:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 175 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 175: Add device-tree test definition Message-Id: <20120920055112.7976.46278.launchpad@ackee.canonical.com> Date: Thu, 20 Sep 2012 05:51:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15985"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: a9a5f871535ecb7e85feaf85b6bd91db04173e8f X-Gm-Message-State: ALoCoQmGj6kNU/AQK+pXxvkpakMzR+7Z85TP/2P9VBREYUtylAGipEKc2JLdu/GVH6PmcsdwwNfW Merge authors: Ricardo Salveti (rsalveti) Related merge proposals: https://code.launchpad.net/~rsalveti/lava-test/adding-device-tree-test-definition/+merge/125382 proposed by: Ricardo Salveti (rsalveti) review: Approve - Fathi Boudra (fboudra) ------------------------------------------------------------ revno: 175 [merge] committer: Fathi Boudra branch nick: lava-test timestamp: Thu 2012-09-20 08:50:09 +0300 message: Add device-tree test definition added: lava_test/test_definitions/device_tree.py modified: doc/tests.rst lava_test/core/providers.py --- lp:lava-test https://code.launchpad.net/~linaro-validation/lava-test/trunk You are subscribed to branch lp:lava-test. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription === modified file 'doc/tests.rst' --- doc/tests.rst 2012-09-05 08:51:51 +0000 +++ doc/tests.rst 2012-09-20 00:33:35 +0000 @@ -8,6 +8,7 @@ * `bluetooth-enablement`_ * `bootchart`_ + * `device-tree`_ * `e2eaudiotest`_ * `firefox`_ * `gatortests`_ @@ -40,6 +41,10 @@ +++++++++ .. automodule:: lava_test.test_definitions.bootchart +device-tree ++++++++++++ +.. automodule:: lava_test.test_definitions.device_tree + e2eaudiotest ++++++++++++ .. automodule:: lava_test.test_definitions.e2eaudiotest === modified file 'lava_test/core/providers.py' --- lava_test/core/providers.py 2012-09-05 08:51:51 +0000 +++ lava_test/core/providers.py 2012-09-20 00:33:35 +0000 @@ -29,6 +29,7 @@ _builtin_tests = [ 'bluetooth_enablement', 'bootchart', + 'device_tree', 'insanity', 'e2eaudiotest', 'firefox', === added file 'lava_test/test_definitions/device_tree.py' --- lava_test/test_definitions/device_tree.py 1970-01-01 00:00:00 +0000 +++ lava_test/test_definitions/device_tree.py 2012-09-20 00:33:35 +0000 @@ -0,0 +1,52 @@ +# Copyright (c) 2012 Linaro +# +# Author: Ricardo Salveti +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +""" +The Device Tree test cases helps validating basic device tree support. + +**URL:** https://code.launchpad.net/~linaro-foundations/linaro-ubuntu/lava-test-device-tree + +**Default Options:** None +""" + +from lava_test.core.installers import TestInstaller +from lava_test.core.parsers import TestParser +from lava_test.core.runners import TestRunner +from lava_test.core.tests import Test + +DEFAULT_OPTIONS = "" +INSTALLSTEPS = [( + "bzr branch" + " lp:~linaro-foundations/linaro-ubuntu/lava-test-device-tree" + " device-tree")] +DEPS = ["bzr"] +RUNSTEPS = ["cd device-tree; sudo bash -x ./run-test.sh"] +PATTERN = "(?P[a-zA-Z0-9_-]+):\s(?P\w+)" +FIXUPS = { + "PASS": "pass", + "FAIL": "fail" +} + +installer = TestInstaller(INSTALLSTEPS, deps=DEPS) +runner = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS) +parser = TestParser(PATTERN, fixupdict=FIXUPS) + +testobj = Test( + test_id="device-tree", + installer=installer, + runner=runner, + parser=parser)