scripts: stop build test after first error
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 8 Mar 2016 15:43:50 +0000 (16:43 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 7 Apr 2016 21:05:47 +0000 (23:05 +0200)
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
scripts/test-build.sh

index ffad7ee..ffa7bea 100755 (executable)
@@ -64,6 +64,7 @@ print_help () {
 
 J=$DPDK_MAKE_JOBS
 short=false
+maxerr=-Wfatal-errors
 while getopts hj:s ARG ; do
        case $ARG in
                j ) J=$OPTARG ;;
@@ -146,7 +147,7 @@ for conf in $configs ; do
        config $dir $target $options
 
        echo "================== Build $dir"
-       make -j$J EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" \
+       make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
                EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" O=$dir
        ! $short || break
        echo "================== Build examples for $dir"