autotest: always test against SPDK shared objects

We aren't going to run into any runtime issues when
linking against static libs, but we will when linking
against shared objects, so always test against shared
objects in autotest.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: I2d3d6e90f5fa4c38b3f44cf35e24b4f7e43b60ba
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2980
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2020-06-19 15:37:41 -07:00 committed by Tomasz Zawadzki
parent 3852afd6d8
commit 40d20acb72
3 changed files with 8 additions and 1 deletions

View File

@ -183,5 +183,7 @@ else
if [ "$SPDK_TEST_OCF" -eq 1 ]; then if [ "$SPDK_TEST_OCF" -eq 1 ]; then
run_test "autobuild_ocf_precompile" ocf_precompile run_test "autobuild_ocf_precompile" ocf_precompile
fi fi
# if we aren't testing the unittests, build with shared objects.
./configure $config_params --with-shared
run_test "make" $MAKE $MAKEFLAGS run_test "make" $MAKE $MAKEFLAGS
fi fi

View File

@ -13,6 +13,11 @@ source "$1"
source "$rootdir/test/common/autotest_common.sh" source "$rootdir/test/common/autotest_common.sh"
source "$rootdir/test/nvmf/common.sh" source "$rootdir/test/nvmf/common.sh"
# always test with SPDK shared objects.
export SPDK_LIB_DIR="$rootdir/build/lib"
export DPDK_LIB_DIR="$rootdir/dpdk/build/lib"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SPDK_LIB_DIR:$DPDK_LIB_DIR
if [ $EUID -ne 0 ]; then if [ $EUID -ne 0 ]; then
echo "$0 must be run as root" echo "$0 must be run as root"
exit 1 exit 1

View File

@ -109,7 +109,7 @@ insert_devices
timing_enter hotplug_test timing_enter hotplug_test
ssh_vm "build/examples/hotplug -i 0 -t 25 -n 4 -r 8" & ssh_vm "LD_LIBRARY_PATH=/root//build/lib:/root/dpdk/build/lib:$LD_LIBRARY_PATH build/examples/hotplug -i 0 -t 25 -n 4 -r 8" &
example_pid=$! example_pid=$!
sleep 4 sleep 4