diff options
author | Arthur She <arthur.she@linaro.org> | 2015-05-01 14:52:42 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2015-05-03 22:36:48 -0700 |
commit | bceaacbd0cdf925f7072cd225d589bfb7e636dde (patch) | |
tree | e31a724675f109f2b3270fdd6ce735255258bc6a | |
parent | b9a1b65e584367a2ef0663a20c2b9a69e16dc0f6 (diff) |
Add iozoneiozone
new file: iozone.yaml
new file: scripts/iozone.py
-rw-r--r-- | ubuntu/iozone.yaml | 33 | ||||
-rwxr-xr-x | ubuntu/scripts/iozone.py | 13 |
2 files changed, 46 insertions, 0 deletions
diff --git a/ubuntu/iozone.yaml b/ubuntu/iozone.yaml new file mode 100644 index 0000000..7b293b0 --- /dev/null +++ b/ubuntu/iozone.yaml @@ -0,0 +1,33 @@ +metadata: + name: iozone + format: "Lava-Test-Shell Test Definition 1.0" + description: "IOzone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations." + maintainer: + - arthur.she@linaro.org + os: + - ubuntu + devices: + - panda + - panda-es + - arndale + - vexpress-a9 + - vexpress-tc2 + scope: + - performance + +install: + deps: + - iozone3 + +params: + OPTIONS: -az -i0 -i1 -s 20m -y 128k -q 4m -I -e + +run: + steps: + - 'iozone $OPTIONS -f iozone.tmp | tee result.log' + - 'log_file_size=`du -b result.log|cut -f1`' + - 'lava-test-case iozone --shell test ${log_file_size} -gt 0' + - 'lava-test-case-attach iozone result.log' + - 'sed -n "/^ *[0-9]/p" result.log | ubuntu/scripts/iozone.py' +parse: + pattern: "^(?P<test_case_id>[a-zA-Z0-9-]+):\\s(?P<measurement>\\d+)\\s(?P<result>pass)" diff --git a/ubuntu/scripts/iozone.py b/ubuntu/scripts/iozone.py new file mode 100755 index 0000000..8a1fe3a --- /dev/null +++ b/ubuntu/scripts/iozone.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +import sys + +item = ['kB', 'reclen', 'write', 'rewrite', 'read', 'reread', + 'random read', 'random write', 'bkwd read', 'record rewrite', + 'stride read', 'fwrite', 'frewrite', 'fread', 'freread'] + +data = sys.stdin.readlines() +for r in data: + a = r.split() + for i in a[2:]: + print "%s-%s-kB-%s-reclen: %s pass" % (item[a.index(i)], a[0], a[1], i) |