From patchwork Fri Sep 2 02:54:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 3849 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 E4EC623F36 for ; Fri, 2 Sep 2011 02:54:16 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id C1DE4A186A0 for ; Fri, 2 Sep 2011 02:54:16 +0000 (UTC) Received: by fxd18 with SMTP id 18so1907951fxd.11 for ; Thu, 01 Sep 2011 19:54:16 -0700 (PDT) Received: by 10.223.24.21 with SMTP id t21mr905767fab.24.1314932055023; Thu, 01 Sep 2011 19:54:15 -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.152.11.8 with SMTP id m8cs72626lab; Thu, 1 Sep 2011 19:54:14 -0700 (PDT) Received: by 10.227.121.69 with SMTP id g5mr490595wbr.71.1314932054102; Thu, 01 Sep 2011 19:54:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id em13si829075wbb.75.2011.09.01.19.54.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Sep 2011 19:54:14 -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 1QzJtU-00053f-RW for ; Fri, 02 Sep 2011 02:54:12 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C0164E0419 for ; Fri, 2 Sep 2011 02:54: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: 91 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 91: Add pwrmgmt changes for the updated tests from dlezcano Message-Id: <20110902025412.26433.9943.launchpad@ackee.canonical.com> Date: Fri, 02 Sep 2011 02:54: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="13830"; Instance="initZopeless config overlay" X-Launchpad-Hash: d9dd41f2f159e040e74ab4fa2b72fe4319ba4ea0 ------------------------------------------------------------ revno: 91 committer: Paul Larson branch nick: lava-test-pmqa timestamp: Mon 2011-08-29 10:34:03 -0500 message: Add pwrmgmt changes for the updated tests from dlezcano modified: abrek/test_definitions/pwrmgmt.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 'abrek/test_definitions/pwrmgmt.py' --- abrek/test_definitions/pwrmgmt.py 2011-03-10 17:18:26 +0000 +++ abrek/test_definitions/pwrmgmt.py 2011-08-29 15:34:03 +0000 @@ -16,21 +16,30 @@ import abrek.testdef -INSTALLSTEPS = ['git clone git://git.linaro.org/people/torez/pm-qa.git', +INSTALLSTEPS = ['git clone git://git.linaro.org/tools/pm-qa.git', 'cd pm-qa && make clean && make all'] -RUNSTEPS = ['cd pm-qa && awk -f testcases.awk run_template'] -DEPS = ['git-core', 'make', 'alsa-utils', 'pulseaudio-utils', 'lame', 'festival', 'wget'] +RUNSTEPS = ['cd pm-qa && make check'] +DEPS = ['git-core', 'make'] pwrmgmtinst = abrek.testdef.AbrekTestInstaller(INSTALLSTEPS, deps=DEPS) pwrmgmtrun = abrek.testdef.AbrekTestRunner(RUNSTEPS) -# test case name is between "pm-qa-" and ":" and results and/or -# measurements are rest of the line -PATTERN = "^pm-qa-(?P\w+):\s+(?P.*)" - - -pwrmgmtparser = abrek.testdef.AbrekTestParser(PATTERN, - appendall={'result':'pass'}) +# test case name is before ":" , the test log is between ":" and "...", the result is after "..." +# Each test case is separated with a test description beginning with "#" + +# Example: +#### +#### cpufreq_02: +#### test the cpufreq framework is available for governor +#### +#cpufreq_02.0/cpu0: checking scaling_available_governors exists... pass +#cpufreq_02.1/cpu0: checking scaling_governor exists... pass +#cpufreq_02.0/cpu1: checking scaling_available_governors exists... pass +#cpufreq_02.1/cpu1: checking scaling_governor exists... pass + +PATTERN = "^(?P[\w/\.]+):\s+(?P.+)\.\.\.\s+(?P\w+)" + +pwrmgmtparser = abrek.testdef.AbrekTestParser(PATTERN) testobj = abrek.testdef.AbrekTest(testname="pwrmgmt", installer=pwrmgmtinst, runner=pwrmgmtrun, parser=pwrmgmtparser)