autobuild: add shared object build to tests
This was not being tested on every patch previously. Change-Id: I0a1756f3709da6608f66a2160962ed9b0fb38c7b Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/424890 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
59caaa979c
commit
a3595cbec1
12
autobuild.sh
12
autobuild.sh
@ -23,14 +23,20 @@ echo "** END ** Info for Hostname: $HOSTNAME"
|
|||||||
|
|
||||||
timing_enter autobuild
|
timing_enter autobuild
|
||||||
|
|
||||||
./configure $config_params
|
|
||||||
|
|
||||||
timing_enter check_format
|
timing_enter check_format
|
||||||
if [ $SPDK_RUN_CHECK_FORMAT -eq 1 ]; then
|
if [ $SPDK_RUN_CHECK_FORMAT -eq 1 ]; then
|
||||||
./scripts/check_format.sh
|
./scripts/check_format.sh
|
||||||
fi
|
fi
|
||||||
timing_exit check_format
|
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=''
|
scanbuild=''
|
||||||
make_timing_label='make'
|
make_timing_label='make'
|
||||||
if [ $SPDK_RUN_SCANBUILD -eq 1 ] && hash scan-build; then
|
if [ $SPDK_RUN_SCANBUILD -eq 1 ] && hash scan-build; then
|
||||||
@ -53,10 +59,10 @@ if [ $SPDK_RUN_UBSAN -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $scanbuild
|
echo $scanbuild
|
||||||
$MAKE $MAKEFLAGS clean
|
|
||||||
|
|
||||||
timing_enter "$make_timing_label"
|
timing_enter "$make_timing_label"
|
||||||
fail=0
|
fail=0
|
||||||
|
./configure $config_params
|
||||||
time $scanbuild $MAKE $MAKEFLAGS || fail=1
|
time $scanbuild $MAKE $MAKEFLAGS || fail=1
|
||||||
if [ $fail -eq 1 ]; then
|
if [ $fail -eq 1 ]; then
|
||||||
if [ -d $out/scan-build-tmp ]; then
|
if [ -d $out/scan-build-tmp ]; then
|
||||||
|
@ -36,6 +36,7 @@ fi
|
|||||||
|
|
||||||
# Set defaults for missing test config options
|
# Set defaults for missing test config options
|
||||||
: ${SPDK_BUILD_DOC=1}; export SPDK_BUILD_DOC
|
: ${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_CHECK_FORMAT=1}; export SPDK_RUN_CHECK_FORMAT
|
||||||
: ${SPDK_RUN_SCANBUILD=1}; export SPDK_RUN_SCANBUILD
|
: ${SPDK_RUN_SCANBUILD=1}; export SPDK_RUN_SCANBUILD
|
||||||
: ${SPDK_RUN_VALGRIND=1}; export SPDK_RUN_VALGRIND
|
: ${SPDK_RUN_VALGRIND=1}; export SPDK_RUN_VALGRIND
|
||||||
|
Loading…
Reference in New Issue
Block a user