From a3595cbec1d0b978af60a29db4c2a12e3d441d58 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 6 Sep 2018 13:35:25 -0700 Subject: [PATCH] autobuild: add shared object build to tests This was not being tested on every patch previously. Change-Id: I0a1756f3709da6608f66a2160962ed9b0fb38c7b Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/424890 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- autobuild.sh | 12 +++++++++--- test/common/autotest_common.sh | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) 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