Files
libiscsi/tests/test_2000_reconnect.sh
Ronnie Sahlberg e8a2296f94 Initial test branch for adding tests to libiscsi
These tests depends on not yet released version on TGTD to allow running
both TGTD and TGTADM as unprivileged users to set up and configure
targets to test against during make test.
Update TGTD to tip of master before running these tests.

See STGT mailinglist for patches.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-04-13 14:58:30 -07:00

18 lines
288 B
Bash
Executable File

#!/bin/sh
. ./functions.sh
echo "Basic Reconnect test"
start_target
create_lun
echo -n "Test reading from the LUN when a reconnect happens ... "
./prog_reconnect -i ${IQNINITIATOR} iscsi://${TGTPORTAL}/${IQNTARGET}/1 > /dev/null || failure
success
shutdown_target
delete_lun
exit 0