tests: Rename virtiofsd build path

Adjust to reflect that it's QEMU being built here in preparation for
subsequent PRs that also want to build QEMU.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-08-16 14:39:46 +01:00 committed by Sebastien Boeuf
parent 71154d8362
commit d6e3b703ab

View File

@ -79,16 +79,16 @@ if [ ! -f "$VMLINUX_IMAGE" ]; then
fi fi
VIRTIOFSD="$WORKLOADS_DIR/virtiofsd" VIRTIOFSD="$WORKLOADS_DIR/virtiofsd"
VIRTIOFSD_DIR="virtiofsd_build" QEMU_DIR="qemu_build"
if [ ! -f "$VIRTIOFSD" ]; then if [ ! -f "$VIRTIOFSD" ]; then
pushd $WORKLOADS_DIR pushd $WORKLOADS_DIR
git clone --depth 1 "https://github.com/sboeuf/qemu.git" -b "virtio-fs" $VIRTIOFSD_DIR git clone --depth 1 "https://github.com/sboeuf/qemu.git" -b "virtio-fs" $QEMU_DIR
pushd $VIRTIOFSD_DIR pushd $QEMU_DIR
./configure --prefix=$PWD --target-list=x86_64-softmmu ./configure --prefix=$PWD --target-list=x86_64-softmmu
make virtiofsd -j `nproc` make virtiofsd -j `nproc`
cp virtiofsd $VIRTIOFSD cp virtiofsd $VIRTIOFSD
popd popd
rm -rf $VIRTIOFSD_DIR rm -rf $QEMU_DIR
sudo setcap cap_sys_admin+epi "virtiofsd" sudo setcap cap_sys_admin+epi "virtiofsd"
popd popd
fi fi