Hi,

I did code changes to support yaml based testdefs. I shall show you the demo tomorrow of what I have and we can discuss the yaml structure in more detail and get more stuff in.

My sample testdef looks like the following (testdef.yaml):

<snip1>
metadata:
    name: simple
    version: 1.0
    format: lava-test v1.0

environment:
    image-type: [beagle]

install:
    url:
    steps:

run:
    steps:
        - /bin/echo cache-coherency-switching - PASS
        - ls
        - pwd

parse:
    pattern: (?P<test_case_id>.*-*)\\s+:\\s+(?P<result>(PASS|FAIL))
    fixupdict:
        PASS: pass
        FAIL: fail
</snip1>


Following is a snipe from sample run:

<snip2>
cache-coherency-switching - PASS
install.sh
run.sh
testdef.yaml
/lava/tests/0_simple
<LAVA_TEST_RUNNER>: 0_simple exited with: 0
0_simple-1351674922  build.txt  cpuinfo.txt  meminfo.txt  pkgs.txt
<LAVA_TEST_RUNNER>: exiting<LAVA_DISPATCHER>2012-10-31 02:44:54 PM INFO: lava_test_shell seems to have completed <LAVA_DISPATCHER>2012-10-31 02:44:54 PM INFO: attempting a filesystem sync before power_off

linaro-test [rc=0]# sync
sync
linaro-test [rc=0]# <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: [ACTION-E] lava_test_shell is finished successfully. <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: Submitting the test result with parameters = {u'stream': u'/anonymous/stylesen/', u'server': u'http://10.155.13.219/RPC2/'} dashboard-put-result: http://10.155.13.219/dashboard/permalink/bundle/9fdccd73c7e825c2eec7850e61df60f6f4f91a11/ <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: Dashboard : http://10.155.13.219/dashboard/permalink/bundle/9fdccd73c7e825c2eec7850e61df60f6f4f91a11/
</snip2>

Thank You.
--
Senthil Kumaran S
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

_______________________________________________
linaro-validation mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to