From b0e6da6304f77106a144d539586bfc19c2807d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AE=88=E4=B8=9A?= <1909237392@qq.com> Date: Thu, 7 May 2026 09:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dunibench=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当前版本运行unibench会有make check检查错误,但是这里的错误不影响测试用例,但是影响了解析 脚本中的errs判断,修改为删除这里的检查 ------------------------------------------------------------------------ Shell Scripts (16 concurrent) 1338.9 lpm (60.0 s, 2 samples) errs: make: *** No rule to make target 'check'. Stop. sh: line 1: 3dinfo: command not found cleanup test result saved to /data/tperf/logs/perf/tperf-unixbench-shell16 test result: { "tperf-unixbench-shell16": { "name": "tperf-unixbench-shell16", "type": "HIB", "key": "avg", "unit": "lpm", "label": "L0:内存", "value": 1338.9, "statistics": { "max": 1338.9, "min": 1338.9, "avg": 1338.9, "mid": 1338.9, "sd": 0.0 } } } call _do_test success this is tc_teardown this is tc_teardown_common Global test environment tear-down RESULT : tperf-unixbench-shell16 ==> [ PASSED ] cost 189.417928005 Signed-off-by: 刘守业 <1909237392@qq.com> --- tools/unixbench/UnixBench/Run | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/unixbench/UnixBench/Run b/tools/unixbench/UnixBench/Run index 41637be..0a18e5b 100755 --- a/tools/unixbench/UnixBench/Run +++ b/tools/unixbench/UnixBench/Run @@ -1003,7 +1003,8 @@ sub getSystemInfo { } # Get graphics hardware info. - $info->{'graphics'} = getCmdOutput("3dinfo | cut -f1 -d\'(\'"); + # $info->{'graphics'} = getCmdOutput("3dinfo | cut -f1 -d\'(\'"); + $info->{'graphics'} = "N/A"; # Get system run state, load and usage info. $info->{'runlevel'} = getCmdOutput("who -r | awk '{print \$3}'"); @@ -1039,13 +1040,13 @@ sub preChecks { # Check that the required files are in the proper places. my $make = $ENV{MAKE} || "make"; - system("$make check"); - if ($? != 0) { - system("$make all"); - if ($? != 0) { - abortRun("\"$make all\" failed"); - } - } + # system("$make check"); + # if ($? != 0) { + # system("$make all"); + # if ($? != 0) { + # abortRun("\"$make all\" failed"); + # } + # } # Create a script to kill this run. system("echo \"kill -9 $$\" > \"${TMPDIR}/kill_run\""); -- Gitee