TEST: Add a test to verify that HeaderDigest works

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2017-01-04 18:47:18 -08:00
parent f97f1fbaab
commit b7ab5d05f1
4 changed files with 281 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
. ./functions.sh
echo "Header Digest tests"
start_target "nop_interval=1,nop_count=3"
enable_header_digest
create_lun
echo -n "Test that we can connect to a target requiring Header Digest ..."
./prog_header_digest -i ${IQNINITIATOR} iscsi://${TGTPORTAL}/${IQNTARGET}/1 > /dev/null || failure
success
shutdown_target
delete_lun
exit 0