test-tool: add COMPARE AND WRITE MiscompareSense test

This test checks regular sense/ascq values on miscompare as well as
the Information sense field, which should be set as follows:
  sense key set to MISCOMPARE and the additional sense code set to
  MISCOMPARE DURING VERIFY OPERATION. In the sense data (see 4.18 and
  SPC-5) the offset from the start of the Data-Out Buffer to the first
  byte of data that was not equal shall be reported in the INFORMATION
  field.

Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
David Disseldorp
2020-10-15 01:03:10 +02:00
parent 53c58f8aea
commit 957cc96232
3 changed files with 78 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ static CU_TestInfo tests_compareandwrite[] = {
{ "Simple", test_compareandwrite_simple },
{ "DpoFua", test_compareandwrite_dpofua },
{ "Miscompare", test_compareandwrite_miscompare },
{ "MiscompareSense", test_compareandwrite_miscompare_sense },
{ "Unwritten", test_compareandwrite_unwritten },
{ "InvalidDataOutSize",
test_compareandwrite_invalid_dataout_size },