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 <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472024 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
74906b01b6
commit
a072421c90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user