test/pr: simple PRin REPORT CAPABILITIES test
Check that the Persistent Reserve In REPORT CAPABILITIES response carries valid LENGTH, ALLOW COMMANDS, and PERSISTENT RESERVATION TYPE MASK fields. Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
@@ -157,6 +157,11 @@ static CU_TestInfo tests_prin_read_keys[] = {
|
||||
CU_TEST_INFO_NULL
|
||||
};
|
||||
|
||||
static CU_TestInfo tests_prin_report_caps[] = {
|
||||
{ (char *)"Simple", test_prin_report_caps_simple },
|
||||
CU_TEST_INFO_NULL
|
||||
};
|
||||
|
||||
static CU_TestInfo tests_prout_register[] = {
|
||||
{ (char *)"Simple", test_prout_register_simple },
|
||||
CU_TEST_INFO_NULL
|
||||
@@ -482,6 +487,7 @@ static libiscsi_suite_info scsi_suites[] = {
|
||||
{ "PreventAllow", NON_PGR_FUNCS, tests_preventallow },
|
||||
{ "PrinReadKeys", NON_PGR_FUNCS, tests_prin_read_keys },
|
||||
{ "PrinServiceactionRange", NON_PGR_FUNCS, tests_prin_serviceaction_range },
|
||||
{ "PrinReportCapabilities", NON_PGR_FUNCS, tests_prin_report_caps },
|
||||
{ "ProutRegister", NON_PGR_FUNCS, tests_prout_register },
|
||||
{ "ProutReserve", NON_PGR_FUNCS, tests_prout_reserve },
|
||||
{ "ProutClear", NON_PGR_FUNCS, tests_prout_clear },
|
||||
@@ -568,6 +574,7 @@ static libiscsi_suite_info all_suites[] = {
|
||||
{ "PrinReadKeys", NON_PGR_FUNCS, tests_prin_read_keys },
|
||||
{ "PrinServiceactionRange", NON_PGR_FUNCS,
|
||||
tests_prin_serviceaction_range },
|
||||
{ "PrinReportCapabilities", NON_PGR_FUNCS, tests_prin_report_caps },
|
||||
{ "ProutRegister", NON_PGR_FUNCS, tests_prout_register },
|
||||
{ "ProutReserve", NON_PGR_FUNCS, tests_prout_reserve },
|
||||
{ "ProutClear", NON_PGR_FUNCS, tests_prout_clear },
|
||||
|
||||
Reference in New Issue
Block a user