Spdk/test/iscsi_tgt
Jim Harris 390b364146 test: add parse_common_script_args function
iscsi test scripts can now take two arguments -
"iso" and then the sock type (posix or vpp).  They
need to be in that specific order too.  nvmf test
scripts also support "iso" and we want to add
the transport type (rdma or tcp) as well.  Even further
out, we may want to use a sock type for nvmf, i.e.
tcp transport with vpp.

We also have the iscsi_tgt fio_remove_nvme.sh test
that does both iscsi and nvmf.

So to make this all work a bit nicer, add a new
function called parse_common_script_args that
will take the command line arguments to a script
and set the appropriate variables, including defaults
when a specific parameter isn't specified.  We will
use getopt-like behavior for this also, instead of
enforcing a specific parameter order.  Then a script
could be called like this:

test/nvmf/target/shutdown.sh --iso --transport=tcp --sock=vpp

Individual test scripts then just need to do this
after sourcing autotest_common.sh:

parse_common_script_args $@

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ifb8d7666384991482a2d425e26ffa7525b9ac15a

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455283
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-05-22 23:43:51 +00:00
..
bdev_io_wait test: add parse_common_script_args function 2019-05-22 23:43:51 +00:00
calsoft test/iscsi: fix support for python 3.6 in calsoft.py 2019-01-14 05:45:35 +00:00
digests test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
ext4test test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
filesystem test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
fio test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
initiator test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
ip_migration test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
lvol test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
multiconnection test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
nvme_remote test/nvmf: remove -p num_queues restrictions 2019-05-22 14:50:05 +00:00
perf test: don't call python explicitly 2019-05-08 14:22:19 +00:00
pmem scripts/fio.py: add support for specifying num_jobs 2019-04-24 09:22:16 +00:00
qos test/qos: precalculate bandwidth limits 2019-05-22 10:21:49 +00:00
rbd test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
reset test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
rpc_config scripts:Fix Python errors in checking scripts 2019-02-12 18:37:09 +00:00
sock test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
trace_record test/iscsi: pipe scripts to rpc.py in trace_record.sh 2019-05-14 19:07:31 +00:00
common.sh test/iscsi: enable iso testing. 2019-05-08 21:48:30 +00:00
iscsi_tgt.sh test/qos: disable iscsi qos tests 2019-04-29 17:32:26 +00:00
test_plan.md test/iscsi: Add iscsi_tgt with NVML backend test 2017-10-19 13:00:27 -04:00