diff options
author | Arthur She <arthur.she@linaro.org> | 2014-11-25 20:31:30 -0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-12-02 08:50:46 +0000 |
commit | b7ba0a2e455bd5c233b6c2205ed5ec0c7b9d4136 (patch) | |
tree | 7ed01f5fc6e3e1fb97c9838cc15000ca86f8fc19 | |
parent | 9509d817c11e51ea01140ecce105cb573cadd58b (diff) |
Ubuntu: add sendme test definition
Send a signal from driver to user and measure time intervals.
Change-Id: Id58281786d436d770fe1ebc5cef4ce03346af1fc
-rwxr-xr-x | ubuntu/scripts/sendme-parser.sh | 18 | ||||
-rw-r--r-- | ubuntu/sendme.yaml | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/ubuntu/scripts/sendme-parser.sh b/ubuntu/scripts/sendme-parser.sh new file mode 100755 index 0000000..1d98a0e --- /dev/null +++ b/ubuntu/scripts/sendme-parser.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +log=$1 +tail -n 2 ${log} | while read l; +do + TC="`echo ${l} | awk -F: '{print $1}'`" + R="`echo ${l} | awk -F: '{print $2}'`" + IFS=',' + for c in ${R} + do + c=`echo $c|sed "s/^[ ]*//"` + t="`echo $c|awk '{print $1}'`" + v="`echo $c|awk '{print $2}'`" + echo "${TC}_${t}: ${v} usec pass" + done + unset IFS +done + diff --git a/ubuntu/sendme.yaml b/ubuntu/sendme.yaml new file mode 100644 index 0000000..3631d33 --- /dev/null +++ b/ubuntu/sendme.yaml @@ -0,0 +1,34 @@ +metadata: + name: sendme + format: "Lava-Test-Shell Test Definition 1.0" + description: + "Send a signal from driver to user and measure time intervals" + maintainer: + - arthur.she@linaro.org + os: + - ubuntu + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - performance + - preempt-rt + +install: + deps: + - backfire-dkms + - rt-tests + +params: + LOOPS: 1000 + +run: + steps: + - 'lava-test-case insert-backfire-module --shell modprobe backfire' + - 'sendme -l ${LOOPS} | tee result.log' + - 'lava-test-run-attach result.log' + - './ubuntu/scripts/sendme-parser.sh result.log' + +parse: + pattern: '^(?P<test_case_id>[^:]+):\s*(?P<measurement>[0-9.]+)\s+(?P<units>\w+)\s+(?P<result>pass)' |