diff --git a/autobuild.sh b/autobuild.sh index cb555283f..91d1ef7eb 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -23,14 +23,20 @@ echo "** END ** Info for Hostname: $HOSTNAME" timing_enter autobuild -./configure $config_params - timing_enter check_format if [ $SPDK_RUN_CHECK_FORMAT -eq 1 ]; then ./scripts/check_format.sh fi timing_exit check_format +$MAKE $MAKEFLAGS clean +if [ $SPDK_BUILD_SHARED_OBJECT -eq 1 ]; then + ./configure $config_params --with-shared + $MAKE $MAKEFLAGS + $MAKE $MAKEFLAGS clean + report_test_completion "shared_object_build" +fi + scanbuild='' make_timing_label='make' if [ $SPDK_RUN_SCANBUILD -eq 1 ] && hash scan-build; then @@ -53,10 +59,10 @@ if [ $SPDK_RUN_UBSAN -eq 1 ]; then fi echo $scanbuild -$MAKE $MAKEFLAGS clean timing_enter "$make_timing_label" fail=0 +./configure $config_params time $scanbuild $MAKE $MAKEFLAGS || fail=1 if [ $fail -eq 1 ]; then if [ -d $out/scan-build-tmp ]; then diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index b82c3f4ab..b6269f25c 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -36,6 +36,7 @@ fi # Set defaults for missing test config options : ${SPDK_BUILD_DOC=1}; export SPDK_BUILD_DOC +: ${SPDK_BUILD_SHARED_OBJECT=1}; export SPDK_BUILD_SHARED_OBJECT : ${SPDK_RUN_CHECK_FORMAT=1}; export SPDK_RUN_CHECK_FORMAT : ${SPDK_RUN_SCANBUILD=1}; export SPDK_RUN_SCANBUILD : ${SPDK_RUN_VALGRIND=1}; export SPDK_RUN_VALGRIND