metadata: name: cyclictest format: "Lava-Test-Shell Test Definition 1.0" version: 1.1 description: "Cyclictest Suite for Linaro OpenEmbedded builds. Cyclictest is a high-resolution test program for measuring the Linux kernel latencies. The MAX, AVG and RTIME is set to 15000, 50 and 7200 respectively by default which can chabged via JSON file." maintainer: - vincent.hsu@linaro.org - ciprian.barbu@linaro.org - anders.roxell@linaro.org os: - openembedded scope: - performance - preempt-rt devices: - arndale - juno # Parameters description # MAX: Maximum latency bound. # AVG: Average latency bound. # RTIME: Running time. Must set this longer than 60. # (changed so default RTIME is two hours - GSR) params: MAX: 15000 AVG: 50 RTIME: 7200 run: steps: - "taskset -c 1 fping -g 127.0.0.1 127.0.0.10 -t 100 -q -l &> /dev/null &" - "taskset -c 1 ./openembedded/scripts/infinite_loop.py $(expr $RTIME - 60) &> /dev/null &" - "taskset -c 1 cyclictest -t 1 -p 80 -i 10000 -n -a1 -v -D $(expr $RTIME / 2) > ~/cyclictest_full.log &" - "taskset -c 1 cyclictest -t 50 -p 80 -i 10000 -n -a1 -q -D $RTIME > ~/cyclictest_summary.log" - "cat ~/cyclictest_summary.log | ./openembedded/scripts/cyclictest.py $MAX $AVG" - "lava-test-run-attach ~/cyclictest_summary.log text/plain" - "tar -cjf ~/cyclictest_full.log.tbz ~/cyclictest_full.log" - "lava-test-run-attach ~/cyclictest_full.log.tbz application/x-bzip2" - "killall calibrator infinite_loop.py fping" parse: pattern: "^test_case_id:(?P.+)\\s+result:(?P\\w+)\\s+measurement:(?P.+)\\s+units:(?P.+)" fixupdict: PASS: pass FAIL: fail SKIP: skip