diff mbox

[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
State Accepted
Headers show

Commit Message

Senthil Kumaran April 12, 2013, 10:45 a.m. UTC
------------------------------------------------------------
revno: 579
committer: Senthil Kumaran <stylesen@harshu.stylesen.org>
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
diff mbox

Patch

=== 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<test_case_id>.*-*):\\s+(?P<result>(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