numam-spdk/test/iscsi_tgt/common.sh
Jim Harris a8e1295d4b test/iscsi_tgt: use stub application
The stub application will ensure that each
iSCSI test does not need to reinitialized DPDK
memory and NVMe devices.  This drastically
cuts down on the amount of time needed to run
all of the iscsi_tgt tests.

While here, add a new common ISCSI_TEST_CORE_MASK
shell variable, eliminating a bunch of copies of
the 0xFFFF core mask, and ensuring the stub application
chooses a core mask that overlaps all of the iscsi_tgt
test cases.

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

Reviewed-on: https://review.gerrithub.io/362454
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-05-25 16:55:03 -04:00

18 lines
316 B
Bash

if [ -z $TARGET_IP ]; then
echo "TARGET_IP not defined in environment"
exit 1
fi
if [ -z $INITIATOR_IP ]; then
echo "INITIATOR_IP not defined in environment"
exit 1
fi
if [ -z "$ISCSI_APP" ]; then
ISCSI_APP=./app/iscsi_tgt/iscsi_tgt
fi
if [ -z "$ISCSI_TEST_CORE_MASK" ]; then
ISCSI_TEST_CORE_MASK=0xFFFF
fi