From 8ba6d1b75beaf3cd9df836eb94924add2e74629e Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 18 Apr 2019 19:37:45 +0800 Subject: [PATCH] coremakr: store benchmark scores --- package/lean/autocore/Makefile | 2 +- package/lean/autocore/files/index.htm | 2 +- package/lean/coremark/Makefile | 2 +- package/lean/coremark/coremark.sh | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 1ce4f4cca..67ab97f6e 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autocore PKG_VERSION:=1 -PKG_RELEASE:=17 +PKG_RELEASE:=18 include $(INCLUDE_DIR)/package.mk diff --git a/package/lean/autocore/files/index.htm b/package/lean/autocore/files/index.htm index 07b31789d..a1217b774 100644 --- a/package/lean/autocore/files/index.htm +++ b/package/lean/autocore/files/index.htm @@ -679,7 +679,7 @@ - +
<%:Hostname%><%=luci.sys.hostname() or "?"%>
<%:Model%><%=pcdata(boardinfo.model or boardinfo.system or "?")%>
<%:CPU Info%><%=luci.sys.exec("grep 'MHz' /proc/cpuinfo | cut -c11- |sed -n '1p'")%> MHz <%=luci.sys.exec("cat /tmp/bench.log") or " "%> <%=luci.sys.exec("sensors | grep 'Core 0' | cut -c10-24")%>
<%:CPU Info%><%=luci.sys.exec("grep 'MHz' /proc/cpuinfo | cut -c11- |sed -n '1p'")%> MHz <%=luci.sys.exec("cat /etc/bench.log") or " "%> <%=luci.sys.exec("sensors | grep 'Core 0' | cut -c10-24")%>
<%:Firmware Version%> <%=pcdata(ver.distname)%> <%=pcdata(ver.distversion)%> / <%=pcdata(ver.luciname)%> (<%=pcdata(ver.luciversion)%>) diff --git a/package/lean/coremark/Makefile b/package/lean/coremark/Makefile index bd0e86d3c..dd9533bcc 100644 --- a/package/lean/coremark/Makefile +++ b/package/lean/coremark/Makefile @@ -15,7 +15,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coremark -PKG_RELEASE:=10 +PKG_RELEASE:=11 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/eembc/coremark.git diff --git a/package/lean/coremark/coremark.sh b/package/lean/coremark/coremark.sh index c2a99b376..6b0f9f127 100755 --- a/package/lean/coremark/coremark.sh +++ b/package/lean/coremark/coremark.sh @@ -2,11 +2,11 @@ /bin/coremark > /tmp/coremark.log -cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /tmp/bench.log -sed -i 's/CoreMark 1.0/(CpuMark/g' /tmp/bench.log -echo " Scores)" >> /tmp/bench.log +cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /etc/bench.log +sed -i 's/CoreMark 1.0/(CpuMark/g' /etc/bench.log +echo " Scores)" >> /etc/bench.log -if [ -f "/tmp/bench.log" ]; then +if [ -f "/etc/bench.log" ]; then sed -i '/coremark/d' /etc/crontabs/root crontab /etc/crontabs/root fi \ No newline at end of file