TEST: update all the verify tests to a new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
Ronnie Sahlberg
2014-09-16 14:22:58 -07:00
committed by Ronnie Sahlberg
parent 138939cb0e
commit 8aefc7d579
24 changed files with 211 additions and 671 deletions

View File

@@ -39,9 +39,9 @@ test_verify16_beyond_eol(void)
break;
}
ret = verify16_lbaoutofrange(iscsic, tgt_lun, num_blocks + 1 - i,
i * block_size, block_size,
0, 0, 1, buf);
ret = verify16(iscsic, tgt_lun, num_blocks + 1 - i,
i * block_size, block_size, 0, 0, 1, buf,
EXPECT_LBA_OOB);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] VERIFY16 is not implemented.");
CU_PASS("[SKIPPED] Target does not support VERIFY16. Skipping test");
@@ -57,9 +57,9 @@ test_verify16_beyond_eol(void)
break;
}
ret = verify16_lbaoutofrange(iscsic, tgt_lun, 0x8000000000000000ULL,
i * block_size, block_size,
0, 0, 1, buf);
ret = verify16(iscsic, tgt_lun, 0x8000000000000000ULL,
i * block_size, block_size, 0, 0, 1, buf,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
}
@@ -70,8 +70,9 @@ test_verify16_beyond_eol(void)
break;
}
ret = verify16_lbaoutofrange(iscsic, tgt_lun, -1, i * block_size,
block_size, 0, 0, 1, buf);
ret = verify16(iscsic, tgt_lun, -1, i * block_size,
block_size, 0, 0, 1, buf,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
}
@@ -82,9 +83,10 @@ test_verify16_beyond_eol(void)
break;
}
ret = verify16_lbaoutofrange(iscsic, tgt_lun, num_blocks - 1,
i * block_size, block_size,
0, 0, 1, buf);
ret = verify16(iscsic, tgt_lun, num_blocks - 1,
i * block_size, block_size, 0, 0, 1, buf,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
}
}