mbuf: add prefetch helpers
[dpdk.git] / scripts / test-build.sh
index 808e8e4..48539c1 100755 (executable)
@@ -44,6 +44,7 @@ default_path=$PATH
 # - DPDK_DEP_ZLIB (y/[n])
 # - DPDK_MAKE_JOBS (int)
 # - DPDK_NOTIFY (notify-send)
+# - LIBSSO_PATH
 . $(dirname $(readlink -e $0))/load-devel-config.sh
 
 print_usage () {
@@ -74,11 +75,13 @@ print_help () {
 
 J=$DPDK_MAKE_JOBS
 short=false
+unset verbose
 maxerr=-Wfatal-errors
-while getopts hj:s ARG ; do
+while getopts hj:sv ARG ; do
        case $ARG in
                j ) J=$OPTARG ;;
                s ) short=true ;;
+               v ) verbose='V=1' ;;
                h ) print_help ; exit 0 ;;
                ? ) print_usage ; exit 1 ;;
        esac
@@ -116,6 +119,7 @@ reset_env ()
        unset DPDK_DEP_SZE
        unset DPDK_DEP_ZLIB
        unset AESNI_MULTI_BUFFER_LIB_PATH
+       unset LIBSSO_PATH
        unset PQOS_INSTALL_PATH
 }
 
@@ -133,8 +137,11 @@ config () # <directory> <target> <options>
                sed -ri           's,(NEXT_ABI=)y,\1n,' $1/.config
                ! echo $3 | grep -q '+shared' || \
                sed -ri         's,(SHARED_LIB=)n,\1y,' $1/.config
-               ! echo $3 | grep -q '+debug' || \
-               sed -ri            's,(DEBUG.*=)n,\1y,' $1/.config
+               ! echo $3 | grep -q '+debug' || ( \
+               sed -ri     's,(RTE_LOG_LEVEL=).*,\1RTE_LOG_DEBUG,' $1/.config
+               sed -ri           's,(_DEBUG.*=)n,\1y,' $1/.config
+               sed -ri            's,(_STAT.*=)n,\1y,' $1/.config
+               sed -ri 's,(TEST_PMD_RECORD_.*=)n,\1y,' $1/.config )
 
                # Automatic configuration
                ! echo $2 | grep -q '^x86_64' || \
@@ -155,11 +162,12 @@ config () # <directory> <target> <options>
                sed -ri       's,(PMD_AESNI_MB=)n,\1y,' $1/.config
                test -z "$AESNI_MULTI_BUFFER_LIB_PATH" || \
                sed -ri      's,(PMD_AESNI_GCM=)n,\1y,' $1/.config
+               test -z "$LIBSSO_PATH" || \
+               sed -ri         's,(PMD_SNOW3G=)n,\1y,' $1/.config
                test "$DPDK_DEP_SSL" != y || \
                sed -ri            's,(PMD_QAT=)n,\1y,' $1/.config
                sed -ri        's,(KNI_VHOST.*=)n,\1y,' $1/.config
                sed -ri           's,(SCHED_.*=)n,\1y,' $1/.config
-               sed -ri 's,(TEST_PMD_RECORD_.*=)n,\1y,' $1/.config
                build_config_hook $1 $2 $3
 
                # Explicit enabler/disabler (uppercase)
@@ -193,17 +201,17 @@ for conf in $configs ; do
 
        echo "================== Build $dir"
        make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
-               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" O=$dir
+               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
        ! $short || break
        echo "================== Build examples for $dir"
        export RTE_SDK=$(pwd)
        export RTE_TARGET=$dir
        make -j$J -sC examples \
-               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" \
+               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
                O=$(readlink -m $dir/examples)
        ! echo $target | grep -q '^x86_64' || \
        make -j$J -sC examples/performance-thread \
-               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" \
+               EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
                O=$(readlink -m $dir/examples/performance-thread)
        unset RTE_TARGET
        echo "################## $dir done."