Add a test that we reply to NOPs from the target

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-04-16 08:16:58 -07:00
parent ec4eb766c7
commit e978232447
4 changed files with 276 additions and 2 deletions

17
tests/test_0300_nop_reply.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
. ./functions.sh
echo "NOP reply tests"
start_target "nop_interval=1,nop_count=3"
create_lun
echo -n "Test that we reply to target initiated NOPs correctly ... "
./prog_noop_reply -i ${IQNINITIATOR} iscsi://${TGTPORTAL}/${IQNTARGET}/1 > /dev/null || failure
success
shutdown_target
delete_lun
exit 0