vm_setup.sh: small fixes

Refactor the printout of autorun-spdk.conf and fix the path for
pkgdep.sh (the previous path was based on an old assumption)

Change-Id: Id95e0f80f835dd1b055a94a6bfdbffcce029b8af
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/430843
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Seth Howell 2018-10-25 11:30:19 -07:00 committed by Ben Walker
parent 5f24a23c55
commit 38d2cb200d

View File

@ -332,7 +332,7 @@ git -C spdk_repo/spdk config submodule.dpdk.url "${GIT_REPO_DPDK}"
git -C spdk_repo/spdk submodule update --init --recursive git -C spdk_repo/spdk submodule update --init --recursive
if $INSTALL; then if $INSTALL; then
sudo ./scripts/pkgdep.sh sudo spdk_repo/spdk/scripts/pkgdep.sh
if echo $CONF | grep -q tsocks; then if echo $CONF | grep -q tsocks; then
sudo dnf install -y tsocks sudo dnf install -y tsocks
@ -397,28 +397,33 @@ if [ ! -e ~/autorun-spdk.conf ]; then
cat > ~/autorun-spdk.conf << EOF cat > ~/autorun-spdk.conf << EOF
# assign a value of 1 to all of the pertinent tests # assign a value of 1 to all of the pertinent tests
SPDK_BUILD_DOC=1 SPDK_BUILD_DOC=1
SPDK_BUILD_SHARED_OBJECT=1
SPDK_RUN_CHECK_FORMAT=1 SPDK_RUN_CHECK_FORMAT=1
SPDK_RUN_SCANBUILD=1 SPDK_RUN_SCANBUILD=1
SPDK_RUN_VALGRIND=1 SPDK_RUN_VALGRIND=1
SPDK_TEST_CRYPTO=1
SPDK_TEST_UNITTEST=1 SPDK_TEST_UNITTEST=1
SPDK_TEST_ISCSI=1 SPDK_TEST_ISCSI=1
SPDK_TEST_ISCSI_INITIATOR=1 SPDK_TEST_ISCSI_INITIATOR=1
# nvme and nvme-cli cannot be run at the same time on a VM.
SPDK_TEST_NVME=1 SPDK_TEST_NVME=1
SPDK_TEST_NVME_CLI=0 SPDK_TEST_NVME_CLI=1
SPDK_TEST_NVMF=1 SPDK_TEST_NVMF=1
SPDK_TEST_RBD=1 SPDK_TEST_RBD=1
# requires some extra configuration. see TEST_ENV_SETUP_README
SPDK_TEST_VHOST=0
SPDK_TEST_VHOST_INIT=0
SPDK_TEST_BLOCKDEV=1 SPDK_TEST_BLOCKDEV=1
# doesn't work on vm
SPDK_TEST_IOAT=0
SPDK_TEST_EVENT=1 SPDK_TEST_EVENT=1
SPDK_TEST_BLOBFS=1 SPDK_TEST_BLOBFS=1
SPDK_TEST_PMDK=1 SPDK_TEST_PMDK=1
SPDK_TEST_LVOL=1 SPDK_TEST_LVOL=1
SPDK_TEST_JSON=1
SPDK_RUN_ASAN=1 SPDK_RUN_ASAN=1
SPDK_RUN_UBSAN=1 SPDK_RUN_UBSAN=1
# doesn't work on vm
SPDK_TEST_IOAT=0
# requires some extra configuration. see TEST_ENV_SETUP_README
SPDK_TEST_VHOST=0
SPDK_TEST_VHOST_INIT=0
# Not configured here
SPDK_RUN_INSTALLED_DPDK=0
EOF EOF
fi fi