Skip to content

Commit afc64fd

Browse files
Naresh Kambojumwasilew
Naresh Kamboju
authored and
mwasilew
committed
ssuite: Fix results parser
Adding ssuite-testcase-name-<max/min/avg/std> pass measurements units in sec Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
1 parent b1e6151 commit afc64fd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

automated/linux/ssuite/run-bench.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
# shellcheck disable=SC1091
34
. ../../lib/sh-test-lib
45
OUTPUT="$(pwd)/output"
56
RESULT_FILE="${OUTPUT}/result.txt"
@@ -184,8 +185,13 @@ run_test() {
184185
# throughput--<workload1_name>--<scheduler1_name> fail
185186
#
186187
# <app_name>-startup--<workload_name>--<scheduler1_name> pass <real number> sec
187-
#<app_name>-startup--<workload_name>--<scheduler1_name> fail
188-
mv "${OUTPUT}/result_list.txt" "${RESULT_FILE}"
188+
# <app_name>-startup--<workload_name>--<scheduler1_name> fail
189+
190+
# test-case-name-<max/min/avg/std> pass value sec
191+
awk '{ print $1 "-max"" " $2 " " $3 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}"
192+
awk '{ print $1 "-min"" " $2 " " $4 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}"
193+
awk '{ print $1 "-avg"" " $2 " " $5 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}"
194+
awk '{ print $1 "-std"" " $2 " " $6 " " $7 }' "${OUTPUT}"/result_list.txt 2>&1 | tee -a "${RESULT_FILE}"
189195
}
190196

191197
! check_root && error_msg "This script must be run as root"

0 commit comments

Comments
 (0)