Add tests for sending/receiving each opcode end-to-end using iscsi-test-cu
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
18
tests/test_9035_startstopunit_removable.sh
Executable file
18
tests/test_9035_startstopunit_removable.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./functions.sh
|
||||
|
||||
echo "iscsi-test-cu StartStopUnit test for removable media"
|
||||
|
||||
start_target
|
||||
create_disk_lun 1 100M
|
||||
set_lun_removable 1
|
||||
|
||||
echo -n "SCSI.StartStopUnit ... "
|
||||
../test-tool/iscsi-test-cu -i ${IQNINITIATOR} iscsi://${TGTPORTAL}/${IQNTARGET}/1 -t SCSI.StartStopUnit --dataloss > /dev/null || failure
|
||||
success
|
||||
|
||||
shutdown_target
|
||||
delete_disk_lun 1
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user