From afc64fd6f7880616d1171c3ec519fa6e78b19231 Mon Sep 17 00:00:00 2001 From: Naresh Kamboju Date: Fri, 18 Oct 2019 15:50:35 +0530 Subject: [PATCH] ssuite: Fix results parser Adding ssuite-testcase-name- pass measurements units in sec Signed-off-by: Naresh Kamboju --- automated/linux/ssuite/run-bench.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/automated/linux/ssuite/run-bench.sh b/automated/linux/ssuite/run-bench.sh index 99093bef4..3eb83739a 100755 --- a/automated/linux/ssuite/run-bench.sh +++ b/automated/linux/ssuite/run-bench.sh @@ -1,5 +1,6 @@ #!/bin/bash +# shellcheck disable=SC1091 . ../../lib/sh-test-lib OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" @@ -184,8 +185,13 @@ run_test() { # throughput---- fail # # -startup---- pass sec - #-startup---- fail - mv "${OUTPUT}/result_list.txt" "${RESULT_FILE}" + # -startup---- fail + + # test-case-name- pass value sec + awk '{ print $1 "-max"" " $2 " " $3 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}" + awk '{ print $1 "-min"" " $2 " " $4 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}" + awk '{ print $1 "-avg"" " $2 " " $5 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}" + awk '{ print $1 "-std"" " $2 " " $6 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}" } ! check_root && error_msg "This script must be run as root"