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>
21 lines
299 B
Bash
Executable File
21 lines
299 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./functions.sh
|
|
|
|
echo "Discovery tests"
|
|
|
|
start_target
|
|
create_lun
|
|
|
|
TEST_TMP=${0}.tmp
|
|
echo -n "Test discovery ... "
|
|
../utils/iscsi-ls -i ${IQNINITIATOR} iscsi://${TGTPORTAL} > ${TEST_TMP} &&
|
|
grep ${IQNTARGET} ${TEST_TMP} > /dev/null || failure
|
|
success
|
|
|
|
|
|
shutdown_target
|
|
delete_lun
|
|
|
|
exit 0
|