per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices. git log --follow -C90% --format=%ad --date default <file> | tail -1 and then pull just the year from the result. Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc) For intel copyrights added, --follow and -C95% were used. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I2ef86976095b88a9bf5b1003e59f3943cd6bbe4c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15209 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
75 lines
2.5 KiB
Bash
Executable File
75 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2017 Intel Corporation
|
|
# All rights reserved.
|
|
#
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
source $rootdir/test/vhost/common.sh
|
|
|
|
case $1 in
|
|
-h | --help)
|
|
echo "usage: $(basename $0) TEST_TYPE"
|
|
echo "Test type can be:"
|
|
echo " -p |--performance for running a performance test with vhost scsi"
|
|
echo " -pb|--performance-blk for running a performance test with vhost blk"
|
|
echo " -hp|--hotplug for running hotplug tests"
|
|
echo " -shr|--scsi-hot-remove for running scsi hot remove tests"
|
|
echo " -bhr|--blk-hot-remove for running blk hot remove tests"
|
|
echo " -h |--help prints this message"
|
|
echo ""
|
|
echo "Environment:"
|
|
echo " VM_IMAGE path to QCOW2 VM image used during test (default: $DEPENDENCY_DIR/spdk_test_image.qcow2)"
|
|
echo ""
|
|
echo "Tests are performed only on Linux machine. For other OS no action is performed."
|
|
echo ""
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
echo "Running SPDK vhost fio autotest..."
|
|
if [[ $(uname -s) != Linux ]]; then
|
|
echo ""
|
|
echo "INFO: Vhost tests are only for Linux machine."
|
|
echo ""
|
|
exit 0
|
|
fi
|
|
|
|
vhosttestinit
|
|
|
|
case $1 in
|
|
-hp | --hotplug)
|
|
echo 'Running hotplug tests suite...'
|
|
run_test "vhost_hotplug" $WORKDIR/hotplug/scsi_hotplug.sh --fio-bin=$FIO_BIN \
|
|
--vm=0,$VM_IMAGE,Nvme0n1p0:Nvme0n1p1 \
|
|
--vm=1,$VM_IMAGE,Nvme0n1p2:Nvme0n1p3 \
|
|
--vm=2,$VM_IMAGE,Nvme0n1p4:Nvme0n1p5 \
|
|
--vm=3,$VM_IMAGE,Nvme0n1p6:Nvme0n1p7 \
|
|
--test-type=spdk_vhost_scsi \
|
|
--fio-jobs=$WORKDIR/hotplug/fio_jobs/default_integrity.job -x
|
|
;;
|
|
-shr | --scsi-hot-remove)
|
|
echo 'Running scsi hotremove tests suite...'
|
|
run_test "vhost_scsi_hot_remove" $WORKDIR/hotplug/scsi_hotplug.sh --fio-bin=$FIO_BIN \
|
|
--vm=0,$VM_IMAGE,Nvme0n1p0:Nvme0n1p1 \
|
|
--vm=1,$VM_IMAGE,Nvme0n1p2:Nvme0n1p3 \
|
|
--test-type=spdk_vhost_scsi \
|
|
--scsi-hotremove-test \
|
|
--fio-jobs=$WORKDIR/hotplug/fio_jobs/default_integrity.job
|
|
;;
|
|
-bhr | --blk-hot-remove)
|
|
echo 'Running blk hotremove tests suite...'
|
|
run_test "vhost_blk_hot_remove" $WORKDIR/hotplug/scsi_hotplug.sh --fio-bin=$FIO_BIN \
|
|
--vm=0,$VM_IMAGE,Nvme0n1p0:Nvme0n1p1 \
|
|
--vm=1,$VM_IMAGE,Nvme0n1p2:Nvme0n1p3 \
|
|
--test-type=spdk_vhost_blk \
|
|
--blk-hotremove-test \
|
|
--fio-jobs=$WORKDIR/hotplug/fio_jobs/default_integrity.job
|
|
;;
|
|
*)
|
|
echo "unknown test type: $1"
|
|
exit 1
|
|
;;
|
|
esac
|