From patchwork Fri Apr 12 10:45:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 16077 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DDB0826EB0 for ; Fri, 12 Apr 2013 10:45:46 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id q12sf3641090yhf.11 for ; Fri, 12 Apr 2013 03:45:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :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:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=tRswm3m60e2ax76Jq2JcHfKGkA7uwupk0O9MYPgpTTk=; b=mHWWHVcnb/y37fnkYvLbH7WhPPUiBMl/1+zoD0mJHPo9hwkvXSiofX1OCA1uZhgJQ8 z+wUFBKYA2rDljS4mPy2KOFUzCsgkKh8Hd0sKW1aW3Xw9R2TVQtd6ey9XPGbDcsuUDiA ZZa50qe9wrW7ih4R4KD0UOdA4Wi4Hn4jVANQqV5bJPzV+ZUTB8hpMy+10op0kADp+GXF VnO3Pj2skxpujdVevGrmKiRL0CH/riihS6nrrzbd+6HPuBjFZBNzg5PEHSK/N+rO6+zR BkFsCkwnaS1sagenhXtKhgxJF7oxPnItPa8xvUSgi3+M0sCl6IdPKYJ7rOhp+NNNxJpZ vKIA== X-Received: by 10.236.115.170 with SMTP id e30mr5461838yhh.7.1365763523012; Fri, 12 Apr 2013 03:45:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.113 with SMTP id c17ls1323159qen.0.gmail; Fri, 12 Apr 2013 03:45:22 -0700 (PDT) X-Received: by 10.58.15.232 with SMTP id a8mr7999392ved.27.1365763522829; Fri, 12 Apr 2013 03:45:22 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id u19si6144957vcp.48.2013.04.12.03.45.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 03:45:22 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22a; Received: by mail-vb0-f42.google.com with SMTP id p12so2022183vbe.15 for ; Fri, 12 Apr 2013 03:45:22 -0700 (PDT) X-Received: by 10.58.188.48 with SMTP id fx16mr967242vec.22.1365763522627; Fri, 12 Apr 2013 03:45:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp60209veb; Fri, 12 Apr 2013 03:45:22 -0700 (PDT) X-Received: by 10.194.122.199 with SMTP id lu7mr16542044wjb.34.1365763521316; Fri, 12 Apr 2013 03:45:21 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id y4si2887754wja.195.2013.04.12.03.45.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 03:45:21 -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; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UQbTs-00058W-OC for ; Fri, 12 Apr 2013 10:45:20 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id A71E4E000F for ; Fri, 12 Apr 2013 10:45:20 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 579 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 579: Add documentation for the new test definition metadata. Message-Id: <20130412104520.8865.84988.launchpad@ackee.canonical.com> Date: Fri, 12 Apr 2013 10:45:20 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16564"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 5fb2e65c40a2e1ff6430e73ccf325c2a45004d3b X-Gm-Message-State: ALoCoQlsJkR5UisoiVywszat5EzUPU5c9XlffBMBCrcZD0QFHDHpXIfCE+ZxliEyMMPgBr+wUqD9 X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ------------------------------------------------------------ revno: 579 committer: Senthil Kumaran branch nick: trunk timestamp: Fri 2013-04-12 16:13:56 +0530 message: Add documentation for the new test definition metadata. modified: doc/lava_test_shell.rst --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'doc/lava_test_shell.rst' --- doc/lava_test_shell.rst 2012-12-11 19:49:25 +0000 +++ doc/lava_test_shell.rst 2013-04-12 10:43:56 +0000 @@ -11,8 +11,17 @@ A minimal test definition looks like this:: metadata: - format: Lava-Test Test Definition 1.0 - name: passfail + name: passfail + format: "Lava-Test-Shell Test Definition 1.0" + description: "A simple passfail test for demo." + os: + - ubuntu + - openembedded + devices: + - origen + - panda + environment: + - lava-test-shell run: steps: @@ -22,9 +31,36 @@ parse: pattern: "(?P.*-*):\\s+(?P(pass|fail))" -Note that the parse pattern has similar quoting rules as Python, so +**NOTE:** The parse pattern has similar quoting rules as Python, so \\s must be escaped as \\\\s and similar. +However, the parameters such as os, devices, environment are optional in +the metadata section. On the other hand parameters such as name, format, +description are mandatory in the metadata section. + +If your test definition is not part of a bzr or git repository then it +is mandatory to have a 'version' parameter in metadata section. The +following example shows how a test definition metadata section will +look like for a test definition which is not part of bzr or git +repository:: + + metadata: + name: passfail + format: "Lava-Test-Shell Test Definition 1.0" + version: "1.0" + description: "A simple passfail test for demo." + os: + - ubuntu + - openembedded + devices: + - origen + - panda + environment: + - lava-test-shell + +**NOTE:** Only if the test definition is referred from a URL the +version parameter should be explicit. + A lava-test-shell is run by: * "compiling" the above test defintion into a shell script