test: minor updates to vm_setup script

Added execute permissions and -p to a few mkdir locations to
make re-running after an unrelated failure a little cleaner.

Change-Id: I67592fc4dd91839979fdb8eeda38dcdbcd4b7700
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/395865
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
paul luse 2018-01-22 14:37:25 -07:00 committed by Jim Harris
parent f22907768a
commit 74b3dc9a2d

10
test/config/vm_setup.sh Normal file → Executable file
View File

@ -63,7 +63,7 @@ sudo dnf install -y libuuid-devel
cd ~ cd ~
mkdir spdk_repo mkdir -p spdk_repo
# the configurations of username and email are needed later for applying patches to iscsiadm. # the configurations of username and email are needed later for applying patches to iscsiadm.
git config --global user.name none git config --global user.name none
@ -82,7 +82,7 @@ sudo make install
cd ~ cd ~
cd spdk_repo cd spdk_repo
mkdir output mkdir -p output
git clone https://review.gerrithub.io/spdk/spdk git clone https://review.gerrithub.io/spdk/spdk
cd spdk cd spdk
git submodule update --init --recursive git submodule update --init --recursive
@ -94,11 +94,11 @@ cd ~
CURRENT_VERSION=$(iscsiadm --version) CURRENT_VERSION=$(iscsiadm --version)
OPEN_ISCSI_VER='iscsiadm version 6.2.0.874' OPEN_ISCSI_VER='iscsiadm version 6.2.0.874'
if [ "$CURRENT_VERSION" == "$OPEN_ISCSI_VER" ]; then if [ "$CURRENT_VERSION" == "$OPEN_ISCSI_VER" ]; then
mkdir open-iscsi-install mkdir -p open-iscsi-install
cd open-iscsi-install cd open-iscsi-install
sudo dnf download --source iscsi-initiator-utils sudo dnf download --source iscsi-initiator-utils
rpm2cpio iscsi-initiator-utils-6.2.0.874-3.git86e8892.fc26.src.rpm | cpio -idmv rpm2cpio iscsi-initiator-utils-6.2.0.874-3.git86e8892.fc26.src.rpm | cpio -idmv
mkdir patches mkdir -p patches
mv 00* patches/ mv 00* patches/
git clone https://github.com/open-iscsi/open-iscsi git clone https://github.com/open-iscsi/open-iscsi
@ -139,7 +139,7 @@ sudo mv FlameGraph /usr/local/FlameGraph
# The SPDK branch of Qemu contains some extra functionality needed by SPDK. However, that branch is not currently # The SPDK branch of Qemu contains some extra functionality needed by SPDK. However, that branch is not currently
# compatible with GCC 7. Some of the SPDK changes are currently out for review on Qemu's main branch. Until those # compatible with GCC 7. Some of the SPDK changes are currently out for review on Qemu's main branch. Until those
# changes are merged, this specific review provides support for both spdk and GCC 7. # changes are merged, this specific review provides support for both spdk and GCC 7.
mkdir vhost mkdir -p vhost
cd vhost cd vhost
git clone https://review.gerrithub.io/spdk/qemu git clone https://review.gerrithub.io/spdk/qemu
cd qemu cd qemu