2020-11-11 23:41:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-01-12 10:08:40 +01:00
|
|
|
workloads="@COREMARK_PRO_MARKS@"
|
2020-11-11 23:41:02 +01:00
|
|
|
|
|
|
|
rm -rf /tmp/coremark-pro
|
|
|
|
mkdir -p /tmp/coremark-pro
|
|
|
|
cp /usr/share/coremark-pro/Rose256.bmp /tmp/coremark-pro
|
|
|
|
cp /usr/share/coremark-pro/logs/*.size.log /tmp/coremark-pro
|
|
|
|
|
|
|
|
cd /tmp/coremark-pro
|
|
|
|
|
|
|
|
for contype in single best; do
|
|
|
|
cat /usr/share/coremark-pro/util/perl/headings.txt >>result.log
|
|
|
|
for wld in $workloads; do
|
|
|
|
[ "$contype" = "single" ] && XCMD="-c1 -w1"
|
|
|
|
[ "$contype" = "best" ] && XCMD="-c$(nproc) -w$(nproc)"
|
2021-01-12 10:08:40 +01:00
|
|
|
echo "#Results for verification run started at $(date +%x:%X) XCMD=$XCMD" >$wld-$contype-result.log
|
2020-11-11 23:41:02 +01:00
|
|
|
echo "Verification run for $wld"
|
|
|
|
$wld $XCMD -v1 > $wld.run.log
|
|
|
|
LC_ALL=C perl /usr/share/coremark-pro/util/perl/results_parser.pl $wld-$contype-result.log $wld.run.log
|
2021-01-12 10:08:40 +01:00
|
|
|
echo "#Results for performance runs started at $(date +%x:%X) XCMD=$XCMD" >>$wld-$contype-result.log
|
2020-11-11 23:41:02 +01:00
|
|
|
echo "Performance run for $wld"
|
|
|
|
for i in 1 2 3; do
|
|
|
|
$wld $XCMD -v0 > $wld.run.log
|
|
|
|
LC_ALL=C perl /usr/share/coremark-pro/util/perl/results_parser.pl $wld-$contype-result.log $wld.run.log
|
|
|
|
done
|
|
|
|
echo "#Median for final result $wld" >>$wld-$contype-result.log
|
|
|
|
LC_ALL=C perl /usr/share/coremark-pro/util/perl/cert_median.pl $wld-$contype-result.log $contype >>$wld-$contype-result.log
|
|
|
|
cat $wld-$contype-result.log >>result.log
|
|
|
|
done
|
|
|
|
done
|
|
|
|
LC_ALL=C perl /usr/share/coremark-pro/util/perl/cert_mark.pl -i result.log -s coremarkpro > result.mark
|
|
|
|
cat result.mark
|
|
|
|
cd - >/dev/null
|