diff --git a/tests/netperf/install.sh b/tests/netperf/install.sh index 8929e6548a7b0bfc2fe071fa330584e13fd95b4b..95261c2b3e2ffc6f1e91c5027bb443a0e66c5554 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 }