TESTS: replace read* flags tests with dedicated dpo/fua tests

Remove the flags tests for READ* and replace them with a test for the DPO
and FUA bits.
IF the device claims DPOFUA support in modesense then the READ* CDBs
MUST allow these two flags. IF the device does NOT claim DPOFUA then any
READ* CDB with these flags must fail with invalod field in cdb.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2014-12-22 07:52:51 -08:00
parent 3aef8a0d4f
commit d33a0438a4
27 changed files with 1794 additions and 373 deletions

View File

@@ -37,9 +37,10 @@ test_writeverify10_flags(void)
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test WRITEVERIFY10 flags");
logging(LOG_VERBOSE, "Test WRITEVERIFY10 with DPO==1");
logging(LOG_VERBOSE, "Test WRITEVERIFY10 with BYTCHK==1");
ret = writeverify10(sd, 0,
block_size, block_size, 0, 1, 0, 0, buf,
block_size, block_size, 0, 0, 1, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITEVERIFY10 is not implemented.");
@@ -47,10 +48,4 @@ test_writeverify10_flags(void)
return;
}
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITEVERIFY10 with BYTCHK==1");
ret = writeverify10(sd, 0,
block_size, block_size, 0, 0, 1, 0, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
}