numam-spdk/test/vhost/spdk_vhost.sh
Daniel Verkamp 3abfa7a610 test/vhost: add 'set -e' to spdk_vhost.sh
Make sure the automated test pool can catch any errors.

Change-Id: Icd1cb9f5501d5f18395b963453e6c3d5e58c48ee
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-03-07 12:44:23 -07:00

43 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
WORKDIR=$(dirname $0)
cd $WORKDIR
param="$1"
if [ $(uname -s) = Linux ]; then
NRHUGE=4096 ./../../scripts/setup.sh
echo Running SPDK vhost fio autotest...
case $param in
-p|--performance)
echo Running performance suite...
./fiotest/autotest.sh --fio-bin=/home/sys_sgsw/fio_ubuntu \
--vm=0,/home/sys_sgsw/vhost_scsi_vm_image.qcow2,Nvme0n1p0 \
--test-type=spdk_vhost \
--fio-jobs=$WORKDIR/fiotest/fio_jobs/default_performance.job \
--qemu-src=/home/sys_sgsw/vhost_scsi/qemu
;;
-i|--integrity)
echo Running integrity suite...
./fiotest/autotest.sh --fio-bin=/home/sys_sgsw/fio_ubuntu \
--vm=0,/home/sys_sgsw/vhost_scsi_vm_image.qcow2,Nvme0n1p0:Nvme0n1p1:Nvme0n1p2:Nvme0n1p3 \
--test-type=spdk_vhost \
--fio-jobs=$WORKDIR/fiotest/fio_jobs/default_integrity.job \
--qemu-src=/home/sys_sgsw/vhost_scsi/qemu
;;
-h|--help)
echo "-i|--integrity for running an integrity test"
echo "-p|--performance for running a performance test"
echo "-h|--help prints this message"
;;
*)
echo "unknown test type"
;;
esac
fi