From a072421c90c8d5bb8ced68b6e9614c2242d8c0ed Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Wed, 23 Oct 2019 10:27:36 +0200 Subject: [PATCH] test/vm_setup: add CUSE dependencies Dependencies required to compile and run nvme-cli tests: 1) fuse module must be installed, 2) cuse module must be installed, a. Fedora requires to install "kernel-modules-extra" providing cuse module for a kernel, 3) systemd-devel package to compile nvme-cli application While namespace devices are provided as character devices via cuse module, this patch also installs nvme-cli version accepting namespaces as character devices. Required changes are available for review here: https://review.gerrithub.io/c/spdk/nvme-cli/+/472250 After merging the changes will be available on spdk/nvme-cli repository at 'nvme-cuse' branch. NOTE: changes above are not required when controller with nsid is provided as an nvme-cli option, e.g. "nvme id-ns /dev/spdk/nvme0 -n 1" instead of: "nvme id-ns /dev/spdk/nvme0n1" Change-Id: I413c33d9891c5a39a5388ea7407d798c138b0584 Signed-off-by: Tomasz Kulasek Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472024 Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Tested-by: SPDK CI Jenkins --- test/common/config/vm_setup.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index ea9dc3b5b..f685088ec 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -282,9 +282,16 @@ function install_nvmecli() else echo "nvme-cli already checked out. Skipping" fi + if [ ! -d "/usr/local/src/nvme-cli" ]; then + git clone "https://review.gerrithub.io/spdk/nvme-cli" "nvme-cli-cuse" + git -C ./nvme-cli-cuse checkout nvme-cuse + make -C ./nvme-cli-cuse + sudo mv ./nvme-cli-cuse /usr/local/src/nvme-cli + fi fi } + function install_libiscsi() { if echo $CONF | grep -q libiscsi; then @@ -477,7 +484,9 @@ if $INSTALL; then rpm-build \ iptables \ clang-analyzer \ - bc + bc \ + kernel-modules-extra \ + systemd-devel elif [ $PACKAGEMNG == 'apt-get' ]; then echo "Package perl-open is not available at Ubuntu repositories" >&2