Commit 40d20acb authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

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: default avatarSeth 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 3852afd6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -183,5 +183,7 @@ else
	if [ "$SPDK_TEST_OCF" -eq 1 ]; then
		run_test "autobuild_ocf_precompile" ocf_precompile
	fi
	# if we aren't testing the unittests, build with shared objects.
	./configure $config_params --with-shared
	run_test "make" $MAKE $MAKEFLAGS
fi
+5 −0
Original line number Diff line number Diff line
@@ -13,6 +13,11 @@ source "$1"
source "$rootdir/test/common/autotest_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
	echo "$0 must be run as root"
	exit 1
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ insert_devices

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=$!

sleep 4