2222# set of default run parameters based on the system configuration.
2323#
2424
25- pbench_arg_list=" "
2625commit=" none"
2726coremark_version=" v1.01"
2827test_name=" coremark"
@@ -252,15 +251,13 @@ generate_results()
252251 echo Summary not supported yet when doing cpu counts > run2_summary
253252 fi
254253
255- if [ $to_pbench -eq 0 ]; then
256- lines=` wc -l $results_file | cut -d' ' -f1`
257- if [ $lines -lt 2 ]; then
258- echo Failed > test_results_report
259- else
260- echo Ran > test_results_report
261- fi
262- ${curdir} /test_tools/save_results --curdir $curdir --home_root $to_home_root --other_files " *_summary,run*log,test_results_report" --results $results_file --test_name coremark --tuned_setting=$to_tuned_setting --version $coremark_version --user $to_user
254+ lines=` wc -l $results_file | cut -d' ' -f1`
255+ if [ $lines -lt 2 ]; then
256+ echo Failed > test_results_report
257+ else
258+ echo Ran > test_results_report
263259 fi
260+ ${curdir} /test_tools/save_results --curdir $curdir --home_root $to_home_root --other_files " *_summary,run*log,test_results_report" --results $results_file --test_name coremark --tuned_setting=$to_tuned_setting --version $coremark_version --user $to_user
264261 popd > /dev/null
265262}
266263
@@ -274,9 +271,6 @@ install_test_tools "$@"
274271# to_home_root: home directory
275272# to_configuration: configuration information
276273# to_times_to_run: number of times to run the test
277- # to_pbench: Run the test via pbench
278- # to_pbench_copy: Copy the data to the pbench repository, not move_it.
279- # to_puser: User running pbench
280274# to_run_label: Label for the run
281275# to_user: User on the test system running the test
282276# to_sys_type: for results info, basically aws, azure or local
@@ -314,17 +308,14 @@ eval set --$opts
314308while [[ $# -gt 0 ]]; do
315309 case " $1 " in
316310 --commit)
317- pbench_arg_list=" ${pbench_arg_list} $1 $2 "
318311 commit=$2
319312 shift 2
320313 ;;
321314 --cpu_add)
322- pbench_arg_list=" ${pbench_arg_list} $1 $2 "
323315 cpu_add=$2
324316 shift 2
325317 ;;
326318 --powers_2)
327- pbench_arg_list=" ${pbench_arg_list} $1 "
328319 powers_2=1
329320 shift 1
330321 ;;
385376numb_cpus=` nproc`
386377pushd coremark > /dev/null
387378
388- if [ $to_pbench -eq 1 ]; then
389- source ~ /.bashrc
390- cd $curdir
391- #
392- # Arguments to pbecnh, change as required.
393- #
394- pbench_args=" --cmd_executing \" $0 \" $arguments --test ${test_name} --spacing 11 --pbench_stats $to_pstats "
395- echo $TOOLS_BIN /execute_via_pbench ${pbench_args}
396- $TOOLS_BIN /execute_via_pbench ${pbench_args}
397- if [ $? -ne 0 ]; then
398- exit_out " Error: $TOOLS_BIN /execute_via_pbench ${pbench_args} " 1
399- fi
400- else
401- run_coremark
402- generate_results
403- fi
379+ run_coremark
380+ generate_results
381+
404382exit 0
405383
0 commit comments