diff options
-rw-r--r-- | ubuntu/openssl.yaml | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | ubuntu/scripts/openssl.sh | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ubuntu/openssl.yaml b/ubuntu/openssl.yaml index 5860339..7718bc0 100644 --- a/ubuntu/openssl.yaml +++ b/ubuntu/openssl.yaml @@ -3,7 +3,7 @@ metadata: format: "Lava-Test-Shell Test Definition 1.0" description: "Test case that measures openssl speed benchmark" maintainer: - - Amit Khare <amit.khare@linaro.org> + - amit.khare@linaro.org os: - ubuntu devices: @@ -21,5 +21,6 @@ run: steps: - 'cd ubuntu/scripts' - './openssl.sh' + - lava-test-run-attach openssl-result.txt text/plain parse: pattern: "^(?P<test_case_id>\\S+):\\s+(?P<measurement>\\d+)\\s+(?P<units>\\S+)\\s+(?P<result>.*)" diff --git a/ubuntu/scripts/openssl.sh b/ubuntu/scripts/openssl.sh index 0451355..213ec94 100644..100755 --- a/ubuntu/scripts/openssl.sh +++ b/ubuntu/scripts/openssl.sh @@ -23,8 +23,8 @@ test_func(){ test_cmd=$1 - openssl speed $test_cmd 2>&1|grep "Doing $test_cmd"> /tmp/result.txt - awk '{printf "%s-%s: %d sec pass\n" , $2, $6, $9/3}' /tmp/result.txt + openssl speed $test_cmd 2>&1|grep "Doing $test_cmd"> openssl-result.txt + awk '{printf "%s-%s: %d blocks/sec pass\n" , $2, $6, $9/3}' openssl-result.txt } test_func md5 test_func sha1 |