diff options
author | Arthur She <arthur.she@linaro.org> | 2014-12-08 22:23:00 -0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-12-09 09:25:28 +0000 |
commit | a754921041e1f325e12b3cb3a279019e2a013a19 (patch) | |
tree | eae613b23ac36b5f1b75a596baae2d1b1ec0d11c /ubuntu | |
parent | ebf996e25f0833bef90471826e7d291e7a289356 (diff) |
Ubuntu: add rt-migrate-test.yaml
Test to verify the RT threads scheduler balancing
Change-Id: Ief2dddd96fbda334b5437b852a970001d390a554
Diffstat (limited to 'ubuntu')
-rw-r--r-- | ubuntu/rt-migrate-test.yaml | 32 | ||||
-rwxr-xr-x | ubuntu/scripts/rt-migrate-test-parser.sh | 12 |
2 files changed, 44 insertions, 0 deletions
diff --git a/ubuntu/rt-migrate-test.yaml b/ubuntu/rt-migrate-test.yaml new file mode 100644 index 0000000..f667e0f --- /dev/null +++ b/ubuntu/rt-migrate-test.yaml @@ -0,0 +1,32 @@ +metadata: + name: rt-migrate-test + format: "Lava-Test-Shell Test Definition 1.0" + description: + "Test to verify the RT threads scheduler balancing" + maintainer: + - arthur.she@linaro.org + os: + - ubuntu + devices: + - arndale + - beaglebone-black + - rtsm_fvp_base-aemv8a + scope: + - performance + - preempt-rt + +install: + deps: + - rt-tests + +params: + LOOPS: 1000 + +run: + steps: + - 'rt-migrate-test -l ${LOOPS} | tee result.log' + - 'lava-test-run-attach result.log' + - './ubuntu/scripts/rt-migrate-test-parser.sh result.log' + +parse: + pattern: '^(?P<test_case_id>[^:]+):\s*(?P<measurement>[0-9.]+)\s+(?P<units>\w+)\s+(?P<result>pass)' diff --git a/ubuntu/scripts/rt-migrate-test-parser.sh b/ubuntu/scripts/rt-migrate-test-parser.sh new file mode 100755 index 0000000..e3c5e33 --- /dev/null +++ b/ubuntu/scripts/rt-migrate-test-parser.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +LOG=$1 + +sed -n -e "/^ Task 0/,$ p" ${LOG} > tmp.log +sed -i -e "s/ (.*//" -e "s/^\s*//" tmp.log + +while read l; +do + [ -n "`echo $l | grep '^Task'`" ] && T="$l" && continue + [ -n "$l" ] && echo "$T $l pass" +done < tmp.log |