TESTS: Add tests that WRITE10/12/16 handle residuals correctly

Also test that IF the iSCSI layer provides 2 blocks of DATA-OUT but
the SCSI WRITE* command only covers one single block,
then only the first block will be modified but not the second block.
This commit is contained in:
Ronnie Sahlberg
2013-03-24 08:56:23 -07:00
parent 7cfcf32591
commit e1f15c8464
6 changed files with 906 additions and 0 deletions

View File

@@ -284,16 +284,19 @@ bin_iscsi_test_cu_SOURCES = test-tool/iscsi-test-cu.c \
test-tool/test_write10_0blocks.c \
test-tool/test_write10_wrprotect.c \
test-tool/test_write10_flags.c \
test-tool/test_write10_residuals.c \
test-tool/test_write12_simple.c \
test-tool/test_write12_beyond_eol.c \
test-tool/test_write12_0blocks.c \
test-tool/test_write12_wrprotect.c \
test-tool/test_write12_flags.c \
test-tool/test_write12_residuals.c \
test-tool/test_write16_simple.c \
test-tool/test_write16_beyond_eol.c \
test-tool/test_write16_0blocks.c \
test-tool/test_write16_wrprotect.c \
test-tool/test_write16_flags.c \
test-tool/test_write16_residuals.c \
test-tool/test_writesame10_simple.c \
test-tool/test_writesame10_beyond_eol.c \
test-tool/test_writesame10_0blocks.c \