test/iscsi_tgt: move iscsi script invocations to separate file
This enables iSCSI tests to be more easily run in isolation. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I4868ca68fe16e06025fd36c62c41ad0694806051 Reviewed-on: https://review.gerrithub.io/361811 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
2e3f07ac40
commit
4c438999e0
21
autotest.sh
21
autotest.sh
@ -104,25 +104,8 @@ fi
|
|||||||
|
|
||||||
timing_exit lib
|
timing_exit lib
|
||||||
|
|
||||||
|
if [ $SPDK_TEST_ISCSI -eq 1 ]; then
|
||||||
if [ $(uname -s) = Linux ] && [ $SPDK_TEST_ISCSI -eq 1 ]; then
|
run_test ./test/iscsi_tgt/iscsi_tgt.sh
|
||||||
export TARGET_IP=127.0.0.1
|
|
||||||
export INITIATOR_IP=127.0.0.1
|
|
||||||
|
|
||||||
timing_enter iscsi_tgt
|
|
||||||
run_test ./test/iscsi_tgt/calsoft/calsoft.sh
|
|
||||||
run_test ./test/iscsi_tgt/filesystem/filesystem.sh
|
|
||||||
run_test ./test/iscsi_tgt/fio/fio.sh
|
|
||||||
run_test ./test/iscsi_tgt/reset/reset.sh
|
|
||||||
run_test ./test/iscsi_tgt/rpc_config/rpc_config.sh
|
|
||||||
run_test ./test/iscsi_tgt/idle_migration/idle_migration.sh
|
|
||||||
if [ $RUN_NIGHTLY -eq 1 ]; then
|
|
||||||
run_test ./test/iscsi_tgt/ip_migration/ip_migration.sh
|
|
||||||
fi
|
|
||||||
run_test ./test/iscsi_tgt/ext4test/ext4test.sh
|
|
||||||
run_test ./test/iscsi_tgt/rbd/rbd.sh
|
|
||||||
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh
|
|
||||||
timing_exit iscsi_tgt
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_BLOBFS -eq 1 ]; then
|
if [ $SPDK_TEST_BLOBFS -eq 1 ]; then
|
||||||
|
26
test/iscsi_tgt/iscsi_tgt.sh
Executable file
26
test/iscsi_tgt/iscsi_tgt.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
testdir=$(readlink -f $(dirname $0))
|
||||||
|
rootdir=$(readlink -f $testdir/../..)
|
||||||
|
source $rootdir/scripts/autotest_common.sh
|
||||||
|
|
||||||
|
if [ ! $(uname -s) = Linux ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export TARGET_IP=127.0.0.1
|
||||||
|
export INITIATOR_IP=127.0.0.1
|
||||||
|
|
||||||
|
timing_enter iscsi_tgt
|
||||||
|
run_test ./test/iscsi_tgt/calsoft/calsoft.sh
|
||||||
|
run_test ./test/iscsi_tgt/filesystem/filesystem.sh
|
||||||
|
run_test ./test/iscsi_tgt/fio/fio.sh
|
||||||
|
run_test ./test/iscsi_tgt/reset/reset.sh
|
||||||
|
run_test ./test/iscsi_tgt/rpc_config/rpc_config.sh
|
||||||
|
run_test ./test/iscsi_tgt/idle_migration/idle_migration.sh
|
||||||
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||||
|
run_test ./test/iscsi_tgt/ip_migration/ip_migration.sh
|
||||||
|
fi
|
||||||
|
run_test ./test/iscsi_tgt/ext4test/ext4test.sh
|
||||||
|
run_test ./test/iscsi_tgt/rbd/rbd.sh
|
||||||
|
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh
|
||||||
|
timing_exit iscsi_tgt
|
Loading…
Reference in New Issue
Block a user