@@ -89,9 +89,9 @@ summary_file="passmark.summary"
8989rm $summary_file
9090pull_data ()
9191{
92+ ltest_name=" $1 "
9293 passmark_file=` mktemp /tmp/passmark_data.XXXXX`
93- test_name=${1}
94- grep " ^${test_name} " results_all_* yml | cut -d' :' -f2 | sed " s/ //g" > ${passmark_file}
94+ grep " ^${ltest_name} " results_all_* yml | cut -d' :' -f2 | sed " s/ //g" > ${passmark_file}
9595 results=0.0
9696 iterations=0
9797 while IFS= read -r line
@@ -102,7 +102,7 @@ pull_data()
102102 done < " ${passmark_file} "
103103 rm ${passmark_file}
104104 value=` echo " scaling=12;${results} /${iterations} " | bc -l`
105- output=` printf " %s:%-40.12f" $test_name $value | sed " s/ //g" | sed " s/:/: /g" `
105+ output=` printf " %s:%-40.12f" $ltest_name $value | sed " s/ //g" | sed " s/:/: /g" `
106106 echo " ${output} "
107107}
108108
@@ -117,6 +117,8 @@ usage()
117117
118118produce_report ()
119119{
120+ start_time=" ${1} "
121+ end_time=" ${2} "
120122 found=0
121123
122124 if [[ ! -f results_all_1.yml ]]; then
@@ -126,8 +128,8 @@ produce_report()
126128 do
127129 if [[ $found -eq 1 ]]; then
128130 if [[ ${line} != " SystemInformation:" * ]]; then
129- test_name =` echo $line | awk ' {print $1}' `
130- pull_data $test_name
131+ ltest_name =` echo $line | awk ' {print $1}' `
132+ pull_data $ltest_name
131133 continue
132134 else
133135 found=0
@@ -143,11 +145,11 @@ produce_report()
143145 located=0
144146 [ -f results.csv ] && rm results.csv
145147
146- $TOOLS_BIN /test_header_info --front_matter --results_file results.csv --host $to_configuration --sys_type $to_sys_type --tuned $to_tuned_setting --results_version $passmark_version --test_name $test_name
148+ $TOOLS_BIN /test_header_info --front_matter --results_file results.csv --host $to_configuration --sys_type $to_sys_type --tuned $to_tuned_setting --results_version $passmark_version --test_name $test_name --field_header " Testname,Operations "
147149
148150 while IFS= read -r line
149151 do
150- if [[ $line == * " Results Complete :" * ]]; then
152+ if [[ $line == * " NumTestProcesses :" * ]]; then
151153 located=1
152154 continue
153155 fi
@@ -164,7 +166,10 @@ produce_report()
164166 #
165167 continue
166168 fi
167- echo $line | sed " s/ //g" >> results.csv
169+ ltest_name=` echo $line | cut -d' :' -f1`
170+ results=` echo $line | cut -d' ' -f2`
171+ data_string=$( build_data_string " ${ltest_name} " " ${results} " " ${start_time} " " ${end_time} " )
172+ echo " ${data_string} " >> results.csv
168173 done < " $summary_file "
169174 fi
170175 echo Checksum: Not applicable for summary file >> $summary_file
@@ -282,7 +287,6 @@ run_passmark()
282287 rm passmark.summary
283288
284289 if [[ $to_use_pcp -eq 1 ]]; then
285- source $TOOLS_BIN /pcp/pcp_commands.inc
286290 setup_pcp
287291 pcp_cfg=$TOOLS_BIN /pcp/default.cfg
288292 pcp_dir=/tmp/pcp_passmark_$( date +%Y.%m.%d-%H.%M.%S)
@@ -294,6 +298,7 @@ run_passmark()
294298 if [[ $to_use_pcp -eq 1 ]]; then
295299 start_pcp_subset
296300 fi
301+ start_time=$( retrieve_time_stamp)
297302 if [[ $arch == " aarch64" ]]; then
298303 ./pt_linux_arm64 -r 3 >> ${test_name} _${iter} .out
299304 if [ $? -ne 0 ]; then
@@ -305,6 +310,7 @@ run_passmark()
305310 exit_out " Execution of ./pt_linux_x64 failed" 1
306311 fi
307312 fi
313+ end_time=$( retrieve_time_stamp)
308314 mv results_all.yml results_all_${iter} .yml
309315 if [[ $to_use_pcp -eq 1 ]]; then
310316 results2pcp_add_value " iteration:$iter "
@@ -330,7 +336,7 @@ run_passmark()
330336 fi
331337 done
332338
333- produce_report
339+ produce_report " ${start_time} " " ${end_time} "
334340 if [[ $to_use_pcp -eq 1 ]]; then
335341 stop_pcp
336342 fi
@@ -359,6 +365,9 @@ install_tools "$@"
359365#
360366
361367source ${curdir} /test_tools/general_setup " $@ "
368+ if [[ $to_use_pcp -eq 1 ]]; then
369+ source $TOOLS_BIN /pcp/pcp_commands.inc
370+ fi
362371
363372ARGUMENT_LIST=(
364373 " cpu_add"
0 commit comments