summaryrefslogtreecommitdiff
path: root/openembedded/ltp-realtime.yaml
blob: 7c06a3ab2c49a794cb9659ad44c49b0cc1e106ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
metadata:
    name: ltp-realtime-oe
    format: "Lava-Test-Shell Test Definition 1.0"
    version: 20130503
    description: "Run LTP test_realtime on OpenEmbedded."
    maintainer:
        - anders.roxell@linaro.org
        - mike.holmes@linaro.org
    os:
        - openembedded
    scope:
        - preempt-rt
    devices:
        - arndale

run:
    steps:
        - 'cd /opt/ltp'
        - 'export LTP_REALTIME_TESTS_TO_RUN="func/async_handler func/gtod_latency func/hrtimer-prio func/matrix_mult func/measurement func/periodic_cpu_load func/pi_perf func/prio-preempt func/prio-wake func/pthread_kill_latency func/rt-migrate func/sched_football func/sched_jitter func/sched_latency func/thread_clock"'
        - 'for TEST_TO_RUN in ${LTP_REALTIME_TESTS_TO_RUN} ; do ./testscripts/test_realtime.sh -t $TEST_TO_RUN ; done'
        - 'for FILE in $(find testcases/realtime/logs -type f) ; do mv $FILE $(dirname $FILE)/$(echo $FILE | sed "s:.*2[0-9]*-[0-9]*-[0-9]*-::g"); done;'
        - 'grep -r Result: ./testcases/realtime/logs | sed "s:.*/::g"'

parse:
    pattern: "^(?P<test_case_id>.+).log:Result: (?P<result>.+)"
    fixupdict:
        FAIL: fail
        PASS: pass