From patchwork Mon Mar 12 07:57:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 7224 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 3D16723E01 for ; Mon, 12 Mar 2012 07:57:13 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id DAB29A183EA for ; Mon, 12 Mar 2012 07:57:12 +0000 (UTC) Received: by iage36 with SMTP id e36so8405384iag.11 for ; Mon, 12 Mar 2012 00:57:12 -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=acmSL/YFjVEs/cCbe7OmzcfunRwKL7h+BtRFEC6xNfE=; b=Pl6/sYA4B/WUdeQ6cP+6jeEyLLc1OeKMHy/FpPS27/aZzeN1i140zcC9TgJOie49zK HlF8iGcYgz0TasJvQLcIHzinuCn4cNbmD3KY6okYzVzlPNIhjGXij7rrI/pYeZacOFaz RJ8/eZJ8xi95GaaZQLhYFpeXb9gh118wOCVcudb9SRH78a5FH+psjocR8AGOesRYIHNH 0lmGqGATcvqDYrUINAHexQInhpy0CkdBD5eYkzKg6ZxZgFGq+vTWhbM4Zd5zqRa8GZcI V0AsGiCH2640f2My4FhsUkKNnFwRDDdK8f3ntdfGWpNDSYiAJERQppZBlUbm6Oq8eprJ R6xA== Received: by 10.50.184.228 with SMTP id ex4mr16653137igc.50.1331539032316; Mon, 12 Mar 2012 00:57:12 -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.231.53.18 with SMTP id k18csp34779ibg; Mon, 12 Mar 2012 00:57:11 -0700 (PDT) Received: by 10.180.78.6 with SMTP id x6mr24770380wiw.18.1331539031201; Mon, 12 Mar 2012 00:57:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id j56si16917958wed.45.2012.03.12.00.57.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 00:57:11 -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 1S707y-0000YQ-EA for ; Mon, 12 Mar 2012 07:57:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5BD9FE032C for ; Mon, 12 Mar 2012 07:57:10 +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: 133 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 133: Add e2eaudio test from the multimedia wg Message-Id: <20120312075710.12738.95682.launchpad@ackee.canonical.com> Date: Mon, 12 Mar 2012 07:57:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14933"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 74dc1aa6c9ad0ee6e9fc54f46d8e92d70cc2a297 X-Gm-Message-State: ALoCoQmZiLTPbB6k3Pd0pen8eBzD5fGqpK9YWF8PeoBq1R+ZJORmIUevqG4Y7e729eE17k+8/f6f Merge authors: Paul Larson Related merge proposals: https://code.launchpad.net/~pwlars/lava-test/e2eaudiotest/+merge/94600 proposed by: Paul Larson (pwlars) review: Approve - Spring Zhang (qzhang) ------------------------------------------------------------ revno: 133 [merge] committer: Zygmunt Krynicki branch nick: trunk timestamp: Mon 2012-03-12 08:55:04 +0100 message: Add e2eaudio test from the multimedia wg added: lava_test/test_definitions/e2eaudiotest.py modified: doc/changes.rst 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/changes.rst' --- doc/changes.rst 2012-03-12 07:50:10 +0000 +++ doc/changes.rst 2012-03-12 07:55:04 +0000 @@ -18,6 +18,7 @@ * Add new GLMark2 ES2 test (glmark2-es2) * Add new render-bench test * Add spandex-gles2 test + * Add e2eaudiotest test .. _version_0_4: === modified file 'doc/tests.rst' --- doc/tests.rst 2012-02-07 23:14:44 +0000 +++ doc/tests.rst 2012-02-24 18:39:28 +0000 @@ -8,6 +8,7 @@ * `bluetooth-enablement`_ * `bootchart`_ + * `e2eaudiotest`_ * `firefox`_ * `glmemperf`_ * `gmpbench`_ @@ -36,6 +37,10 @@ +++++++++ .. automodule:: lava_test.test_definitions.bootchart +e2eaudiotest +++++++++++++ +.. automodule:: lava_test.test_definitions.e2eaudiotest + firefox +++++++ .. automodule:: lava_test.test_definitions.firefox === modified file 'lava_test/core/providers.py' --- lava_test/core/providers.py 2012-02-07 23:14:44 +0000 +++ lava_test/core/providers.py 2012-02-24 18:39:28 +0000 @@ -32,6 +32,7 @@ 'bluetooth-enablement', 'bootchart', 'insanity', + 'e2eaudiotest', 'firefox', 'glmemperf', 'gmpbench', === added file 'lava_test/test_definitions/e2eaudiotest.py' --- lava_test/test_definitions/e2eaudiotest.py 1970-01-01 00:00:00 +0000 +++ lava_test/test_definitions/e2eaudiotest.py 2012-02-24 18:39:28 +0000 @@ -0,0 +1,34 @@ +# 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 . + +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 + +""" +This program is a simple test for testing the audio device on a linux host. +The application, testfreq, will test the audio device by playing a sine wave +at A440 and then sampling the input for that frequency - input is coupled to +output with a cable. + +**URL:** http://git.linaro.org/gitweb?p=people/kurt-r-taylor/e2eaudiotest.git;a=tree + +**Default options:** None +""" + +INSTALLSTEPS = ['git clone git://git.linaro.org/people/kurt-r-taylor/e2eaudiotest.git'] +DEPS = ['git-core', 'libasound2-dev', 'libfftw3-dev', 'gcc'] +DEFAULT_OPTIONS = "" +RUNSTEPS = ['cd e2eaudiotest; gcc testfreq.c utils_alsa.c -lasound -lfftw3 -o testfreq ; ./e2eaudiotest.sh'] +PATTERN = "^(?P\w+):\W+(?P\w+)\W+(?P\d+)\W+sinewave" + +e2einst = TestInstaller(INSTALLSTEPS, deps=DEPS) +e2erun = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS) +e2eparser = TestParser(PATTERN, + appendall={'units':'Hz'}) +testobj = Test(test_id="e2eaudiotest", installer=e2einst, + runner=e2erun, parser=e2eparser)