Commit afc64fd 1 parent b1e6151 commit afc64fd Copy full SHA for afc64fd
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # shellcheck disable=SC1091
3
4
. ../../lib/sh-test-lib
4
5
OUTPUT=" $( pwd) /output"
5
6
RESULT_FILE=" ${OUTPUT} /result.txt"
@@ -184,8 +185,13 @@ run_test() {
184
185
# throughput--<workload1_name>--<scheduler1_name> fail
185
186
#
186
187
# <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} "
189
195
}
190
196
191
197
! check_root && error_msg " This script must be run as root"
You can’t perform that action at this time.
0 commit comments