test: simple ABORT TASK TMF test

Dispatch a write and subsequently abort it.

Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
David Disseldorp
2016-03-22 21:04:34 +01:00
parent bfd614053e
commit bf9c7cb277
4 changed files with 214 additions and 1 deletions
+8
View File
@@ -559,6 +559,11 @@ static CU_TestInfo tests_iscsi_residuals[] = {
CU_TEST_INFO_NULL
};
static CU_TestInfo tests_iscsi_tmf[] = {
{ "AbortTaskSimpleAsync", test_async_abort_simple },
CU_TEST_INFO_NULL
};
/* iSCSI protocol tests */
static libiscsi_suite_info iscsi_suites[] = {
{ "iSCSIcmdsn", NON_PGR_FUNCS,
@@ -567,6 +572,8 @@ static libiscsi_suite_info iscsi_suites[] = {
tests_iscsi_datasn },
{ "iSCSIResiduals", NON_PGR_FUNCS,
tests_iscsi_residuals },
{ "iSCSITMF", NON_PGR_FUNCS,
tests_iscsi_tmf },
{ NULL, NULL, NULL, NULL, NULL, NULL }
};
@@ -621,6 +628,7 @@ static libiscsi_suite_info all_suites[] = {
{ "iSCSIcmdsn", NON_PGR_FUNCS, tests_iscsi_cmdsn },
{ "iSCSIdatasn", NON_PGR_FUNCS, tests_iscsi_datasn },
{ "iSCSIResiduals", NON_PGR_FUNCS, tests_iscsi_residuals },
{ "iSCSITMF", NON_PGR_FUNCS, tests_iscsi_tmf },
{ "MultipathIO", NON_PGR_FUNCS, tests_multipathio },
{ NULL, NULL, NULL, NULL, NULL, NULL },
};