Skip to content

Commit

Permalink
test/config: Call pkgdep.sh from vm_setup
Browse files Browse the repository at this point in the history
vm_setup.sh now calls pkgdep.sh to ensure that the basic packages needed
to compile SPDK are installed. Pkgdep remains a separate script because
it is supposed to contain the minimal set of packages for building SPDK.
while vm_setup is used to configure a complete testing environment.

Change-Id: I4038f522c66ad5b2c55ed73b1170f796b2c94e27
Signed-off-by: Seth Howell <[email protected]>
Reviewed-on: https://review.gerrithub.io/415895
Tested-by: SPDK Automated Test System <[email protected]>
Reviewed-by: Ben Walker <[email protected]>
Reviewed-by: Daniel Verkamp <[email protected]>
  • Loading branch information
Seth5141 authored and jimharris committed Jun 20, 2018
1 parent 5df15fa commit 714776c
Showing 1 changed file with 18 additions and 33 deletions.
51 changes: 18 additions & 33 deletions test/common/config/vm_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,29 @@ set -e
jobs=$(($(nproc)*2))

sudo dnf upgrade -y
sudo dnf install -y gcc
sudo dnf install -y gcc-c++
sudo dnf install -y make
sudo dnf install -y git

cd ~
mkdir -p spdk_repo

cd spdk_repo
mkdir -p output
if [ -d spdk ]; then
echo "spdk source already present, not cloning"
else
git clone https://review.gerrithub.io/spdk/spdk
fi
cd spdk
git submodule update --init --recursive
sudo ./scripts/pkgdep.sh
cd ~


sudo dnf install -y jq
sudo dnf install -y valgrind
sudo dnf install -y nvme-cli
sudo dnf install -y ceph
sudo dnf install -y gdb
sudo dnf install -y sg3_utils
sudo dnf install -y fio
sudo dnf install -y librbd-devel
sudo dnf install -y kernel-devel
Expand All @@ -45,32 +58,15 @@ sudo dnf install -y automake
sudo dnf install -y libtool
sudo dnf install -y libmount-devel
sudo dnf install -y isns-utils-devel
sudo dnf install -y openssl-devel
sudo dnf install -y numactl-devel
sudo dnf install -y libaio-devel
sudo dnf install -y CUnit-devel
sudo dnf install -y clang-analyzer
sudo dnf install -y libpmemblk-devel pmempool
sudo dnf install -y libibverbs libibverbs-devel librdmacm librdmacm-devel
sudo dnf install -y pmempool
sudo dnf install -y perl-open
sudo dnf install -y glib2-devel
sudo dnf install -y pixman-devel
sudo dnf install -y libiscsi-devel
sudo dnf install -y doxygen
sudo dnf install -y astyle-devel
sudo dnf install -y python
sudo dnf install -y python-pep8
sudo dnf install -y lcov
sudo dnf install -y libuuid-devel
sudo dnf install -y elfutils-libelf-devel
sudo dnf install -y flex
sudo dnf install -y bison
sudo dnf install -y targetcli
sudo dnf install -y nasm

cd ~

mkdir -p spdk_repo

# The librxe-dev repository provides a command line tool called rxe_cfg which makes it
# very easy to use Soft-RoCE. The build pool utilizes this command line tool in the absence
Expand All @@ -89,17 +85,6 @@ else
fi
sudo dnf install -y perl-Switch librdmacm-utils libibverbs-utils

cd spdk_repo
mkdir -p output
if [ -d spdk ]; then
echo "spdk source already present, not cloning"
else
git clone https://review.gerrithub.io/spdk/spdk
fi
cd spdk
git submodule update --init --recursive
cd ~

# The version of iscsiadm that ships with fedora 26 was broken as of November 3 2017.
# There is already a bug report out about it, and hopefully it is fixed soon, but in the event that
# that version is still broken when you do your setup, the below steps will fix the issue.
Expand Down

0 comments on commit 714776c

Please sign in to comment.