From cc6bcee7f9bff15acfbeb0e683f477eab02680af Mon Sep 17 00:00:00 2001 From: chenqian16 Date: Tue, 8 Jul 2025 08:40:47 +0000 Subject: [PATCH] update tests/netperf/install.sh. Signed-off-by: chenqian16 --- tests/netperf/install.sh | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/tests/netperf/install.sh b/tests/netperf/install.sh index 8929e65..95261c2 100644 --- a/tests/netperf/install.sh +++ b/tests/netperf/install.sh @@ -26,19 +26,25 @@ build() # Fix build fail with gcc 10 export CFLAGS="-fno-strict-aliasing -fcommon" rm -rf config.guess config.sub - if [ $(cat /etc/os-release | grep "an23") ];then - autoupdate - autoreconf -ivf - aclocal && autoconf && autoheader && automake --add-missing - else - automake --add-missing - fi - ./autogen.sh - ./configure "${configure_flags[@]}" - make + if [ $(cat /etc/os-release | grep "an23") ];then + autoupdate + autoreconf -ivf + automake --add-missing + else + automake --add-missing + fi + if [[ ! -f $TONE_BM_RUN_DIR/bin/netperf ]];then + ./autogen.sh + ./configure "${configure_flags[@]}" + make + fi } install() { - make install-exec + if [[ -f $TONE_BM_RUN_DIR/bin/netperf ]];then + echo "netperf exit skip install" + else + make install-exec + fi } -- Gitee