From patchwork Wed Aug 3 16:25:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 3249 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 600C723F41 for ; Wed, 3 Aug 2011 16:25:47 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 13862A18282 for ; Wed, 3 Aug 2011 16:25:46 +0000 (UTC) Received: by qyk30 with SMTP id 30so775613qyk.11 for ; Wed, 03 Aug 2011 09:25:46 -0700 (PDT) Received: by 10.229.44.195 with SMTP id b3mr3026708qcf.7.1312388746422; Wed, 03 Aug 2011 09:25:46 -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.229.6.73 with SMTP id 9cs162391qcy; Wed, 3 Aug 2011 09:25:45 -0700 (PDT) Received: by 10.227.24.76 with SMTP id u12mr8489902wbb.110.1312388744903; Wed, 03 Aug 2011 09:25:44 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id fu20si1976167wbb.7.2011.08.03.09.25.44; Wed, 03 Aug 2011 09:25:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QoeGO-0008U5-1B for ; Wed, 03 Aug 2011 16:25:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 0206B2EB325 for ; Wed, 3 Aug 2011 16:25:44 +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: 83 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 83: Add smem and bootchart tests Message-Id: <20110803162543.31317.38616.launchpad@loganberry.canonical.com> Date: Wed, 03 Aug 2011 16:25:43 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13573"; Instance="initZopeless config overlay" X-Launchpad-Hash: 8ee715c1072b686e5afdb1717cc2b6afa1b2378a Merge authors: Avik Sil (aviksil) Related merge proposals: https://code.launchpad.net/~aviksil/lava-test/new-test-definitions/+merge/69044 proposed by: Avik Sil (aviksil) review: Approve - Paul Larson (pwlars) ------------------------------------------------------------ revno: 83 [merge] committer: Paul Larson branch nick: lava-test timestamp: Wed 2011-08-03 17:23:05 +0100 message: Add smem and bootchart tests added: abrek/test_definitions/bootchart.py abrek/test_definitions/smem.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 === added file 'abrek/test_definitions/bootchart.py' --- abrek/test_definitions/bootchart.py 1970-01-01 00:00:00 +0000 +++ abrek/test_definitions/bootchart.py 2011-08-03 16:23:05 +0000 @@ -0,0 +1,28 @@ +# Copyright (c) 2011 Linaro +# +# 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 . + +import abrek.testdef + +INSTALLSTEPS = ['bzr branch lp:~linaro-foundations/lava-test/bootchartscript'] +DEPS = ['bootchart', 'pybootchartgui', 'bzr'] +RUNSTEPS = ['./bootchartscript/bootchartscript.sh'] +PATTERN = "^(?P\w+):\W+(?P\d+\.\d+)" + +bootchartinst = abrek.testdef.AbrekTestInstaller(INSTALLSTEPS, deps=DEPS) +bootchartrun = abrek.testdef.AbrekTestRunner(RUNSTEPS) +bootchartparser = abrek.testdef.AbrekTestParser(PATTERN, + appendall={'units':'sec', 'result':'pass'}) +testobj = abrek.testdef.AbrekTest(testname="bootchart", installer=bootchartinst, + runner=bootchartrun, parser=bootchartparser) === added file 'abrek/test_definitions/smem.py' --- abrek/test_definitions/smem.py 1970-01-01 00:00:00 +0000 +++ abrek/test_definitions/smem.py 2011-08-03 16:23:05 +0000 @@ -0,0 +1,27 @@ +# Copyright (c) 2011 Linaro +# +# 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 . + +import abrek.testdef + +RUNSTEPS = ['smem -w | tail -n 3'] +PATTERN = "^(?P(\w+\s)+)\s\s+(?P\d+)" +DEPS = ['smem'] + +smeminst = abrek.testdef.AbrekTestInstaller(deps=DEPS) +smemrun = abrek.testdef.AbrekTestRunner(RUNSTEPS) +smemparser = abrek.testdef.AbrekTestParser(PATTERN, + appendall={'units':'KB', 'result':'pass'}) +testobj = abrek.testdef.AbrekTest(testname="smem", installer=smeminst, + runner=smemrun, parser=smemparser)